Examples of TileEntityParaChest


Examples of micdoodle8.mods.galacticraft.core.tile.TileEntityParaChest

    }

    @Override
    public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, Block par5)
    {
        TileEntityParaChest tileentitychest = (TileEntityParaChest) par1World.getTileEntity(par2, par3, par4);

        if (tileentitychest != null)
        {
            tileentitychest.updateContainingBlockInfo();
        }
    }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.tile.TileEntityParaChest

    }

    @Override
    public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6)
    {
        TileEntityParaChest tileentitychest = (TileEntityParaChest) par1World.getTileEntity(par2, par3, par4);

        if (tileentitychest != null)
        {
            for (int j1 = 0; j1 < tileentitychest.getSizeInventory(); ++j1)
            {
                ItemStack itemstack = tileentitychest.getStackInSlot(j1);

                if (itemstack != null)
                {
                    float f = this.random.nextFloat() * 0.8F + 0.1F;
                    float f1 = this.random.nextFloat() * 0.8F + 0.1F;
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.tile.TileEntityParaChest

    }

    @Override
    public TileEntity createNewTileEntity(World par1World, int meta)
    {
        return new TileEntityParaChest();
    }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.tile.TileEntityParaChest

        this.worldObj.setBlock(x, y, z, GCBlocks.parachest, 0, 3);
        final TileEntity te = this.worldObj.getTileEntity(x, y, z);

        if (te instanceof TileEntityParaChest && this.cargo != null)
        {
            final TileEntityParaChest chest = (TileEntityParaChest) te;

            chest.chestContents = new ItemStack[this.cargo.length + 1];

            for (int i = 0; i < this.cargo.length; i++)
            {
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.