public class ChunkUnloadEvent extends ChunkEvent implements Cancellable
Event.Resultchunk| 构造器和说明 |
|---|
ChunkUnloadEvent(Chunk chunk) |
ChunkUnloadEvent(Chunk chunk,
boolean save) |
| 限定符和类型 | 方法和说明 |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
获取这个事件是否被取消.一个被取消的事件不会在服务器里被执行,但是仍然会传递事件到其他插件。
|
boolean |
isSaveChunk()
返回这个区块是否将被保存.
|
void |
setCancelled(boolean cancel)
取消这个事件.
|
void |
setSaveChunk(boolean saveChunk)
设置这个区块是否将被保存.
|
getChunkgetWorldgetEventName, isAsynchronouspublic ChunkUnloadEvent(Chunk chunk)
public ChunkUnloadEvent(Chunk chunk, boolean save)
public boolean isSaveChunk()
原文:Return whether this chunk will be saved to disk.
public void setSaveChunk(boolean saveChunk)
原文:Set whether this chunk will be saved to disk.
saveChunk - 区块保存状态public boolean isCancelled()
Cancellable原文:Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
isCancelled 在接口中 Cancellablepublic void setCancelled(boolean cancel)
Cancellable原文:Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
setCancelled 在接口中 Cancellablecancel - 如果你想取消这个事件,则为truepublic HandlerList getHandlers()
getHandlers 在类中 Eventpublic static HandlerList getHandlerList()