Class ToolConstructionRecipe
java.lang.Object
de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
de.ellpeck.rockbottom.api.construction.compendium.ConstructionRecipe
de.ellpeck.rockbottom.api.construction.compendium.ToolConstructionRecipe
- All Implemented Interfaces:
ICompendiumRecipe,IToolRecipe,IContent
-
Field Summary
FieldsFields inherited from class de.ellpeck.rockbottom.api.construction.compendium.ConstructionRecipe
ID, inputs, manualOnly, outputsFields 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
ConstructorsConstructorDescriptionToolConstructionRecipe(ResourceName name, List<ConstructionTool> tools, List<IUseInfo> inputs, List<ItemInstance> outputs, boolean manualOnly, boolean isKnowledge, float skillReward) -
Method Summary
Modifier and TypeMethodDescriptionvoidfillRecipeInfo(Gui gui, IGameInstance game, IAssetManager manager, List<String> info, ItemInstance currentItem, ConstructComponent component) getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct) voidonConstruct(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, TileEntity machine, List<ItemInstance> ingredients, float skillReward) Called during construction with the machine used to construct the recipe.booleanMethods inherited from class de.ellpeck.rockbottom.api.construction.compendium.ConstructionRecipe
forName, getInputs, getOutputs, registerConstructionTable, registerManual, toStringMethods 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, getIngredientButtons, getPolaroidButton
-
Field Details
-
tools
-
-
Constructor Details
-
ToolConstructionRecipe
public ToolConstructionRecipe(ResourceName name, List<ConstructionTool> tools, List<IUseInfo> inputs, List<ItemInstance> outputs, boolean manualOnly, boolean isKnowledge, float skillReward)
-
-
Method Details
-
onConstruct
public void onConstruct(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, TileEntity machine, List<ItemInstance> ingredients, float skillReward) Description copied from interface:ICompendiumRecipeCalled during construction with the machine used to construct the recipe. Provides the same parameters as the ConstructEvent directly to the recipe.- Specified by:
onConstructin interfaceICompendiumRecipe- Parameters:
player- the playerinputInventory- the input inventoryoutputInventory- the output inventorymachine- the machineingredients- the compacted list of items available as inputsskillReward- the skill reward
-
showInConstructionTable
public boolean showInConstructionTable()- Overrides:
showInConstructionTablein classConstructionRecipe
-
getConstructButton
public ConstructComponent getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct) - Specified by:
getConstructButtonin interfaceICompendiumRecipe- Overrides:
getConstructButtonin classConstructionRecipe
-
getRequiredTools
- Specified by:
getRequiredToolsin interfaceIToolRecipe
-
fillRecipeInfo
public void fillRecipeInfo(Gui gui, IGameInstance game, IAssetManager manager, List<String> info, ItemInstance currentItem, ConstructComponent component) - Specified by:
fillRecipeInfoin interfaceICompendiumRecipe
-