public interface ICompendiumRecipe extends IContent
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canConstruct(AbstractPlayerEntity player,
IInventory inputInv,
IInventory outputInv,
TileEntity machine,
java.util.List<ItemInstance> ingredients) |
default void |
fillRecipeInfo(Gui gui,
IGameInstance game,
IAssetManager manager,
java.util.List<java.lang.String> info,
ItemInstance currentItem,
ConstructComponent component) |
static ICompendiumRecipe |
forName(ResourceName name) |
default ConstructComponent |
getConstructButton(Gui gui,
AbstractPlayerEntity player,
TileEntity machine,
boolean canConstruct) |
default java.util.List<IngredientComponent> |
getIngredientButtons(Gui gui,
AbstractPlayerEntity player,
ResourceName tex) |
java.util.List<IUseInfo> |
getInputs() |
ResourceName |
getName() |
java.util.List<ItemInstance> |
getOutputs() |
default PolaroidComponent |
getPolaroidButton(Gui gui,
AbstractPlayerEntity player,
boolean canConstruct,
ResourceName tex) |
default boolean |
isKnowledge() |
default boolean |
isKnown(AbstractPlayerEntity player) |
default void |
onConstruct(AbstractPlayerEntity player,
IInventory inputInventory,
IInventory outputInventory,
TileEntity machine,
java.util.List<ItemInstance> ingredients,
float skillReward)
Called during construction with the machine used to construct the recipe.
|
static ICompendiumRecipe forName(ResourceName name)
ResourceName getName()
java.util.List<IUseInfo> getInputs()
java.util.List<ItemInstance> getOutputs()
default boolean canConstruct(AbstractPlayerEntity player, IInventory inputInv, IInventory outputInv, TileEntity machine, java.util.List<ItemInstance> ingredients)
default void onConstruct(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, TileEntity machine, java.util.List<ItemInstance> ingredients, float skillReward)
player - the playerinputInventory - the input inventoryoutputInventory - the output inventorymachine - the machineingredients - the compacted list of items available as inputsskillReward - the skill rewarddefault boolean isKnown(AbstractPlayerEntity player)
default boolean isKnowledge()
default java.util.List<IngredientComponent> getIngredientButtons(Gui gui, AbstractPlayerEntity player, ResourceName tex)
default ConstructComponent getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct)
default PolaroidComponent getPolaroidButton(Gui gui, AbstractPlayerEntity player, boolean canConstruct, ResourceName tex)
default void fillRecipeInfo(Gui gui, IGameInstance game, IAssetManager manager, java.util.List<java.lang.String> info, ItemInstance currentItem, ConstructComponent component)