Examples of ItemMetaWrapper


Examples of mantle.utils.ItemMetaWrapper

     * @param temperature How hot the block should be before liquifying
     * @param liquid The result of the process
     */
    public static void addMelting (ItemStack input, Block block, int metadata, int temperature, FluidStack liquid)
    {
        ItemMetaWrapper in = new ItemMetaWrapper(input);
        instance.smeltingList.put(in, liquid);
        instance.temperatureList.put(in, temperature);
        instance.renderIndex.put(in, new ItemStack(block, input.stackSize, metadata));
    }
View Full Code Here

Examples of mantle.utils.ItemMetaWrapper

    public static Integer getLiquifyTemperature (ItemStack item)
    {
        if (item == null)
            return 20;

        Integer temp = instance.temperatureList.get(new ItemMetaWrapper(item));
        if (temp == null)
            return 20;
        else
            return temp;
    }
View Full Code Here

Examples of mantle.utils.ItemMetaWrapper

    public static FluidStack getSmelteryResult (ItemStack item)
    {
        if (item == null)
            return null;

        FluidStack stack = instance.smeltingList.get(new ItemMetaWrapper(item));
        if (stack == null)
            return null;
        return stack.copy();
    }
View Full Code Here

Examples of mantle.utils.ItemMetaWrapper

        return instance.getSmelteryResult(new ItemStack(block, 1, metadata));
    }

    public static ItemStack getRenderIndex (ItemStack input)
    {
        return instance.renderIndex.get(new ItemMetaWrapper(input));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.