Class EntityInteractEvent

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

public final class EntityInteractEvent extends Event
This event is fired when an interaction with an Entity is taken, right before its Entity.onInteractWith(AbstractPlayerEntity, double, double) method is called. Cancelling the event will make the interaction not take place.
  • Field Details

    • player

      public final AbstractPlayerEntity player
    • entity

      public final Entity entity
    • x

      public final double x
    • y

      public final double y
    • isDestroyKey

      public final boolean isDestroyKey
  • Constructor Details

    • EntityInteractEvent

      public EntityInteractEvent(AbstractPlayerEntity player, Entity entity, double x, double y, boolean isDestroyKey)