Class EntityInteractEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.EntityInteractEvent
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 Summary
FieldsModifier and TypeFieldDescriptionfinal Entityfinal booleanfinal AbstractPlayerEntityfinal doublefinal double -
Constructor Summary
ConstructorsConstructorDescriptionEntityInteractEvent(AbstractPlayerEntity player, Entity entity, double x, double y, boolean isDestroyKey) -
Method Summary
-
Field Details
-
player
-
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)
-