public class SpawnerPreSpawnEvent extends Event implements Cancellable
This is a more preformat alternative to SpawnerSpawnEvent
Event.Result| Constructor and Description |
|---|
SpawnerPreSpawnEvent(Location location,
EntityType spawnedType) |
| Modifier and Type | Method and Description |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Location |
getLocation()
Get the location of the spawner where the entity is being spawned
|
EntityType |
getSpawnedType()
Get the type of entity being spawned
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getEventName, isAsynchronouspublic SpawnerPreSpawnEvent(Location location, EntityType spawnedType)
public Location getLocation()
public EntityType getSpawnedType()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.