Class InteractionEvent

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

public final class InteractionEvent extends Event
This event is fired when an AbstractPlayerEntity interacts with the world in any way. With the default keybinds, this happens when they click the right mouse button. Changing any of the non-final values will result in the point and information of interaction being changed. Cancelling the event will result in no interaction taking place.
  • Field Details

    • player

      public final AbstractPlayerEntity player
    • isDestroyKey

      public final boolean isDestroyKey
    • entities

      public List<Entity> entities
    • layer

      public TileLayer layer
    • x

      public int x
    • y

      public int y
    • mouseX

      public double mouseX
    • mouseY

      public double mouseY
  • Constructor Details