Class MissingTileEvent

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

public final class MissingTileEvent extends Event
This event gets fired when a TileState is missing from the tile state registry while a chunk is loaded. The event can be used to replace missing tile states with other ones in case a name changes or a property gets added. Change newState to the new state you want to be loaded instead of the old state with the name name. This event cannot be cancelled.
  • Field Details

    • world

      public final IWorld world
    • chunk

      public final IChunk chunk
    • id

      public final int id
    • name

      public final ResourceName name
    • newState

      public TileState newState
  • Constructor Details