Package tconstruct.library.tools

Examples of tconstruct.library.tools.ToolCore


    @Override
    protected boolean canModify (ItemStack tool, ItemStack[] input)
    {
        if (tool.getItem() instanceof ToolCore)
        {
            ToolCore toolItem = (ToolCore) tool.getItem();
            if (!validType(toolItem))
                return false;

            if (matchingAmount(input) > max)
                return false;
View Full Code Here


    @Override
    protected boolean canModify (ItemStack tool, ItemStack[] input)
    {
        if (tool.getItem() instanceof ToolCore)
        {
            ToolCore toolItem = (ToolCore) tool.getItem();
            for (ItemStack stack : input)
            {
                if (stack != null && stack.hasTagCompound())
                {
                    String targetLock = stack.getTagCompound().getString("TargetLock");
                    if (!targetLock.equals("") && !targetLock.equals(toolItem.getToolName()))
                        return false;
                }
            }
            return true;
        }
View Full Code Here

    {
        par3List.add(new ItemStack(par1, 1, 0));

        for (ToolRecipe recipe : ToolBuilder.instance.combos)
        {
            ToolCore tool = recipe.getType();
            ItemStack item = new ItemStack(par1, 1, 0);
            NBTTagCompound compound = new NBTTagCompound();
            compound.setString("TargetLock", tool.getToolName());

            item.setTagCompound(compound);
            par3List.add(item);
        }
    }
View Full Code Here

TOP

Related Classes of tconstruct.library.tools.ToolCore

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.