Class LayerActionEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.LayerActionEvent
This event is fired when interaction on a
TileLayer is attempted. The
LayerActionEvent.Type determines the type of action that is taking place. Cancelling
it will make the interaction not happen on this layer, but instead, the code
will move on to layers with a lower priority. Setting the event result to
EventResult.MODIFIED will cause the layer's TileLayer.canEditLayer(IGameInstance, AbstractPlayerEntity) method to be
ignored.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLayerActionEvent(LayerActionEvent.Type type, IWorld world, TileLayer layer, double x, double y) -
Method Summary
-
Field Details
-
type
-
world
-
layer
-
x
public final double x -
y
public final double y
-
-
Constructor Details
-
LayerActionEvent
public LayerActionEvent(LayerActionEvent.Type type, IWorld world, TileLayer layer, double x, double y)
-