Class SetStateEvent

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

public final class SetStateEvent extends Event
This event is fired when an TileState is set into the world using IChunk.setStateInner(TileLayer, int, int, TileState), meaning it will also be called on any of the other helper methods like IChunkOrWorld.setState(TileLayer, int, int, TileState). Note that the x and y values are chunk-inner coordinates. Cancelling the event will cause the tile not to be set into the world.
  • Field Details

    • chunk

      public final IChunk chunk
    • state

      public TileState state
    • layer

      public TileLayer layer
    • x

      public int x
    • y

      public int y
  • Constructor Details