Cancellable
public class PhantomPreSpawnEvent extends PreCreatureSpawnEvent
Event.Result
Constructor | Description |
---|---|
PhantomPreSpawnEvent(@NotNull Location location,
@NotNull Entity entity,
CreatureSpawnEvent.SpawnReason reason) |
Modifier and Type | Method | Description |
---|---|---|
@Nullable Entity |
getSpawningEntity() |
Get the entity this phantom is spawning for
|
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandlerList, getHandlers, getReason, getSpawnLocation, getType, isCancelled, setCancelled, setShouldAbortSpawn, shouldAbortSpawn
public PhantomPreSpawnEvent(@NotNull @NotNull Location location, @NotNull @NotNull Entity entity, @NotNull CreatureSpawnEvent.SpawnReason reason)
@Nullable public @Nullable Entity getSpawningEntity()
Copyright © 2020. All rights reserved.