Entity powdered snow API

This commit is contained in:
Jake Potrebic 2021-10-24 20:58:52 -07:00
parent 3907f8a544
commit dd15ee83b2
2 changed files with 17 additions and 0 deletions

View File

@ -973,5 +973,12 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
* @return Whether the entity was successfully spawned.
*/
public boolean spawnAt(@NotNull Location location, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason);
/**
* Check if entity is inside powdered snow.
*
* @return true if in powdered snow.
*/
boolean isInPowderedSnow();
// Paper end
}

View File

@ -41,6 +41,16 @@ public interface Skeleton extends AbstractSkeleton {
*/
void setConversionTime(int time);
// Paper start
/**
* Gets the time the skeleton
* has been inside powdered snow.
*
* @return time in ticks
*/
int inPowderedSnowTime();
// Paper end
/**
* A legacy enum that defines the different variances of skeleton-like
* entities on the server.