Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.block.BlockRedstoneEvent Class Reference
Inheritance diagram for org.bukkit.event.block.BlockRedstoneEvent:
org.bukkit.event.block.BlockEvent org.bukkit.event.Event

Public Member Functions

 BlockRedstoneEvent (final Block block, final int oldCurrent, final int newCurrent)
int getOldCurrent ()
int getNewCurrent ()
void setNewCurrent (int newCurrent)
HandlerList getHandlers ()
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
final Block getBlock ()
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 Event (boolean isAsync)
String getEventName ()
abstract HandlerList getHandlers ()
final boolean isAsynchronous ()

Static Public Member Functions

static HandlerList getHandlerList ()

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.block.BlockEvent
Block block

Detailed Description

Called when a redstone current changes

Definition at line 9 of file BlockRedstoneEvent.java.

Member Function Documentation

int org.bukkit.event.block.BlockRedstoneEvent.getNewCurrent ( )

Gets the new current of this block

The new current

Definition at line 34 of file BlockRedstoneEvent.java.

34  {
35  return newCurrent;
36  }
int org.bukkit.event.block.BlockRedstoneEvent.getOldCurrent ( )

Gets the old current of this block

The previous current

Definition at line 25 of file BlockRedstoneEvent.java.

25  {
26  return oldCurrent;
27  }
void org.bukkit.event.block.BlockRedstoneEvent.setNewCurrent ( int  newCurrent)

Sets the new current of this block

newCurrentThe new current to set

Definition at line 43 of file BlockRedstoneEvent.java.

43  {
44  this.newCurrent = newCurrent;
45  }

The documentation for this class was generated from the following file: