public class PlayerNaturallySpawnCreaturesEvent extends PlayerEvent implements Cancellable
Event.Result
player
Constructor and Description |
---|
PlayerNaturallySpawnCreaturesEvent(Player player,
byte radius) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
byte |
getSpawnRadius() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setSpawnRadius(byte radius) |
getPlayer
callEvent, getEventName, isAsynchronous
public PlayerNaturallySpawnCreaturesEvent(Player player, byte radius)
public byte getSpawnRadius()
public void setSpawnRadius(byte radius)
radius
- The radius of chunks around this player to be included in natural spawn selectionpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
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 event, and not include this players chunks for natural spawningCopyright © 2021. All rights reserved.