Class TileDropsEvent

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

public final class TileDropsEvent extends Event
This event is fired whenever a Tile is broken in the world. The list can be modified to change the drops of the tile. Cancelling the event will stop the tile from dropping anything.
  • Field Details

    • tile

      public final Tile tile
    • drops

      public final List<ItemInstance> drops
    • world

      public final IWorld world
    • x

      public final int x
    • y

      public final int y
    • layer

      public final TileLayer layer
    • destroyer

      public final Entity destroyer
  • Constructor Details