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, isAsynchronous
public SpawnerPreSpawnEvent(Location location, EntityType spawnedType)
public Location getLocation()
public EntityType getSpawnedType()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.