Class TileInteractEvent

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

public final class TileInteractEvent extends Event
This event is fired when an Tile is being interacted with, right before its Tile.onInteractWith(IWorld, int, int, TileLayer, double, double, AbstractPlayerEntity) method is called. Cancelling the event will make the interaction not take place.
  • Field Details

    • player

      public final AbstractPlayerEntity player
    • state

      public final TileState state
    • layer

      public final TileLayer layer
    • x

      public final int x
    • y

      public final int y
    • mouseX

      public final double mouseX
    • mouseY

      public final double mouseY
    • isDestroyKey

      public final boolean isDestroyKey
  • Constructor Details