Cancellablepublic class PlayerNaturallySpawnCreaturesEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerNaturallySpawnCreaturesEvent(Player player,
byte radius) |
| Modifier and Type | Method | 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) |
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic PlayerNaturallySpawnCreaturesEvent(@NotNull
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 selection@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event, and not include this players chunks for natural spawningCopyright © 2019. All rights reserved.