public final class InteractionEvent extends Event
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.| Modifier and Type | Field and Description |
|---|---|
java.util.List<Entity> |
entities |
boolean |
isDestroyKey |
TileLayer |
layer |
double |
mouseX |
double |
mouseY |
AbstractPlayerEntity |
player |
int |
x |
int |
y |
| Constructor and Description |
|---|
InteractionEvent(AbstractPlayerEntity player,
java.util.List<Entity> entities,
TileLayer layer,
int x,
int y,
double mouseX,
double mouseY,
boolean isDestroyKey) |
public final AbstractPlayerEntity player
public final boolean isDestroyKey
public java.util.List<Entity> entities
public TileLayer layer
public int x
public int y
public double mouseX
public double mouseY
public InteractionEvent(AbstractPlayerEntity player, java.util.List<Entity> entities, TileLayer layer, int x, int y, double mouseX, double mouseY, boolean isDestroyKey)