Class ProgramDrill
java.lang.Object
me.desht.pneumaticcraft.common.recipes.assembly.AssemblyProgram
me.desht.pneumaticcraft.common.recipes.assembly.ProgramDrill
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.common.recipes.assembly.AssemblyProgram
AssemblyProgram.EnumAssemblyProblem, AssemblyProgram.EnumMachine -
Field Summary
Fields inherited from class me.desht.pneumaticcraft.common.recipes.assembly.AssemblyProgram
curProblem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecutes the given step of the assembly program.getItem()getRecipeList(net.minecraft.world.level.Level world) Retrieves the needed machines for this Assembly Program.voidreadFromNBT(net.minecraft.nbt.CompoundTag tag) voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) Methods inherited from class me.desht.pneumaticcraft.common.recipes.assembly.AssemblyProgram
addProgramProblem, fromRecipe, getType
-
Constructor Details
-
ProgramDrill
public ProgramDrill()
-
-
Method Details
-
getRequiredMachines
Description copied from class:AssemblyProgramRetrieves the needed machines for this Assembly Program. As a Controller is always needed this doesn't have to be returned.- Specified by:
getRequiredMachinesin classAssemblyProgram- Returns:
- an array of machine types
-
executeStep
Description copied from class:AssemblyProgramExecutes the given step of the assembly program. It is given all the machines it is allowed to control. It's possible for the given machines to be null, but only if they aren't in the getRequiredMachines list.- Specified by:
executeStepin classAssemblyProgram- Returns:
- true if the controller should use air and display 'running'. Return false to display 'standby'.
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
writeToNBTin classAssemblyProgram
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNBTin classAssemblyProgram
-
getRecipeList
- Specified by:
getRecipeListin classAssemblyProgram
-
getItem
- Specified by:
getItemin classAssemblyProgram
-