Interface IAssemblyMachine

All Known Implementing Classes:
AbstractAssemblyRobotBlockEntity, AssemblyControllerBlockEntity, AssemblyDrillBlockEntity, AssemblyIOUnitBlockEntity, AssemblyLaserBlockEntity, AssemblyPlatformBlockEntity

public interface IAssemblyMachine
  • Method Summary

    Modifier and Type
    Method
    Description
    Get this machine's type.
    boolean
    Returns true when the machine is done with moving/drilling/...
    void
    setControllerPos(net.minecraft.core.BlockPos controllerPos)
    Inform this machine of its controller's position.
    void
    setSpeed(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

      @Nonnull AssemblyProgram.EnumMachine 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