Package electricexpansion.common.misc

Examples of electricexpansion.common.misc.EnumAdvBattBoxMode.ordinal()


    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);
 
View Full Code Here


    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
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.