类 FluidLevelChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.FluidLevelChangeEvent
- 所有已实现的接口:
Cancellable
当液体方块的液面高度因相邻方块而发生变化时触发本事件.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.block.BlockEvent
block -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static @NotNull HandlerList获取变化后的方块的新数据.boolean获取这个事件是否被取消.一个被取消的事件不会在服务器里执行,但是仍然会传递事件到其他插件.voidsetCancelled(boolean cancelled) 取消这个事件.voidsetNewData(@NotNull BlockData newData) 设置变化后的方块的新数据.从类继承的方法 org.bukkit.event.block.BlockEvent
getBlock从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
FluidLevelChangeEvent
-
-
方法详细资料
-
getNewData
获取变化后的方块的新数据.原文:Gets the new data of the changed block.
- 返回:
- 新方块数据
-
setNewData
设置变化后的方块的新数据. 必须与旧方块数据描述的物品种类相同.原文:Sets the new data of the changed block. Must be of the same Material as the old one.
- 参数:
newData- 新方块数据
-
isCancelled
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在接口中Cancellable- 返回:
- 如果事件已经被取消,则为true
-
setCancelled
public void setCancelled(boolean cancelled) 从接口复制的说明: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在接口中Cancellable- 参数:
cancelled- 如果你想取消这个事件,则为true
-
getHandlers
- 指定者:
getHandlers在类中Event
-
getHandlerList
-