public final class EntityInteractEvent extends Event
Entity is taken,
right before its Entity.onInteractWith(AbstractPlayerEntity, double,
double) method is called. Cancelling the event will make the interaction not
take place.| Modifier and Type | Field and Description |
|---|---|
Entity |
entity |
boolean |
isDestroyKey |
AbstractPlayerEntity |
player |
double |
x |
double |
y |
| Constructor and Description |
|---|
EntityInteractEvent(AbstractPlayerEntity player,
Entity entity,
double x,
double y,
boolean isDestroyKey) |
public final AbstractPlayerEntity player
public final Entity entity
public final double x
public final double y
public final boolean isDestroyKey
public EntityInteractEvent(AbstractPlayerEntity player, Entity entity, double x, double y, boolean isDestroyKey)