Package appeng.api.networking.crafting
Interface ICraftingCPU
public interface ICraftingCPU
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancels the current job.long
int
@Nullable CraftingJobStatus
@Nullable net.minecraft.network.chat.Component
getName()
boolean
isBusy()
-
Method Details
-
isBusy
boolean isBusy()- Returns:
- true if the CPU currently has a job.
-
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.
-