Package org.bukkit.event.block
Class BlockRedstoneEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockRedstoneEvent
public class BlockRedstoneEvent extends BlockEvent
Called when a redstone current changes
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockRedstoneEvent(Block block, int oldCurrent, int newCurrent)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
int
getNewCurrent()
Gets the new current of this blockint
getOldCurrent()
Gets the old current of this blockvoid
setNewCurrent(int newCurrent)
Sets the new current of this block
-
Constructor Details
-
Method Details
-
getOldCurrent
public int getOldCurrent()Gets the old current of this block- Returns:
- The previous current
-
getNewCurrent
public int getNewCurrent()Gets the new current of this block- Returns:
- The new current
-
setNewCurrent
public void setNewCurrent(int newCurrent)Sets the new current of this block- Parameters:
newCurrent
- The new current to set
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-