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 HandlerListgetHandlerList()HandlerListgetHandlers()intgetNewCurrent()Gets the new current of this blockintgetOldCurrent()Gets the old current of this blockvoidsetNewCurrent(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:
getHandlersin classEvent
-
getHandlerList
-