public class ConstructionRecipe extends PlayerCompendiumRecipe
| Modifier and Type | Field and Description |
|---|---|
static ResourceName |
ID |
protected java.util.List<IUseInfo> |
inputs |
protected boolean |
manualOnly |
protected java.util.List<ItemInstance> |
outputs |
protected java.util.List<ConstructionTool> |
tools |
isKnowledge, skillRewardinfoName| Constructor and Description |
|---|
ConstructionRecipe(java.util.List<ConstructionTool> tools,
boolean isKnowledge,
float skillReward,
ItemInstance output,
IUseInfo... inputs) |
ConstructionRecipe(ResourceName name,
java.util.List<ConstructionTool> tools,
boolean isKnowledge,
float skillReward,
ItemInstance output,
IUseInfo... inputs) |
ConstructionRecipe(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 |
|---|---|
boolean |
canUseTools(IToolStation machine) |
static ConstructionRecipe |
forName(ResourceName name) |
ComponentConstruct |
getConstructButton(Gui gui,
AbstractEntityPlayer player,
TileEntity machine,
boolean canConstruct) |
java.util.List<IUseInfo> |
getInputs() |
java.util.List<ItemInstance> |
getOutputs() |
java.util.List<ConstructionTool> |
getTools() |
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.
|
ConstructionRecipe |
registerConstructionTable() |
ConstructionRecipe |
registerManual() |
boolean |
showInConstructionTable() |
java.lang.String |
toString() |
boolean |
usesTools() |
getKnowledgeInformationName, getSkillReward, isKnowledge, isKnown, playerConstructgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanConstruct, getActualInputs, getActualOutputs, getIngredientButtons, getPolaroidButtonpublic static final ResourceName ID
protected final java.util.List<IUseInfo> inputs
protected final java.util.List<ItemInstance> outputs
protected final java.util.List<ConstructionTool> tools
protected final boolean manualOnly
public ConstructionRecipe(ResourceName name, java.util.List<ConstructionTool> tools, java.util.List<IUseInfo> inputs, java.util.List<ItemInstance> outputs, boolean manualOnly, boolean isKnowledge, float skillReward)
public ConstructionRecipe(ResourceName name, java.util.List<ConstructionTool> tools, boolean isKnowledge, float skillReward, ItemInstance output, IUseInfo... inputs)
public ConstructionRecipe(java.util.List<ConstructionTool> tools, boolean isKnowledge, float skillReward, ItemInstance output, IUseInfo... inputs)
public static ConstructionRecipe forName(ResourceName name)
public java.util.List<IUseInfo> getInputs()
public java.util.List<ItemInstance> getOutputs()
public java.util.List<ConstructionTool> getTools()
public boolean usesTools()
public boolean canUseTools(IToolStation machine)
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 boolean showInConstructionTable()
public ConstructionRecipe registerManual()
public ConstructionRecipe registerConstructionTable()
public java.lang.String toString()
toString in class java.lang.Object