Class Build

java.lang.Object
mindustry.world.Build

public class Build extends Object
  • Constructor Details

    • Build

      public Build()
  • Method Details

    • beginBreak

      public static void beginBreak(@Nullable mindustry.gen.Unit unit, Team team, int x, int y)
    • beginPlace

      public static void beginPlace(@Nullable mindustry.gen.Unit unit, Block result, Team team, int x, int y, int rotation)
      Places a ConstructBlock at this location.
    • validPlace

      public static boolean validPlace(Block type, Team team, int x, int y, int rotation)
      Returns:
      whether a tile can be placed at this location by this team.
    • validPlace

      public static boolean validPlace(Block type, Team team, int x, int y, int rotation, boolean checkVisible)
      Returns:
      whether a tile can be placed at this location by this team.
    • validPlace

      public static boolean validPlace(Block type, Team team, int x, int y, int rotation, boolean checkVisible, boolean ignoreCoreRadius)
      Returns:
      whether a tile can be placed at this location by this team.
    • checkNoUnitOverlap

      public static boolean checkNoUnitOverlap(Block type, int x, int y)
      Returns:
      whether a tile can be placed at this location by this team.
    • validPlaceIgnoreUnits

      public static boolean validPlaceIgnoreUnits(Block type, Team team, int x, int y, int rotation, boolean checkVisible, boolean checkCoreRadius)
      Returns:
      whether a tile can be placed at this location by this team. Ignores units at this location.
    • getEnemyOverlap

      @Nullable public static mindustry.gen.Building getEnemyOverlap(Block block, Team team, int x, int y)
    • contactsGround

      public static boolean contactsGround(int x, int y, Block block)
    • contactsShallows

      public static boolean contactsShallows(int x, int y, Block block)
    • validBreak

      public static boolean validBreak(Team team, int x, int y)
      Returns:
      whether the tile at this position is breakable by this team