Package tconstruct.tools.logic

Examples of tconstruct.tools.logic.EquipLogic


            {
                world.setBlock(x, y, z, TinkerTools.heldItemBlock, 0, 3);
                TinkerTools.heldItemBlock.onBlockPlacedBy(world, x, y, z, player, stack);
                world.playSoundEffect(x, y, z, "tinker:frypan_hit", 1.0F, (random.nextFloat() - random.nextFloat()) * 0.2F + 0.65F);

                EquipLogic logic = (EquipLogic) world.getTileEntity(x, y, z);
                logic.setEquipmentItem(stack);
                --stack.stackSize;

                return true;
            }
        }
View Full Code Here


            else
            {
                world.setBlock(x, y, z, TinkerTools.battlesignBlock, 0, 3);
                TinkerTools.battlesignBlock.onBlockPlacedBy(world, x, y, z, player, stack);

                EquipLogic logic = (EquipLogic) world.getTileEntity(x, y, z);
                logic.setEquipmentItem(stack);
                --stack.stackSize;

                if (FMLCommonHandler.instance().getSide() == Side.CLIENT)
                {
                    player.openGui(TConstruct.instance, ToolProxyClient.battlesignTextID, world, x, y, z);
View Full Code Here

TOP

Related Classes of tconstruct.tools.logic.EquipLogic

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.