Class MortarRecipe
java.lang.Object
de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
de.ellpeck.rockbottom.api.construction.compendium.MortarRecipe
- All Implemented Interfaces:
ICompendiumRecipe,IContent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceNameprotected final List<ItemInstance>protected final intFields inherited from class de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
isKnowledge, skillRewardFields inherited from class de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
infoName -
Constructor Summary
ConstructorsConstructorDescriptionMortarRecipe(ResourceName name, List<IUseInfo> inputs, List<ItemInstance> output, int time, boolean isKnowledge, float skillReward) -
Method Summary
Modifier and TypeMethodDescriptionvoidconstruct(AbstractPlayerEntity player, IInventory inventory, TileEntity machine, int amount) static MortarRecipeforName(ResourceName name) static MortarRecipegetRecipe(AbstractPlayerEntity player, IInventory inv, TileEntity mortar) intgetTime()register()Methods inherited from class de.ellpeck.rockbottom.api.construction.compendium.PlayerCompendiumRecipe
getKnowledgeInformationName, getSkillReward, isKnowledge, isKnown, playerConstructMethods inherited from class de.ellpeck.rockbottom.api.construction.compendium.BasicCompendiumRecipe
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.ellpeck.rockbottom.api.construction.compendium.ICompendiumRecipe
canConstruct, fillRecipeInfo, getConstructButton, getIngredientButtons, getPolaroidButton, onConstruct
-
Field Details
-
ID
-
inputs
-
output
-
time
protected final int time
-
-
Constructor Details
-
MortarRecipe
public MortarRecipe(ResourceName name, List<IUseInfo> inputs, List<ItemInstance> output, int time, boolean isKnowledge, float skillReward)
-
-
Method Details
-
forName
-
getRecipe
public static MortarRecipe getRecipe(AbstractPlayerEntity player, IInventory inv, TileEntity mortar) -
getTime
public int getTime() -
construct
public void construct(AbstractPlayerEntity player, IInventory inventory, TileEntity machine, int amount) -
register
-
getInputs
-
getOutputs
-