Class PhantomPreSpawnEvent
java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent
com.destroystokyo.paper.event.entity.PhantomPreSpawnEvent
- All Implemented Interfaces:
Cancellable
Called when a phantom is spawned for an exhausted player
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPhantomPreSpawnEvent(Location location, Entity entity, CreatureSpawnEvent.SpawnReason reason) -
Method Summary
Modifier and TypeMethodDescriptionGet the entity this phantom is spawning forMethods inherited from class PreCreatureSpawnEvent
getHandlerList, getHandlers, getReason, getSpawnLocation, getType, isCancelled, setCancelled, setShouldAbortSpawn, shouldAbortSpawnMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PhantomPreSpawnEvent
@Internal public PhantomPreSpawnEvent(Location location, Entity entity, CreatureSpawnEvent.SpawnReason reason)
-
-
Method Details
-
getSpawningEntity
-