Cancellable
public class SpawnerSpawnEvent extends EntitySpawnEvent
If a Spawner Spawn event is cancelled, the entity will not spawn.
Event.Result
entity
Constructor | Description |
---|---|
SpawnerSpawnEvent(@NotNull Entity spawnee,
@NotNull CreatureSpawner spawner) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull CreatureSpawner |
getSpawner() |
getEntity, getEntityType
getHandlerList, getHandlers, getLocation, isCancelled, setCancelled
callEvent, getEventName, isAsynchronous
public SpawnerSpawnEvent(@NotNull @NotNull Entity spawnee, @NotNull @NotNull CreatureSpawner spawner)
@NotNull public @NotNull CreatureSpawner getSpawner()
Copyright © 2020. All rights reserved.