Class TileInteractEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.TileInteractEvent
This event is fired when an
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTileInteractEvent(AbstractPlayerEntity player, TileState state, TileLayer layer, int x, int y, double mouseX, double mouseY, boolean isDestroyKey) -
Method Summary
-
Field Details
-
player
-
state
-
layer
-
x
public final int x -
y
public final int y -
mouseX
public final double mouseX -
mouseY
public final double mouseY -
isDestroyKey
public final boolean isDestroyKey
-
-
Constructor Details
-
TileInteractEvent
public TileInteractEvent(AbstractPlayerEntity player, TileState state, TileLayer layer, int x, int y, double mouseX, double mouseY, boolean isDestroyKey)
-