Class BreakEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.BreakEvent

public final class BreakEvent extends Event
This event is fired when a Tile is broken by an AbstractPlayerEntity. The effective variable determines if the tool being held by the player is effective in making the tile drop its result. Cancelling the event will result in the tile not being broken.
  • Field Details

    • player

      public final AbstractPlayerEntity player
    • layer

      public TileLayer layer
    • x

      public int x
    • y

      public int y
    • effective

      public boolean effective
  • Constructor Details