Class BlockRedstoneEvent


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

      • BlockRedstoneEvent

        public BlockRedstoneEvent​(@NotNull
                                  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
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()