public class SmithingRecipe extends PlayerCompendiumRecipe
| Modifier and Type | Field and Description |
|---|---|
static ResourceName |
ID |
isKnowledge, skillRewardinfoName| Constructor and Description |
|---|
SmithingRecipe(ResourceName name,
java.util.List<IUseInfo> inputs,
java.util.List<ItemInstance> outputs,
boolean isKnowledge,
float skillReward) |
SmithingRecipe(ResourceName name,
java.util.List<IUseInfo> inputs,
java.util.List<ItemInstance> outputs,
boolean isKnowledge,
float skillReward,
int usage) |
| Modifier and Type | Method and Description |
|---|---|
ComponentConstruct |
getConstructButton(Gui gui,
AbstractEntityPlayer player,
TileEntity machine,
boolean canConstruct) |
java.util.List<IUseInfo> |
getInputs() |
java.util.List<ItemInstance> |
getOutputs() |
boolean |
handleRecipe(AbstractEntityPlayer player,
Inventory inputInventory,
Inventory outputInventory,
TileEntity machine,
java.util.List<IUseInfo> recipeInputs,
java.util.List<ItemInstance> actualInputs,
java.util.function.Function<java.util.List<ItemInstance>,java.util.List<ItemInstance>> outputGetter,
float skillReward)
Called during construction with the machine used to construct the recipe.
|
SmithingRecipe |
register() |
java.lang.String |
toString() |
getKnowledgeInformationName, getSkillReward, isKnowledge, isKnown, playerConstructgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanConstruct, forName, getActualInputs, getActualOutputs, getIngredientButtons, getPolaroidButtonpublic static final ResourceName ID
public SmithingRecipe(ResourceName name, java.util.List<IUseInfo> inputs, java.util.List<ItemInstance> outputs, boolean isKnowledge, float skillReward)
public SmithingRecipe(ResourceName name, java.util.List<IUseInfo> inputs, java.util.List<ItemInstance> outputs, boolean isKnowledge, float skillReward, int usage)
public ComponentConstruct getConstructButton(Gui gui, AbstractEntityPlayer player, TileEntity machine, boolean canConstruct)
public boolean handleRecipe(AbstractEntityPlayer player, Inventory inputInventory, Inventory outputInventory, TileEntity machine, java.util.List<IUseInfo> recipeInputs, java.util.List<ItemInstance> actualInputs, java.util.function.Function<java.util.List<ItemInstance>,java.util.List<ItemInstance>> outputGetter, float skillReward)
PlayerCompendiumRecipehandleRecipe in class PlayerCompendiumRecipeplayer - The playerinputInventory - the input inventoryoutputInventory - the output inventorymachine - the machinerecipeInputs - the inputs as dictated from the recipeactualInputs - the actual item instance inputs provided from the inventoryoutputGetter - the outputskillReward - the skill rewardpublic SmithingRecipe register()
public java.util.List<IUseInfo> getInputs()
public java.util.List<ItemInstance> getOutputs()
public java.lang.String toString()
toString in class java.lang.Object