Package mindustry.world
Interface WorldContext
- All Known Implementing Classes:
World.FilterContext
public interface WorldContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()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.voidend()End generating, prepares tiles.default SectorbooleanReturns whether the world is already generating.default booleanisMap()default voidCalled when a building is finished reading.default voidCalled when data finishes reading for a tile.voidresize(int width, int height) Create the tile array.tile(int index) Return a tile in the tile array.
-
Method Details
-
tile
Return a tile in the tile array. -
resize
void resize(int width, int height) Create the tile array. -
create
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. -
onReadTileData
default void onReadTileData()Called when data finishes reading for a tile. -
getSector
-
isMap
default boolean isMap()- Returns:
- whether the SaveLoadEvent fired after the end should be counted as a new map load.
-