Add entity liquid API

This commit is contained in:
William Blake Galbreath 2020-07-02 18:11:33 -05:00
parent e034549a33
commit 6c89cc29e4

View file

@ -863,5 +863,40 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
*/
@NotNull
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason getEntitySpawnReason();
/**
* Check if entity is underwater
*/
boolean isUnderWater();
/**
* Check if entity is in rain
*/
boolean isInRain();
/**
* Check if entity is in bubble column
*/
boolean isInBubbleColumn();
/**
* Check if entity is in water or rain
*/
boolean isInWaterOrRain();
/**
* Check if entity is in water or bubble column
*/
boolean isInWaterOrBubbleColumn();
/**
* Check if entity is in water or rain or bubble column
*/
boolean isInWaterOrRainOrBubbleColumn();
/**
* Check if entity is in lava
*/
boolean isInLava();
// Paper end
}