public abstract class PlayerCompendiumRecipe extends BasicCompendiumRecipe
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isKnowledge |
protected float |
skillReward |
infoName| Constructor and Description |
|---|
PlayerCompendiumRecipe(ResourceName name,
boolean isKnowledge,
float skillReward) |
| Modifier and Type | Method and Description |
|---|---|
ResourceName |
getKnowledgeInformationName() |
float |
getSkillReward() |
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.
|
boolean |
isKnowledge() |
boolean |
isKnown(AbstractEntityPlayer player) |
void |
playerConstruct(AbstractEntityPlayer player,
TileEntity machine,
int amount) |
getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanConstruct, forName, getActualInputs, getActualOutputs, getConstructButton, getIngredientButtons, getInputs, getOutputs, getPolaroidButtonprotected final boolean isKnowledge
protected final float skillReward
public PlayerCompendiumRecipe(ResourceName name, boolean isKnowledge, float skillReward)
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)
player - 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 void playerConstruct(AbstractEntityPlayer player, TileEntity machine, int amount)
public ResourceName getKnowledgeInformationName()
public boolean isKnowledge()
public boolean isKnown(AbstractEntityPlayer player)
public float getSkillReward()