Package pneumaticCraft.common.tileentity

Examples of pneumaticCraft.common.tileentity.TileEntityPressureTube


        return null;
    }

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


    public void update(){
        //Log.info("sides connected " + world().isRemote + ": " + Arrays.toString(sidesConnected));
        if(Config.convertMultipartsToBlocks && !world().isRemote) {
            Log.info("Converting Pressure Tube part to Pressure Tube block at " + x() + ", " + y() + ", " + z());
            world().setBlock(x(), y(), z(), Block.getBlockFromItem(getItem().getItem()));
            TileEntityPressureTube tube = (TileEntityPressureTube)world().getTileEntity(x(), y(), z());
            for(PartTubeModule module : FMP.getMultiParts(tile(), PartTubeModule.class)) {
                tube.setModule(module.getModule(), module.getModule().getDirection());
                tube.updateConnections(world(), x(), y(), z());
                world().notifyBlocksOfNeighborChange(x(), y(), z(), Blockss.pressureTube, module.getModule().getDirection().getOpposite().ordinal());
            }
            return;
        }
        if(convertedModules != null && !world().isRemote) {//when we convert a tube block to a tube part, look for attached modules.
View Full Code Here

TOP

Related Classes of pneumaticCraft.common.tileentity.TileEntityPressureTube

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.