Package mantle.utils

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


    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

    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

        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

Related Classes of mantle.utils.ItemMetaWrapper

Copyright © 2018 www.massapicom. 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.