Package mindustry.world
Class Build
java.lang.Object
mindustry.world.Build
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
checkNoUnitOverlap
(Block type, int x, int y) 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) static boolean
validPlace
(Block type, Team team, int x, int y, int rotation) static boolean
validPlace
(Block type, Team team, int x, int y, int rotation, boolean checkVisible) static boolean
validPlace
(Block type, Team team, int x, int y, int rotation, boolean checkVisible, boolean ignoreCoreRadius) static boolean
validPlaceIgnoreUnits
(Block type, Team team, int x, int y, int rotation, boolean checkVisible, boolean checkCoreRadius)
-
Constructor Details
-
Build
public Build()
-
-
Method Details
-
beginBreak
-
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
- 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
- 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
-
contactsGround
-
contactsShallows
-
validBreak
- Returns:
- whether the tile at this position is breakable by this team
-