Class PlaceTileEvent

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

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