Package net.minecraft.client.gui

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


  }

  private void recalculateSize() {
    FontRenderer fontRenderer = guiContainer.getFontRenderer();
    if(xMax > 0) {
      this.width = fontRenderer.splitStringWidth(labelText, xMax);
      int totalWidth = fontRenderer.getStringWidth(labelText);
      this.height = fontRenderer.FONT_HEIGHT * Math.max(1, (totalWidth / width));   
    }
    else {
      this.width = fontRenderer.getStringWidth(labelText);
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.