Class Build

java.lang.Object
mindustry.world.Build

public class Build extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    beginBreak(mindustry.gen.Unit unit, Team team, int x, int y)
     
    static void
    beginPlace(mindustry.gen.Unit unit, Block result, Team team, int x, int y, int rotation)
    Places a ConstructBlock at this location.
    static boolean
    contactsGround(int x, int y, Block block)
     
    static boolean
    contactsShallows(int x, int y, Block block)
     
    static mindustry.gen.Building
    getEnemyOverlap(Block block, Team team, int x, int y)
     
    static boolean
    validBreak(Team team, int x, int y)
    Returns whether the tile at this position is breakable by this team
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
    • 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