Interface IAssemblyMachine
- All Known Implementing Classes:
AbstractAssemblyRobotBlockEntity,AssemblyControllerBlockEntity,AssemblyDrillBlockEntity,AssemblyIOUnitBlockEntity,AssemblyLaserBlockEntity,AssemblyPlatformBlockEntity
public interface IAssemblyMachine
-
Method Summary
Modifier and TypeMethodDescriptionGet this machine's type.booleanisIdle()Returns true when the machine is done with moving/drilling/...voidsetControllerPos(net.minecraft.core.BlockPos controllerPos) Inform this machine of its controller's position.voidsetSpeed(float speed) Sets the speed of the machine, used when Speed Upgrades are inserted in the Assembly Controller
-
Method Details
-
isIdle
boolean isIdle()Returns true when the machine is done with moving/drilling/... and has returned to its idle position- Returns:
- true when the machine is idle
-
setSpeed
void setSpeed(float speed) Sets the speed of the machine, used when Speed Upgrades are inserted in the Assembly Controller- Parameters:
speed- the speed
-
getAssemblyType
Get this machine's type.- Returns:
- the type of assembly machine.
-
setControllerPos
void setControllerPos(net.minecraft.core.BlockPos controllerPos) Inform this machine of its controller's position.- Parameters:
controllerPos- the controller's blockpos
-