Class World.FilterContext

java.lang.Object
mindustry.core.World.FilterContext
All Implemented Interfaces:
WorldContext
Enclosing class:
World

public class World.FilterContext extends Object
World context that applies filters after generation end.
  • Constructor Details

    • FilterContext

      public FilterContext(Map map)
  • Method Details

    • end

      public void end()
      Description copied from interface: WorldContext
      End generating, prepares tiles.
      Specified by:
      end in interface WorldContext
    • applyFilters

      public void applyFilters()
    • tile

      public Tile tile(int index)
      Description copied from interface: WorldContext
      Return a tile in the tile array.
      Specified by:
      tile in interface WorldContext
    • resize

      public void resize(int width, int height)
      Description copied from interface: WorldContext
      Create the tile array.
      Specified by:
      resize in interface WorldContext
    • create

      public Tile create(int x, int y, int floorID, int overlayID, int wallID)
      Description copied from interface: WorldContext
      This should create a tile and put it into the tile array, then return it.
      Specified by:
      create in interface WorldContext
    • isGenerating

      public boolean isGenerating()
      Description copied from interface: WorldContext
      Returns whether the world is already generating.
      Specified by:
      isGenerating in interface WorldContext
    • begin

      public void begin()
      Description copied from interface: WorldContext
      Begins generating.
      Specified by:
      begin in interface WorldContext