Package pneumaticCraft.common.tileentity

Examples of pneumaticCraft.common.tileentity.TileEntityPneumaticBase


        float pressure = 0;
        float dangerPressure = 5;
        float critPressure = 7;
        if(gaugeModule != null && gaugeModule.getTube() != null) {
            TileEntityPneumaticBase base = (TileEntityPneumaticBase)((IPneumaticMachine)gaugeModule.getTube()).getAirHandler();
            pressure = base.getPressure(ForgeDirection.UNKNOWN);
            dangerPressure = base.DANGER_PRESSURE;
            critPressure = base.CRITICAL_PRESSURE;
        }
        GL11.glTranslated(0, 1, 0.378);
        double scale = 0.008D;
View Full Code Here


        for(IGuiWidget widget : widgets) {
            widget.render(i, j, partialTicks);
        }

        if(pressureStat != null) {
            TileEntityPneumaticBase pneu = (TileEntityPneumaticBase)te;
            Point gaugeLocation = getGaugeLocation();
            if(gaugeLocation != null) GuiUtils.drawPressureGauge(fontRendererObj, -1, pneu.CRITICAL_PRESSURE, pneu.DANGER_PRESSURE, te instanceof IMinWorkingPressure ? ((IMinWorkingPressure)te).getMinWorkingPressure() : -1, pneu.getPressure(ForgeDirection.UNKNOWN), gaugeLocation.x, gaugeLocation.y, zLevel);
        }
    }
View Full Code Here

    protected String getRedstoneString(){
        return te instanceof IRedstoneControlled ? "gui.tab.redstoneBehaviour.enableOn" : "gui.tab.redstoneBehaviour.emitRedstoneWhen";
    }

    protected void addPressureStatInfo(List<String> pressureStatText){
        TileEntityPneumaticBase pneumaticTile = (TileEntityPneumaticBase)te;
        pressureStatText.add("\u00a77Current Pressure:");
        pressureStatText.add("\u00a70" + PneumaticCraftUtils.roundNumberTo(pneumaticTile.getPressure(ForgeDirection.UNKNOWN), 1) + " bar.");
        pressureStatText.add("\u00a77Current Air:");
        pressureStatText.add("\u00a70" + (double)Math.round(pneumaticTile.currentAir + pneumaticTile.volume) + " mL.");
        pressureStatText.add("\u00a77Volume:");
        pressureStatText.add("\u00a70" + (double)Math.round(pneumaticTile.DEFAULT_VOLUME) + " mL.");
        float volumeLeft = pneumaticTile.volume - pneumaticTile.DEFAULT_VOLUME;
View Full Code Here

        String pressure = PneumaticCraftUtils.roundNumberTo((float)tCompound.getInteger("currentAir") / tCompound.getInteger("volume"), 1);
        values.put("Pressure", pressure + " bar");

        TileEntity te = accessor.getTileEntity();
        if(te instanceof IPneumaticMachine) {
            TileEntityPneumaticBase base = (TileEntityPneumaticBase)((IPneumaticMachine)te).getAirHandler();
            values.put("Max Pressure", base.DANGER_PRESSURE + " bar");
        }

        //Get all the values from the map and put them in the list.
        for(Map.Entry<String, String> entry : values.entrySet()) {
View Full Code Here

        this();
        convertedModules = tubeModules;
    }

    public PartPressureTube(float dangerPressurePressureTube, float maxPressurePressureTube, int volumePressureTube){
        airHandler = new TileEntityPneumaticBase(dangerPressurePressureTube, maxPressurePressureTube, volumePressureTube);
        sidesConnected = new boolean[6];
    }
View Full Code Here

TOP

Related Classes of pneumaticCraft.common.tileentity.TileEntityPneumaticBase

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.