public class ToolConstructionRecipe extends ConstructionRecipe implements IToolRecipe
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ConstructionTool> |
tools |
ID, inputs, manualOnly, outputsisKnowledge, skillRewardinfoName| Constructor and Description |
|---|
ToolConstructionRecipe(ResourceName name,
java.util.List<ConstructionTool> tools,
java.util.List<IUseInfo> inputs,
java.util.List<ItemInstance> outputs,
boolean manualOnly,
boolean isKnowledge,
float skillReward) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillRecipeInfo(Gui gui,
IGameInstance game,
IAssetManager manager,
java.util.List<java.lang.String> info,
ItemInstance currentItem,
ConstructComponent component) |
ConstructComponent |
getConstructButton(Gui gui,
AbstractPlayerEntity player,
TileEntity machine,
boolean canConstruct) |
java.util.List<ConstructionTool> |
getRequiredTools() |
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.
|
boolean |
showInConstructionTable() |
forName, getInputs, getOutputs, registerConstructionTable, registerManual, toStringgetKnowledgeInformationName, getSkillReward, isKnowledge, isKnown, playerConstructgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanConstruct, getIngredientButtons, getPolaroidButtonprotected final java.util.List<ConstructionTool> tools
public ToolConstructionRecipe(ResourceName name, java.util.List<ConstructionTool> tools, java.util.List<IUseInfo> inputs, java.util.List<ItemInstance> outputs, boolean manualOnly, boolean isKnowledge, float skillReward)
public void onConstruct(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, TileEntity machine, java.util.List<ItemInstance> ingredients, float skillReward)
ICompendiumRecipeonConstruct in interface ICompendiumRecipeplayer - the playerinputInventory - the input inventoryoutputInventory - the output inventorymachine - the machineingredients - the compacted list of items available as inputsskillReward - the skill rewardpublic boolean showInConstructionTable()
showInConstructionTable in class ConstructionRecipepublic ConstructComponent getConstructButton(Gui gui, AbstractPlayerEntity player, TileEntity machine, boolean canConstruct)
getConstructButton in interface ICompendiumRecipegetConstructButton in class ConstructionRecipepublic java.util.List<ConstructionTool> getRequiredTools()
getRequiredTools in interface IToolRecipepublic void fillRecipeInfo(Gui gui, IGameInstance game, IAssetManager manager, java.util.List<java.lang.String> info, ItemInstance currentItem, ConstructComponent component)
fillRecipeInfo in interface ICompendiumRecipe