public class BlockRedstoneEvent extends BlockEvent
Event.Result
block
Constructor and Description |
---|
BlockRedstoneEvent(Block block,
int oldCurrent,
int newCurrent) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
int |
getNewCurrent()
Gets the new current of this block
|
int |
getOldCurrent()
Gets the old current of this block
|
void |
setNewCurrent(int newCurrent)
Sets the new current of this block
|
getBlock
getEventName, isAsynchronous
public BlockRedstoneEvent(Block block, int oldCurrent, int newCurrent)
public int getOldCurrent()
public int getNewCurrent()
public void setNewCurrent(int newCurrent)
newCurrent
- The new current to setpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2017. All rights reserved.