org.bukkit.event.block
Class BlockRedstoneEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.block.BlockEvent
          extended by org.bukkit.event.block.BlockRedstoneEvent

public class BlockRedstoneEvent
extends BlockEvent

Called when a redstone current changes


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.block.BlockEvent
block
 
Constructor Summary
BlockRedstoneEvent(Block block, int oldCurrent, int newCurrent)
           
 
Method Summary
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
 
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockRedstoneEvent

public BlockRedstoneEvent(Block block,
                          int oldCurrent,
                          int newCurrent)
Method Detail

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

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.