Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMPRESSOR RECIPES FILE:
- PLEASE BARE IN MIND THAT IF YOU CREATE A FILE LIKE THIS YOU NEED TO CHANGE ALL INSTANCES OF FURNACERECIPES TO COMPRESSORRECIPES. CHECK THE FOLLOWING FILES FOR THIS, CONTAINERCOMPRESSOR.JAVA, BLOCKCOMPRESSOR.JAVA, GUICOMPRESSOR.JAVA, SLOTCOMPRESSOR.JAVA AND TILEENTITYCOMPRESSOR.JAVA.
- package net.minecraft.src;
- import java.util.HashMap;
- import java.util.Map;
- public class CompressorRecipes
- {
- private static final CompressorRecipes compressingBase = new CompressorRecipes();
- /** The list of smelting results. */
- private Map compressingList;
- /**
- * Used to call methods addSmelting and getSmeltingResult.
- */
- public static final CompressorRecipes smelting()
- {
- return compressingBase;
- }
- private CompressorRecipes()
- {
- compressingList = new HashMap();
- // addSmelting(Block.oreIron.blockID, new ItemStack(Item.ingotIron));
- addCompressing(Block.obsidian.blockID, new ItemStack(mod_tutorial.pressurePlateObsidian));
- }
- /**
- * Adds a smelting recipe.
- */
- public void addCompressing(int par1, ItemStack par2ItemStack)
- {
- compressingList.put(Integer.valueOf(par1), par2ItemStack);
- }
- /**
- * Returns the smelting result of an item.
- */
- public ItemStack getSmeltingResult(int par1)
- {
- return (ItemStack)compressingList.get(Integer.valueOf(par1));
- }
- public Map getSmeltingList()
- {
- return compressingList;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment