13
0
geforkt von Mirrors/Paper

Entity powdered snow API

Dieser Commit ist enthalten in:
Jake Potrebic 2021-10-24 20:58:52 -07:00
Ursprung 3907f8a544
Commit dd15ee83b2
2 geänderte Dateien mit 17 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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
}

Datei anzeigen

@ -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.