Class BaseGenerator

java.lang.Object
mindustry.maps.generators.BaseGenerator

public class BaseGenerator extends Object
  • Constructor Details

    • BaseGenerator

      public BaseGenerator()
  • Method Details

    • getDifficultyWall

      public static Block getDifficultyWall(int size, float difficulty)
    • generate

      public void generate(Tiles tiles, Seq<Tile> cores, Tile spawn, Team team, Sector sector, float difficulty)
    • postGenerate

      public void postGenerate()
    • tryPlace

      public static boolean tryPlace(BaseRegistry.BasePart part, int x, int y, Team team)
      Tries to place a base part at a certain location with a certain team.
      Returns:
      success state
    • tryPlace

      public static boolean tryPlace(BaseRegistry.BasePart part, int x, int y, Team team, @Nullable Intc2 posc)
      Tries to place a base part at a certain location with a certain team.
      Returns:
      success state