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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
begin()
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.boolean
Returns whether the world is already generating.void
resize
(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, wait
Methods inherited from interface mindustry.world.WorldContext
getSector, isMap, onReadBuilding
-
Constructor Details
-
FilterContext
-
-
Method Details
-
end
public void end()Description copied from interface:WorldContext
End generating, prepares tiles.- Specified by:
end
in interfaceWorldContext
-
applyFilters
public void applyFilters() -
tile
Description copied from interface:WorldContext
Return a tile in the tile array.- Specified by:
tile
in interfaceWorldContext
-
resize
public void resize(int width, int height) Description copied from interface:WorldContext
Create the tile array.- Specified by:
resize
in interfaceWorldContext
-
create
Description copied from interface:WorldContext
This should create a tile and put it into the tile array, then return it.- Specified by:
create
in interfaceWorldContext
-
isGenerating
public boolean isGenerating()Description copied from interface:WorldContext
Returns whether the world is already generating.- Specified by:
isGenerating
in interfaceWorldContext
-
begin
public void begin()Description copied from interface:WorldContext
Begins generating.- Specified by:
begin
in interfaceWorldContext
-