Interface RedstoneEvent

All Superinterfaces:
Event
All Known Subinterfaces:
PistonEvent, PistonExtendEvent, PistonRetractEvent, RedstoneDustPowerEvent, RedstoneInputEvent, RedstoneOutputEvent, RedstoneUpdateEvent

public interface RedstoneEvent extends Event
An event about one block taking part in redstone.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the state of the block when the event was posted, before the change it describes.
    Returns the position of the block.
    Returns the world of the block.
  • Method Details

    • world

      World world()
      Returns the world of the block.
      Returns:
      the world of the block
      Since:
      0.1.0
    • position

      BlockPosition position()
      Returns the position of the block.
      Returns:
      the position of the block
      Since:
      0.1.0
    • block

      BlockData block()
      Returns the state of the block when the event was posted, before the change it describes.
      Returns:
      the state of the block when the event was posted, before the change it describes
      Since:
      0.1.0