mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
Entity powdered snow API
This commit is contained in:
@@ -973,5 +973,12 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
|||||||
* @return Whether the entity was successfully spawned.
|
* @return Whether the entity was successfully spawned.
|
||||||
*/
|
*/
|
||||||
public boolean spawnAt(@NotNull Location location, @NotNull org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason);
|
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
|
// Paper end
|
||||||
}
|
}
|
||||||
|
@@ -41,6 +41,16 @@ public interface Skeleton extends AbstractSkeleton {
|
|||||||
*/
|
*/
|
||||||
void setConversionTime(int time);
|
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
|
* A legacy enum that defines the different variances of skeleton-like
|
||||||
* entities on the server.
|
* entities on the server.
|
||||||
|
Reference in New Issue
Block a user