public class BlockRedstoneEvent extends BlockEvent
Event.Resultblock| 构造器和说明 |
|---|
BlockRedstoneEvent(Block block,
int oldCurrent,
int newCurrent) |
| 限定符和类型 | 方法和说明 |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
int |
getNewCurrent()
获取这个方块收到的红石信号强度将要变成的值(0~15).
|
int |
getOldCurrent()
获取这个方块之前的红石信号强度(0~15).
|
void |
setNewCurrent(int newCurrent)
设置这个方块收到的红石信号强度将要变成的值(0~15).
|
getBlockgetEventName, isAsynchronouspublic BlockRedstoneEvent(Block block, int oldCurrent, int newCurrent)
public int getOldCurrent()
原文:Gets the old current of this block
public int getNewCurrent()
原文:Gets the new current of this block
public void setNewCurrent(int newCurrent)
原文:Sets the new current of this block
newCurrent - 红石信号强度,取值(0~15)public HandlerList getHandlers()
getHandlers 在类中 Eventpublic static HandlerList getHandlerList()