Package pneumaticCraft.common.tileentity

Examples of pneumaticCraft.common.tileentity.TileEntityElevatorBase


    public void breakBlock(World world, int x, int y, int z, Block block, int meta){
        if(world.getBlock(x, y - 1, z) == Blockss.elevatorBase) {
            TileEntity te = world.getTileEntity(x, y - 1, z);
            ((TileEntityElevatorBase)te).moveInventoryToThis();
        }
        TileEntityElevatorBase elevatorBase = getCoreTileEntity(world, x, y, z);
        if(elevatorBase != null) {
            elevatorBase.updateMaxElevatorHeight();
        }
        super.breakBlock(world, x, y, z, block, meta);
    }
View Full Code Here


        TileEntity tileEntity = world.getTileEntity(x, y, z);

        if(!(tileEntity instanceof TileEntityElevatorBase)) return;

        TileEntityElevatorBase inventory = (TileEntityElevatorBase)tileEntity;
        Random rand = new Random();
        for(int i = getInventoryDropStartSlot(inventory); i < getInventoryDropEndSlot(inventory); i++) {

            ItemStack itemStack = inventory.getRealStackInSlot(i);

            if(itemStack != null && itemStack.stackSize > 0) {
                float dX = rand.nextFloat() * 0.8F + 0.1F;
                float dY = rand.nextFloat() * 0.8F + 0.1F;
                float dZ = rand.nextFloat() * 0.8F + 0.1F;
View Full Code Here

TOP

Related Classes of pneumaticCraft.common.tileentity.TileEntityElevatorBase

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.