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