Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()


            }
 
            font.drawStringWithShadow("Block: " + obj.getBlock(world).getUnlocalizedName(), 1, 1, 0x404040);
            font.drawStringWithShadow("Metadata: " + obj.getMetadata(world), 1, 10, 0x404040);
            font.drawStringWithShadow("Location: " + MekanismUtils.getCoordDisplay(obj), 1, 19, 0x404040);
            font.drawStringWithShadow("TileEntity: " + tileDisplay, 1, 28, 0x404040);
            font.drawStringWithShadow("Side: " + pos.sideHit, 1, 37, 0x404040);
          }
        }
 
        if(player != null && mc.currentScreen == null && player.getEquipmentInSlot(3) != null)
View Full Code Here


 
            font.drawStringWithShadow("Block: " + obj.getBlock(world).getUnlocalizedName(), 1, 1, 0x404040);
            font.drawStringWithShadow("Metadata: " + obj.getMetadata(world), 1, 10, 0x404040);
            font.drawStringWithShadow("Location: " + MekanismUtils.getCoordDisplay(obj), 1, 19, 0x404040);
            font.drawStringWithShadow("TileEntity: " + tileDisplay, 1, 28, 0x404040);
            font.drawStringWithShadow("Side: " + pos.sideHit, 1, 37, 0x404040);
          }
        }
 
        if(player != null && mc.currentScreen == null && player.getEquipmentInSlot(3) != null)
        {
View Full Code Here

 
          if(stack.getItem() instanceof ItemJetpack)
          {
            ItemJetpack jetpack = (ItemJetpack)stack.getItem();
 
            font.drawStringWithShadow("Mode: " + jetpack.getMode(stack).getName(), 1, y - 20, 0x404040);
            font.drawStringWithShadow("Hydrogen: " + jetpack.getStored(stack), 1, y - 11, 0x404040);
          }
          else if(stack.getItem() instanceof ItemScubaTank)
          {
            ItemScubaTank scubaTank = (ItemScubaTank)stack.getItem();
View Full Code Here

          if(stack.getItem() instanceof ItemJetpack)
          {
            ItemJetpack jetpack = (ItemJetpack)stack.getItem();
 
            font.drawStringWithShadow("Mode: " + jetpack.getMode(stack).getName(), 1, y - 20, 0x404040);
            font.drawStringWithShadow("Hydrogen: " + jetpack.getStored(stack), 1, y - 11, 0x404040);
          }
          else if(stack.getItem() instanceof ItemScubaTank)
          {
            ItemScubaTank scubaTank = (ItemScubaTank)stack.getItem();
            String state = (scubaTank.getFlowing(stack) ? EnumColor.DARK_GREEN + "On" : EnumColor.DARK_RED + "Off");
View Full Code Here

          else if(stack.getItem() instanceof ItemScubaTank)
          {
            ItemScubaTank scubaTank = (ItemScubaTank)stack.getItem();
            String state = (scubaTank.getFlowing(stack) ? EnumColor.DARK_GREEN + "On" : EnumColor.DARK_RED + "Off");
 
            font.drawStringWithShadow("Mode: " + state, 1, y - 20, 0x404040);
            font.drawStringWithShadow("Oxygen: " + scubaTank.getStored(stack), 1, y - 11, 0x404040);
          }
        }
 
        Set<String> copy = (Set)((HashSet)Mekanism.jetpackOn).clone();
View Full Code Here

          {
            ItemScubaTank scubaTank = (ItemScubaTank)stack.getItem();
            String state = (scubaTank.getFlowing(stack) ? EnumColor.DARK_GREEN + "On" : EnumColor.DARK_RED + "Off");
 
            font.drawStringWithShadow("Mode: " + state, 1, y - 20, 0x404040);
            font.drawStringWithShadow("Oxygen: " + scubaTank.getStored(stack), 1, y - 11, 0x404040);
          }
        }
 
        Set<String> copy = (Set)((HashSet)Mekanism.jetpackOn).clone();
 
View Full Code Here

                    OpenGlHelper.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, 1, 0);
                    FontRenderer font = highlightingItemStack.getItem().getFontRenderer(highlightingItemStack);
                    if (font != null)
                    {
                        int x = (width - font.getStringWidth(name)) / 2;
                        font.drawStringWithShadow(name, x, y, WHITE | (opacity << 24));
                    }
                    else
                    {
                        int x = (width - fontrenderer.getStringWidth(name)) / 2;
                        fontrenderer.drawStringWithShadow(name, x, y, WHITE | (opacity << 24));
View Full Code Here

        GL11.glDisable(GL11.GL_LIGHTING);
        GL11.glDisable(GL11.GL_DEPTH_TEST);
        itemRenderer.zLevel = 0.0F;

        // Draw number
        font.drawStringWithShadow(s, x + 19 - 2 - font.getStringWidth(s), y + 6 + 3, 16777215);

        x += panelxSize;
        if (x > 200) {
          x = 2;
          y += panelySize;
View Full Code Here

    int scrHeight = screenRes.getScaledHeight();
   
    int uwidth = getWidthOf("_");
    int uposx = (scrWidth - uwidth) / 2 + getWidthOf(this.MESSAGE_TITLE) / 2;
   
    fontRenderer.drawStringWithShadow(this.MESSAGE_TITLE, uposx + uwidth * 2, scrHeight / 2, 0xffffff);
   
    fontRenderer.drawStringWithShadow(msgper, uposx + uwidth * 2, scrHeight / 2 + 10, 255 << 16
      | (int) (200 + 55 * (this.doneValue < 1 ? 1 : 2 - this.doneValue)) << 8);
   
    if (!this.knowsHowToUse)
View Full Code Here

    int uwidth = getWidthOf("_");
    int uposx = (scrWidth - uwidth) / 2 + getWidthOf(this.MESSAGE_TITLE) / 2;
   
    fontRenderer.drawStringWithShadow(this.MESSAGE_TITLE, uposx + uwidth * 2, scrHeight / 2, 0xffffff);
   
    fontRenderer.drawStringWithShadow(msgper, uposx + uwidth * 2, scrHeight / 2 + 10, 255 << 16
      | (int) (200 + 55 * (this.doneValue < 1 ? 1 : 2 - this.doneValue)) << 8);
   
    if (!this.knowsHowToUse)
    {
      float glocount = this.mod.util().getClientTick() + fspan;
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.