Interface ICompendiumRecipe
- All Superinterfaces:
IContent
- All Known Implementing Classes:
BasicCompendiumRecipe,CombinerRecipe,ConstructionRecipe,MortarRecipe,PlayerCompendiumRecipe,SmeltingRecipe,SmithingRecipe,ToolConstructionRecipe
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanConstruct(AbstractPlayerEntity player, IInventory inputInv, IInventory outputInv, TileEntity machine, List<ItemInstance> ingredients) default voidfillRecipeInfo(Gui gui, IGameInstance game, IAssetManager manager, List<String> info, ItemInstance currentItem, ConstructComponent component) static ICompendiumRecipeforName(ResourceName name) default ConstructComponentgetConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct) default List<IngredientComponent>getIngredientButtons(Gui gui, AbstractPlayerEntity player, ResourceName tex) getName()default PolaroidComponentgetPolaroidButton(Gui gui, AbstractPlayerEntity player, boolean canConstruct, ResourceName tex) default booleandefault booleanisKnown(AbstractPlayerEntity player) default 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.
-
Method Details
-
forName
-
getName
ResourceName getName() -
getInputs
-
getOutputs
List<ItemInstance> getOutputs() -
canConstruct
default boolean canConstruct(AbstractPlayerEntity player, IInventory inputInv, IInventory outputInv, TileEntity machine, List<ItemInstance> ingredients) -
onConstruct
default void onConstruct(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, TileEntity machine, List<ItemInstance> ingredients, float skillReward) Called during construction with the machine used to construct the recipe. Provides the same parameters as the ConstructEvent directly to the recipe.- Parameters:
player- the playerinputInventory- the input inventoryoutputInventory- the output inventorymachine- the machineingredients- the compacted list of items available as inputsskillReward- the skill reward
-
isKnown
-
isKnowledge
default boolean isKnowledge() -
getIngredientButtons
default List<IngredientComponent> getIngredientButtons(Gui gui, AbstractPlayerEntity player, ResourceName tex) -
getConstructButton
default ConstructComponent getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct) -
getPolaroidButton
default PolaroidComponent getPolaroidButton(Gui gui, AbstractPlayerEntity player, boolean canConstruct, ResourceName tex) -
fillRecipeInfo
default void fillRecipeInfo(Gui gui, IGameInstance game, IAssetManager manager, List<String> info, ItemInstance currentItem, ConstructComponent component)
-