Class MapEditor

java.lang.Object
mindustry.editor.MapEditor

public class MapEditor extends Object
  • Field Details

    • brushSizes

      public static final float[] brushSizes
    • tags

      public StringMap tags
    • renderer

      public MapRenderer renderer
    • brushSize

      public float brushSize
    • rotation

      public int rotation
    • drawBlock

      public Block drawBlock
    • drawTeam

      public Team drawTeam
  • Constructor Details

    • MapEditor

      public MapEditor()
  • Method Details

    • isLoading

      public boolean isLoading()
    • beginEdit

      public void beginEdit(int width, int height)
    • beginEdit

      public void beginEdit(Map map)
    • beginEdit

      public void beginEdit(Pixmap pixmap)
    • updateRenderer

      public void updateRenderer()
    • load

      public void load(Runnable r)
    • createMap

      public Map createMap(Fi file)
    • tiles

      public Tiles tiles()
    • tile

      public Tile tile(int x, int y)
    • width

      public int width()
    • height

      public int height()
    • drawBlocksReplace

      public void drawBlocksReplace(int x, int y)
    • drawBlocks

      public void drawBlocks(int x, int y)
    • drawBlocks

      public void drawBlocks(int x, int y, Boolf<Tile> tester)
    • drawBlocks

      public void drawBlocks(int x, int y, boolean square, boolean forceOverlay, Boolf<Tile> tester)
    • addCliffs

      public void addCliffs()
    • addFloorCliffs

      public void addFloorCliffs()
    • drawCircle

      public void drawCircle(int x, int y, Cons<Tile> drawer)
    • drawSquare

      public void drawSquare(int x, int y, Cons<Tile> drawer)
    • resize

      public void resize(int width, int height, int shiftX, int shiftY)
    • clearOp

      public void clearOp()
    • undo

      public void undo()
    • redo

      public void redo()
    • canUndo

      public boolean canUndo()
    • canRedo

      public boolean canRedo()
    • flushOp

      public void flushOp()
    • addTileOp

      public void addTileOp(long data)