Package mekanism.common

Examples of mekanism.common.IUpgradeTile


  {
    mc.renderEngine.bindTexture(RESOURCE);

    guiObj.drawTexturedRect(guiWidth + 176, guiHeight + 6, 0, 0, 26, 63);

    IUpgradeTile upgradeTile = (IUpgradeTile)tileEntity;
    int displayInt = upgradeTile.getComponent().getScaledUpgradeProgress(14);

    guiObj.drawTexturedRect(guiWidth + 180, guiHeight + 30, 26, 0, 10, displayInt);

    mc.renderEngine.bindTexture(defaultLocation);
  }
View Full Code Here


  @Override
  public void renderForeground(int xAxis, int yAxis)
  {
    mc.renderEngine.bindTexture(RESOURCE);

    IUpgradeTile upgradeTile = (IUpgradeTile)tileEntity;

    if(getFontRenderer() != null)
    {
      getFontRenderer().drawString("S:" + (upgradeTile.getSpeedMultiplier()+1) + "x", 179, 47, 0x404040);
      getFontRenderer().drawString("E:" + (upgradeTile.getEnergyMultiplier()+1) + "x", 179, 57, 0x404040);
    }

    if(xAxis >= 179 && xAxis <= 198 && yAxis >= 47 && yAxis <= 54)
    {
      displayTooltip(MekanismUtils.localize("gui.removeSpeedUpgrade"), xAxis, yAxis);
View Full Code Here

TOP

Related Classes of mekanism.common.IUpgradeTile

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.