public class FurnaceRecipes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ItemStack,java.lang.Float> |
experienceList |
private static FurnaceRecipes |
smeltingBase |
private java.util.Map<ItemStack,ItemStack> |
smeltingList |
Modifier | Constructor and Description |
---|---|
private |
FurnaceRecipes() |
Modifier and Type | Method and Description |
---|---|
void |
addSmelting(Item input,
ItemStack stack,
float experience)
Adds a smelting recipe using an Item as the input item.
|
void |
addSmeltingRecipe(ItemStack input,
ItemStack stack,
float experience)
Adds a smelting recipe using an ItemStack as the input for the recipe.
|
void |
addSmeltingRecipeForBlock(Block input,
ItemStack stack,
float experience)
Adds a smelting recipe, where the input item is an instance of Block.
|
private boolean |
compareItemStacks(ItemStack stack1,
ItemStack stack2)
Compares two itemstacks to ensure that they are the same.
|
float |
getSmeltingExperience(ItemStack stack) |
java.util.Map<ItemStack,ItemStack> |
getSmeltingList() |
ItemStack |
getSmeltingResult(ItemStack stack)
Returns the smelting result of an item.
|
static FurnaceRecipes |
instance()
Returns an instance of FurnaceRecipes.
|
private static final FurnaceRecipes smeltingBase
private java.util.Map<ItemStack,java.lang.Float> experienceList
public static FurnaceRecipes instance()
public void addSmeltingRecipeForBlock(Block input, ItemStack stack, float experience)
public void addSmelting(Item input, ItemStack stack, float experience)
public void addSmeltingRecipe(ItemStack input, ItemStack stack, float experience)
public ItemStack getSmeltingResult(ItemStack stack)
private boolean compareItemStacks(ItemStack stack1, ItemStack stack2)
public float getSmeltingExperience(ItemStack stack)