mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 13:43:55 +01:00
Add entity liquid API
This commit is contained in:
parent
e034549a33
commit
6c89cc29e4
1 changed files with 35 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue