Class ConstructionRecipe
java.lang.Object
de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
de.ellpeck.rockbottom.api.construction.compendium.ConstructionRecipe
- All Implemented Interfaces:
ICompendiumRecipe,IContent
- Direct Known Subclasses:
ToolConstructionRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceNameprotected final booleanprotected final List<ItemInstance>Fields inherited from class de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
isKnowledge, skillRewardFields inherited from class de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
infoName -
Constructor Summary
ConstructorsConstructorDescriptionConstructionRecipe(boolean isKnowledge, float skillReward, ItemInstance output, IUseInfo... inputs) ConstructionRecipe(ResourceName name, boolean isKnowledge, float skillReward, ItemInstance output, IUseInfo... inputs) ConstructionRecipe(ResourceName name, List<IUseInfo> inputs, List<ItemInstance> outputs, boolean manualOnly, boolean isKnowledge, float skillReward) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstructionRecipeforName(ResourceName name) getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct) booleantoString()Methods inherited from class de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
getKnowledgeInformationName, getSkillReward, isKnowledge, isKnown, playerConstructMethods inherited from class de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.ellpeck.rockbottom.api.construction.compendium.ICompendiumRecipe
canConstruct, fillRecipeInfo, getIngredientButtons, getPolaroidButton, onConstruct
-
Field Details
-
ID
-
inputs
-
outputs
-
manualOnly
protected final boolean manualOnly
-
-
Constructor Details
-
ConstructionRecipe
public ConstructionRecipe(ResourceName name, List<IUseInfo> inputs, List<ItemInstance> outputs, boolean manualOnly, boolean isKnowledge, float skillReward) -
ConstructionRecipe
public ConstructionRecipe(ResourceName name, boolean isKnowledge, float skillReward, ItemInstance output, IUseInfo... inputs) -
ConstructionRecipe
public ConstructionRecipe(boolean isKnowledge, float skillReward, ItemInstance output, IUseInfo... inputs)
-
-
Method Details
-
forName
-
getInputs
-
getOutputs
-
getConstructButton
public ConstructComponent getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct) -
showInConstructionTable
public boolean showInConstructionTable() -
registerManual
-
registerConstructionTable
-
toString
-