mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
added Wither API
This commit is contained in:
45
Spigot-API-Patches/added-Wither-API.patch
Normal file
45
Spigot-API-Patches/added-Wither-API.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
||||
Date: Sun, 5 Jul 2020 15:39:40 -0700
|
||||
Subject: [PATCH] added Wither API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Wither.java b/src/main/java/org/bukkit/entity/Wither.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Wither.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Wither.java
|
||||
@@ -0,0 +0,0 @@ import com.destroystokyo.paper.entity.RangedEntity;
|
||||
* Represents a Wither boss
|
||||
*/
|
||||
public interface Wither extends Monster, Boss, RangedEntity { // Paper
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * @return whether the wither is charged
|
||||
+ */
|
||||
+ boolean isCharged();
|
||||
+
|
||||
+ /**
|
||||
+ * @return ticks the wither is invulnerable for
|
||||
+ */
|
||||
+ int getInvulnerableTicks();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets for how long in the future, the wither should be invulnerable.
|
||||
+ *
|
||||
+ * @param ticks ticks the wither is invulnerable for
|
||||
+ */
|
||||
+ void setInvulnerableTicks(int ticks);
|
||||
+
|
||||
+ /**
|
||||
+ * @return whether the wither can travel through portals
|
||||
+ */
|
||||
+ boolean canTravelThroughPortals();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets whether the wither can travel through portals.
|
||||
+ *
|
||||
+ * @param value whether the wither can travel through portals
|
||||
+ */
|
||||
+ void setCanTravelThroughPortals(boolean value);
|
||||
+ // Paper end
|
||||
}
|
Reference in New Issue
Block a user