Interface WorldContext

All Known Implementing Classes:
World.FilterContext

public interface WorldContext
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Begins generating.
    create(int x, int y, int floorID, int overlayID, int wallID)
    This should create a tile and put it into the tile array, then return it.
    void
    end()
    End generating, prepares tiles.
    default Sector
     
    boolean
    Returns whether the world is already generating.
    default boolean
     
    default void
    Called when a building is finished reading.
    void
    resize(int width, int height)
    Create the tile array.
    tile(int index)
    Return a tile in the tile array.
  • Method Details

    • tile

      Tile tile(int index)
      Return a tile in the tile array.
    • resize

      void resize(int width, int height)
      Create the tile array.
    • create

      Tile create(int x, int y, int floorID, int overlayID, int wallID)
      This should create a tile and put it into the tile array, then return it.
    • isGenerating

      boolean isGenerating()
      Returns whether the world is already generating.
    • begin

      void begin()
      Begins generating.
    • end

      void end()
      End generating, prepares tiles.
    • onReadBuilding

      default void onReadBuilding()
      Called when a building is finished reading.
    • getSector

      @Nullable default Sector getSector()
    • isMap

      default boolean isMap()
      Returns:
      whether the SaveLoadEvent fired after the end should be counted as a new map load.