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