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