Class PlaceTileEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.PlaceTileEvent
This event is fired when a
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlaceTileEvent(AbstractPlayerEntity player, ItemInstance instance, boolean removeItem, TileLayer layer, int x, int y) -
Method Summary
-
Field Details
-
player
-
instance
-
removeItem
public boolean removeItem -
layer
-
x
public int x -
y
public int y
-
-
Constructor Details
-
PlaceTileEvent
public PlaceTileEvent(AbstractPlayerEntity player, ItemInstance instance, boolean removeItem, TileLayer layer, int x, int y)
-