public static class BookshelfRegistry.AnvilRecipe
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
experienceUsed
The amount of experience levels to charge for this recipe.
|
net.minecraft.item.ItemStack |
inputLeft
The ItemStack required in the left slot of the Anvil GUI.
|
net.minecraft.item.ItemStack |
inputRight
The ItemStack required in the right side of the Anvil GUI.
|
int |
materialCost
The amount of items to consume, from the right slot of the Anvil GUI.
|
java.lang.String |
nameTaxt
A name requirement for the recipe.
|
net.minecraft.item.ItemStack |
output
The ItemStack output for this recipe.
|
| Constructor and Description |
|---|
BookshelfRegistry.AnvilRecipe(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
int experience,
net.minecraft.item.ItemStack outputStack)
Constructs a new AnvilRecipe, using all of the required parameters, except for the
name requirement and material cost.
|
BookshelfRegistry.AnvilRecipe(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String requiredName,
int experience,
int materialCost,
net.minecraft.item.ItemStack outputStack)
Constructs a new AnvilRecipe, using all of the required parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExperienceCost(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String enteredName)
A basic method for calculating the experience level cost.
|
int |
getMaterialCost(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String enteredName)
A basic method for calculating the material cost.
|
net.minecraft.item.ItemStack |
getOutput(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String enteredName)
A basic method for generating the output.
|
public net.minecraft.item.ItemStack inputLeft
public net.minecraft.item.ItemStack inputRight
public java.lang.String nameTaxt
public int experienceUsed
public int materialCost
public net.minecraft.item.ItemStack output
public BookshelfRegistry.AnvilRecipe(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
int experience,
net.minecraft.item.ItemStack outputStack)
firstInput: - The ItemStack required in the left slot of the Anvil GUI.secondInput: - The ItemStack required in the right slot of the Anvil GUI.experience: - The amount of experience that this recipe should cost.outputStack: - The ItemStack that will be created by this recipe.public BookshelfRegistry.AnvilRecipe(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String requiredName,
int experience,
int materialCost,
net.minecraft.item.ItemStack outputStack)
firstInput: - The ItemStack required in the left slot of the Anvil GUI.secondInput: - The ItemStack required in the right slot of the Anvil GUI.requiredName: - A name requirement for this recipe.experience: - The amount of experience that this recipe should cost.materialCost: - The amount of items to consume from the right slot of the Anvil
GUI. If 0, the whole stack will be consumed.outputStack: - The ItemStack that will be created by this recipe.public int getExperienceCost(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String enteredName)
firstInput: - The ItemStack in the left slot of the Anvil GUI.secondInput: - The ItemStack in the right slot of the Anvil GUI.enteredName: - The name entered into the rename field.public int getMaterialCost(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String enteredName)
firstInput: - The ItemStack in the left slot of the Anvil GUI.secondInput: - The ItemStack in the right slot of the Anvil GUI.enteredName: - The name entered into the rename field.public net.minecraft.item.ItemStack getOutput(net.minecraft.item.ItemStack firstInput,
net.minecraft.item.ItemStack secondInput,
java.lang.String enteredName)
firstInput: - The ItemStack in the left slot of the Anvil GUI.secondInput: - The ItemStack in the right slot of the Anvil GUI.enteredName: - The name entered into the rename field.