Class BlockRedstoneEvent


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

    • BlockRedstoneEvent

      public BlockRedstoneEvent(@NotNull @NotNull Block block, int oldCurrent, int newCurrent)
  • 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

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

      @NotNull public static @NotNull HandlerList getHandlerList()