mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Expose isUnderWater to Entity (#8454)
This commit is contained in:
@@ -14,33 +14,38 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason getEntitySpawnReason();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is underwater
|
||||
+ */
|
||||
+ boolean isUnderWater();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is in rain
|
||||
+ */
|
||||
+ public boolean isInRain();
|
||||
+ boolean isInRain();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is in bubble column
|
||||
+ */
|
||||
+ public boolean isInBubbleColumn();
|
||||
+ boolean isInBubbleColumn();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is in water or rain
|
||||
+ */
|
||||
+ public boolean isInWaterOrRain();
|
||||
+ boolean isInWaterOrRain();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is in water or bubble column
|
||||
+ */
|
||||
+ public boolean isInWaterOrBubbleColumn();
|
||||
+ boolean isInWaterOrBubbleColumn();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is in water or rain or bubble column
|
||||
+ */
|
||||
+ public boolean isInWaterOrRainOrBubbleColumn();
|
||||
+ boolean isInWaterOrRainOrBubbleColumn();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is in lava
|
||||
+ */
|
||||
+ public boolean isInLava();
|
||||
+ boolean isInLava();
|
||||
// Paper end
|
||||
}
|
||||
|
@@ -11,11 +11,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@@ -0,0 +0,0 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
* Check if entity is in lava
|
||||
*/
|
||||
public boolean isInLava();
|
||||
boolean isInLava();
|
||||
+
|
||||
+ /**
|
||||
+ * Check if entity is inside a ticking chunk
|
||||
+ */
|
||||
+ public boolean isTicking();
|
||||
+ boolean isTicking();
|
||||
// Paper end
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@@ -0,0 +0,0 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
* Check if entity is inside a ticking chunk
|
||||
*/
|
||||
public boolean isTicking();
|
||||
boolean isTicking();
|
||||
+
|
||||
+ /**
|
||||
+ * Returns a set of {@link Player Players} within this entity's tracking range (players that can "see" this entity).
|
||||
|
Reference in New Issue
Block a user