aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0398-Add-entity-liquid-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0398-Add-entity-liquid-API.patch')
-rw-r--r--patches/server/0398-Add-entity-liquid-API.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/patches/server/0398-Add-entity-liquid-API.patch b/patches/server/0398-Add-entity-liquid-API.patch
index a13db460a4..bbfe602323 100644
--- a/patches/server/0398-Add-entity-liquid-API.patch
+++ b/patches/server/0398-Add-entity-liquid-API.patch
@@ -8,14 +8,15 @@ public net.minecraft.world.entity.Entity isInRain()Z
public net.minecraft.world.entity.Entity isInBubbleColumn()Z
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-index d898b26d6d9c6999aa645f201bdbbd6e30073c0f..061b7215a678c8ec563bdb9c2a8beb65061faf0e 100644
+index 9ed122efb2b380bb2c1b50fdfe75bf3e679c9c6e..326978aedbd9cc81db2bf1d5398c1cd2ce68a866 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-@@ -1024,5 +1024,40 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
- public org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason getEntitySpawnReason() {
+@@ -998,4 +998,41 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return getHandle().spawnReason;
}
+ // Paper end - entity spawn reason API
+
++ // Paper start - entity liquid API
+ @Override
+ public boolean isUnderWater() {
+ return getHandle().isUnderWater();
@@ -50,5 +51,5 @@ index d898b26d6d9c6999aa645f201bdbbd6e30073c0f..061b7215a678c8ec563bdb9c2a8beb65
+ public boolean isInLava() {
+ return getHandle().isInLava();
+ }
- // Paper end
++ // Paper end - entity liquid API
}