public final class LayerActionEvent extends Event
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, AbstractEntityPlayer) method to be
ignored.| Modifier and Type | Class and Description |
|---|---|
static class |
LayerActionEvent.Type |
| Modifier and Type | Field and Description |
|---|---|
TileLayer |
layer |
LayerActionEvent.Type |
type |
IWorld |
world |
double |
x |
double |
y |
| Constructor and Description |
|---|
LayerActionEvent(LayerActionEvent.Type type,
IWorld world,
TileLayer layer,
double x,
double y) |
public final LayerActionEvent.Type type
public final IWorld world
public final TileLayer layer
public final double x
public final double y
public LayerActionEvent(LayerActionEvent.Type type, IWorld world, TileLayer layer, double x, double y)