Class LayerActionEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.LayerActionEvent

public final class LayerActionEvent extends Event
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.