Package mindustry.world.blocks
Interface ControlBlock
- All Known Implementing Classes:
BuildTurret.BuildTurretBuild
,ContinuousLiquidTurret.ContinuousLiquidTurretBuild
,ContinuousTurret.ContinuousTurretBuild
,ItemTurret.ItemTurretBuild
,LaserTurret.LaserTurretBuild
,LiquidTurret.LiquidTurretBuild
,PayloadAmmoTurret.PayloadTurretBuild
,PowerTurret.PowerTurretBuild
,Router.RouterBuild
,Turret.TurretBuild
public interface ControlBlock
Any block that has a proxy unit that can be controlled by a player.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
default boolean
mindustry.gen.Unit
unit()
-
Method Details
-
unit
mindustry.gen.Unit unit() -
isControlled
default boolean isControlled()- Returns:
- whether this block is being controlled by a player.
-
canControl
default boolean canControl()- Returns:
- whether this block can be controlled at all.
-
shouldAutoTarget
default boolean shouldAutoTarget()- Returns:
- whether targets should automatically be selected (on mobile)
-