Package net.minecraft.src

Examples of net.minecraft.src.FontRenderer.drawString()


      Color color = r.getColor(this);
      if (!isSelected()) {
        color.setAlpha(0.2F);
      }
      r.drawTexture(direction, 20, 20, color, true);
      font.drawString(getText(), 22, 7, r.getColor(this).toInt());
    }
  }

  public boolean isActive() {
    return isSelected();
View Full Code Here


        tessellator.addVertex(i + 1, 8D, 0.0D);
        tessellator.addVertex(i + 1, -1D, 0.0D);
        tessellator.draw();
        GL11.glEnable(3553 /*GL_TEXTURE_2D*/);
        GL11.glDepthMask(true);
        fontrenderer.drawString(s, -fontrenderer.getStringWidth(s) / 2, 0, 0x20ffffff);
        GL11.glEnable(2896 /*GL_LIGHTING*/);
        GL11.glDisable(3042 /*GL_BLEND*/);
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        GL11.glPopMatrix();
      }
View Full Code Here

    protected void drawSlot(int listIndex, int var2, int var3, int var4, Tessellator var5)
    {
      FontRenderer fr = ModLoader.getMinecraftInstance().fontRenderer;
    UpdateManagerMod mod = parent.mods.get(listIndex);
    fr.drawString(fr.trimStringToWidth(mod.getModName(), listWidth - 11), this.left + 3 , var3 + 2, mod.getModType().getHex());
      fr.drawString(fr.trimStringToWidth(mod.disableChecks() || !UpdateManager.online ? "Not Checking" : (ThreadDownloadMod.downloadings.contains(mod.getModName()) ? "�aDownloading..." : (UpdateManager.isModUpdated(mod) ? "�aUpdated" : "�cOutdated")), listWidth - 11), this.left + 3 , var3 + 12, 0xFFFFFF);
    }

  protected int getSize() {
    return UpdateManager.loadedModsSet.size();
View Full Code Here

    protected void drawSlot(int listIndex, int var2, int var3, int var4, Tessellator var5)
    {
      FontRenderer fr = ModLoader.getMinecraftInstance().fontRenderer;
    UpdateManagerMod mod = parent.mods.get(listIndex);
    fr.drawString(fr.trimStringToWidth(mod.getModName(), listWidth - 11), this.left + 3 , var3 + 2, mod.getModType().getHex());
      fr.drawString(fr.trimStringToWidth(mod.disableChecks() || !UpdateManager.online ? "Not Checking" : (ThreadDownloadMod.downloadings.contains(mod.getModName()) ? "�aDownloading..." : (UpdateManager.isModUpdated(mod) ? "�aUpdated" : "�cOutdated")), listWidth - 11), this.left + 3 , var3 + 12, 0xFFFFFF);
    }

  protected int getSize() {
    return UpdateManager.loadedModsSet.size();
  }
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.