Class ItemInteractEvent

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

public final class ItemInteractEvent extends Event
This event is fired when an interaction is taken using an Item before its Item.onInteractWith(IWorld, int, int, TileLayer, double, double, AbstractPlayerEntity, ItemInstance) method is called. Cancelling the event will make the interaction not take place.
  • Field Details

    • player

      public final AbstractPlayerEntity player
    • instance

      public final ItemInstance instance
    • x

      public final double x
    • y

      public final double y
    • isDestroyKey

      public final boolean isDestroyKey
  • Constructor Details