public final class PlaceTileEvent extends Event
Tile is placed into the world by an AbstractPlayerEntity, before Tile.doPlace(IWorld, int, int,
TileLayer, ItemInstance, AbstractPlayerEntity) is called. Note that the
state that will be placed might either be received via Tile.getPlacementState(IWorld, int, int, TileLayer, ItemInstance,
AbstractPlayerEntity) or by a custom method if it is a custom
implementation. Cancelling the event will cause Tile.doPlace(IWorld,
int, int, TileLayer, ItemInstance, AbstractPlayerEntity) not to be called.| Modifier and Type | Field and Description |
|---|---|
ItemInstance |
instance |
TileLayer |
layer |
AbstractPlayerEntity |
player |
boolean |
removeItem |
int |
x |
int |
y |
| Constructor and Description |
|---|
PlaceTileEvent(AbstractPlayerEntity player,
ItemInstance instance,
boolean removeItem,
TileLayer layer,
int x,
int y) |
public final AbstractPlayerEntity player
public ItemInstance instance
public boolean removeItem
public TileLayer layer
public int x
public int y
public PlaceTileEvent(AbstractPlayerEntity player, ItemInstance instance, boolean removeItem, TileLayer layer, int x, int y)