Package mindustry.core
Class World.FilterContext
java.lang.Object
mindustry.core.World.FilterContext
- All Implemented Interfaces:
WorldContext
- Enclosing class:
- World
World context that applies filters after generation end.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbegin()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.booleanReturns whether the world is already generating.voidresize(int width, int height) Create the tile array.tile(int index) Return a tile in the tile array.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mindustry.world.WorldContext
isMap, onReadBuilding, onReadTileData
-
Constructor Details
-
FilterContext
-
-
Method Details
-
end
public void end()Description copied from interface:WorldContextEnd generating, prepares tiles.- Specified by:
endin interfaceWorldContext
-
applyFilters
public void applyFilters() -
tile
Description copied from interface:WorldContextReturn a tile in the tile array.- Specified by:
tilein interfaceWorldContext
-
resize
public void resize(int width, int height) Description copied from interface:WorldContextCreate the tile array.- Specified by:
resizein interfaceWorldContext
-
create
Description copied from interface:WorldContextThis should create a tile and put it into the tile array, then return it.- Specified by:
createin interfaceWorldContext
-
isGenerating
public boolean isGenerating()Description copied from interface:WorldContextReturns whether the world is already generating.- Specified by:
isGeneratingin interfaceWorldContext
-
begin
public void begin()Description copied from interface:WorldContextBegins generating.- Specified by:
beginin interfaceWorldContext
-
getSector
- Specified by:
getSectorin interfaceWorldContext
-