Package org.bukkit.event.block
Class BlockRedstoneEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockRedstoneEvent
Called when a redstone current changes
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListintGets the new current of this blockintGets the old current of this blockvoidsetNewCurrent(int newCurrent) Sets the new current of this blockMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
BlockRedstoneEvent
 
- 
- 
Method Details- 
getOldCurrentpublic int getOldCurrent()Gets the old current of this block- Returns:
- The previous current
 
- 
getNewCurrentpublic int getNewCurrent()Gets the new current of this block- Returns:
- The new current
 
- 
setNewCurrentpublic void setNewCurrent(int newCurrent) Sets the new current of this block- Parameters:
- newCurrent- The new current to set
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-