mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 11:27:35 +01:00
Entity powdered snow API
This commit is contained in:
parent
3907f8a544
commit
dd15ee83b2
@ -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
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user