Interface ICraftingCPU


public interface ICraftingCPU
  • Method Details

    • isBusy

      boolean isBusy()
      Returns:
      true if the CPU currently has a job.
    • getJobStatus

      @Nullable @Nullable CraftingJobStatus getJobStatus()
      Returns:
      The status of the current job (that is if isBusy() was true).
    • cancelJob

      void cancelJob()
      Cancels the current job.
    • getAvailableStorage

      long getAvailableStorage()
      Returns:
      the available storage in bytes
    • getCoProcessors

      int getCoProcessors()
      Returns:
      the number of co-processors in the CPU.
    • getName

      @Nullable @Nullable net.minecraft.network.chat.Component getName()
      Returns:
      a null or the name of the cpu.
    • getSelectionMode

      CpuSelectionMode getSelectionMode()
      Returns:
      The mode used to select this CPU for crafting jobs when the CPU should be auto-selected.