public class PhantomPreSpawnEvent extends PreCreatureSpawnEvent
Event.Result| Constructor and Description |
|---|
PhantomPreSpawnEvent(Location location,
Entity entity,
CreatureSpawnEvent.SpawnReason reason) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getSpawningEntity()
Get the entity this phantom is spawning for
|
getHandlerList, getHandlers, getReason, getSpawnLocation, getType, isCancelled, setCancelled, setShouldAbortSpawn, shouldAbortSpawncallEvent, getEventName, isAsynchronouspublic PhantomPreSpawnEvent(@NotNull
Location location,
@NotNull
Entity entity,
@NotNull
CreatureSpawnEvent.SpawnReason reason)
@Nullable public Entity getSpawningEntity()
Copyright © 2022. All rights reserved.