Package tconstruct.blocks.logic

Examples of tconstruct.blocks.logic.DryingRackLogic


    }

    @Override
    public TileEntity createNewTileEntity (World world, int metadata)
    {
        return new DryingRackLogic();
    }
View Full Code Here


    boolean activateDryingRack (World world, int x, int y, int z, EntityPlayer player)
    {
        if (!world.isRemote)
        {
            DryingRackLogic logic = (DryingRackLogic) world.getTileEntity(x, y, z);

            if (!logic.isStackInSlot(0))
            {
                ItemStack stack = player.getCurrentEquippedItem();
                if (stack != null)
                {
                    stack = player.inventory.decrStackSize(player.inventory.currentItem, 1);
                    logic.setInventorySlotContents(0, stack);
                }
            }
            else
            {
                if (logic.isStackInSlot(0))
                {
                    ItemStack decrStack = logic.decrStackSize(0, 1);
                    if (decrStack != null)
                        addItemToInventory(player, world, x, y, z, decrStack);
                }
            }
View Full Code Here

    }

    @Override
    public TileEntity createTileEntity (World world, int metadata)
    {
        return new DryingRackLogic();
    }
View Full Code Here

TOP

Related Classes of tconstruct.blocks.logic.DryingRackLogic

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.