Class BlockEvent.NeighborNotifyEvent

Enclosing class:

public static class BlockEvent.NeighborNotifyEvent extends BlockEvent
Fired when a physics update occurs on a block. This event acts as a way for mods to detect physics updates, in the same way a BUD switch does. This event is only called on the server.
  • Field Details

    • notifiedSides

      private final EnumSet<Direction> notifiedSides
    • forceRedstoneUpdate

      private final boolean forceRedstoneUpdate
  • Constructor Details

  • Method Details

    • getNotifiedSides

      public EnumSet<Direction> getNotifiedSides()
      Gets a list of directions from the base block that updates will occur upon.
      list of notified directions
    • getForceRedstoneUpdate

      public boolean getForceRedstoneUpdate()
      Get if redstone update was forced during setBlock call (0x16 to flags)
      if the flag was set