mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Add entity liquid API
== AT == public net.minecraft.world.entity.Entity isInRain()Z public net.minecraft.world.entity.Entity isInBubbleColumn()Z
This commit is contained in:
parent
50c31de6f0
commit
e3bd1e8117
1 changed files with 37 additions and 0 deletions
|
@ -1021,4 +1021,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();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInRain() {
|
||||
return getHandle().isInRain();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInBubbleColumn() {
|
||||
return getHandle().isInBubbleColumn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInWaterOrRain() {
|
||||
return getHandle().isInWaterOrRain();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInWaterOrBubbleColumn() {
|
||||
return getHandle().isInWaterOrBubble();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInWaterOrRainOrBubbleColumn() {
|
||||
return getHandle().isInWaterRainOrBubble();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInLava() {
|
||||
return getHandle().isInLava();
|
||||
}
|
||||
// Paper end - entity liquid API
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue