Package mindustry.world
Class Build
java.lang.Object
mindustry.world.Build
-
Constructor Summary
-
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
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 teamstatic 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.
-
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. -
getEnemyOverlap
-
contactsGround
-
contactsShallows
-
validBreak
Returns whether the tile at this position is breakable by this team
-