Class BlockRedstoneEvent

public class BlockRedstoneEvent extends BlockEvent
Called when a redstone current changes
  • Constructor Details

    • BlockRedstoneEvent

      public BlockRedstoneEvent(@NotNull Block block, int oldCurrent, int newCurrent)
  • Method Details

    • getOldCurrent

      public int getOldCurrent()
      Gets the old current of this block
      The previous current
    • getNewCurrent

      public int getNewCurrent()
      Gets the new current of this block
      The new current
    • setNewCurrent

      public void setNewCurrent(int newCurrent)
      Sets the new current of this block
      newCurrent - The new current to set
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()