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 org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPhantomPreSpawnEvent
(Location location, Entity entity, CreatureSpawnEvent.SpawnReason reason) -
Method Summary
Modifier and TypeMethodDescriptionGet the entity this phantom is spawning forMethods inherited from class com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent
getHandlerList, getHandlers, getReason, getSpawnLocation, getType, isCancelled, setCancelled, setShouldAbortSpawn, shouldAbortSpawn
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PhantomPreSpawnEvent
@Internal public PhantomPreSpawnEvent(Location location, Entity entity, CreatureSpawnEvent.SpawnReason reason)
-
-
Method Details
-
getSpawningEntity
Get the entity this phantom is spawning for- Returns:
- the Entity
-