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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Constructor SummaryConstructorsConstructorDescriptionPhantomPreSpawnEvent(@NotNull Location location, @NotNull Entity entity, CreatureSpawnEvent.SpawnReason reason) 
- 
Method SummaryModifier and TypeMethodDescriptionGet the entity this phantom is spawning forMethods inherited from class com.destroystokyo.paper.event.entity.PreCreatureSpawnEventgetHandlerList, getHandlers, getReason, getSpawnLocation, getType, isCancelled, setCancelled, setShouldAbortSpawn, shouldAbortSpawnMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PhantomPreSpawnEvent
 
- 
- 
Method Details- 
getSpawningEntityGet the entity this phantom is spawning for- Returns:
- Entity
 
 
-