Package electricexpansion.common.misc

Examples of electricexpansion.common.misc.EnumAdvBattBoxMode


        {
            try
            {
                ForgeDirection newInputDir = ForgeDirection.getOrientation(dataStream.readByte());
                ForgeDirection newOutputDir = ForgeDirection.getOrientation(dataStream.readByte());
                EnumAdvBattBoxMode newInputMode = EnumAdvBattBoxMode.fromValue(dataStream.readByte());
                EnumAdvBattBoxMode newOutputMode = EnumAdvBattBoxMode.fromValue(dataStream.readByte());
               
                if (this.inputDir != newInputDir)
                    this.setInputDir(newInputDir);
                if (this.outputDir != newOutputDir)
                    this.setOutputDir(newOutputDir);
View Full Code Here


    this.guiTopLeftX = (this.width - this.xSize) / 2;
    this.guiTopLeftY = (this.height - this.ySize) / 2;
    this.drawTexturedModalRect(this.guiTopLeftX, this.guiTopLeftY, 0, 0, this.xSize, this.ySize);

    EnumAdvBattBoxMode mode = this.tileEntity.getInputMode();
    this.drawTexturedModalRect(this.guiTopLeftX + 197, guiTopLeftY + 41, mode.ordinal() * 17, 169, 16, 16);

    mode = this.tileEntity.getOutputMode();
    this.drawTexturedModalRect(this.guiTopLeftX + 197, guiTopLeftY + 65, mode.ordinal() * 17, 186, 16, 16);

    int scale = (int) (this.tileEntity.getEnergyStored() / this.tileEntity.getMaxEnergyStored() * 72.0D);
    this.drawTexturedModalRect(this.guiTopLeftX + 64, this.guiTopLeftY + 46, 0, 166, scale, 3);

    // Draw input/output sprites on the direction chooser
View Full Code Here

TOP

Related Classes of electricexpansion.common.misc.EnumAdvBattBoxMode

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.