public final class TileInteractEvent extends Event
Tile is being interacted with, right
before its Tile.onInteractWith(IWorld, int, int, TileLayer, double,
double, AbstractPlayerEntity) method is called. Cancelling the event will
make the interaction not take place.| Modifier and Type | Field and Description |
|---|---|
boolean |
isDestroyKey |
TileLayer |
layer |
double |
mouseX |
double |
mouseY |
AbstractPlayerEntity |
player |
TileState |
state |
int |
x |
int |
y |
| Constructor and Description |
|---|
TileInteractEvent(AbstractPlayerEntity player,
TileState state,
TileLayer layer,
int x,
int y,
double mouseX,
double mouseY,
boolean isDestroyKey) |
public final AbstractPlayerEntity player
public final TileState state
public final TileLayer layer
public final int x
public final int y
public final double mouseX
public final double mouseY
public final boolean isDestroyKey
public TileInteractEvent(AbstractPlayerEntity player, TileState state, TileLayer layer, int x, int y, double mouseX, double mouseY, boolean isDestroyKey)