use of net.minecraft.client.gui.FontRenderer in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class PageSynthesisAbout method drawPageForeground.
@Override
public void drawPageForeground(int width, int height) {
super.drawPageForeground(width, height);
FontRenderer fontRendererObj = Minecraft.getMinecraft().fontRenderer;
String[] count = text.split("\n");
fontRendererObj.drawSplitString(text, getxPos(), getyPos() + (fontRendererObj.FONT_HEIGHT * 2), (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2), 0xFFFFFF);
// int length = fontRendererObj.splitStringWidth(text, (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2));
// fontRendererObj.drawString("TESTING SO THAT THIS IS ALWAYS AT THE
// BOTTOM.", this.getxPos(), (this.getyPos() +
// (fontRendererObj.FONT_HEIGHT * 2)) + length, 0xFFFFFF);
}
use of net.minecraft.client.gui.FontRenderer in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class PageSynthesisMaterials method drawPageForeground.
@Override
public void drawPageForeground(int width, int height) {
super.drawPageForeground(width, height);
FontRenderer fontRendererObj = Minecraft.getMinecraft().fontRenderer;
String[] count = text.split("\n");
fontRendererObj.drawSplitString(text, getxPos(), getyPos() + (fontRendererObj.FONT_HEIGHT * 2), (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2), 0xFFFFFF);
// int length = fontRendererObj.splitStringWidth(text, (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2));
// fontRendererObj.drawString("TESTING SO THAT THIS IS ALWAYS AT THE
// BOTTOM.", this.getxPos(), (this.getyPos() +
// (fontRendererObj.FONT_HEIGHT * 2)) + length, 0xFFFFFF);
}
use of net.minecraft.client.gui.FontRenderer in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class PageSynthesisRecipes method drawPageForeground.
@Override
public void drawPageForeground(int width, int height) {
super.drawPageForeground(width, height);
FontRenderer fontRendererObj = Minecraft.getMinecraft().fontRenderer;
String[] count = text.split("\n");
fontRendererObj.drawSplitString(text, getxPos(), getyPos() + (fontRendererObj.FONT_HEIGHT * 2), (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2), 0xFFFFFF);
// int length = fontRendererObj.splitStringWidth(text, (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2));
// fontRendererObj.drawString("TESTING SO THAT THIS IS ALWAYS AT THE
// BOTTOM.", this.getxPos(), (this.getyPos() +
// (fontRendererObj.FONT_HEIGHT * 2)) + length, 0xFFFFFF);
}
use of net.minecraft.client.gui.FontRenderer in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class PageBugBloxSpecial method drawPageForeground.
@Override
public void drawPageForeground(int width, int height) {
super.drawPageForeground(width, height);
FontRenderer fontRendererObj = Minecraft.getMinecraft().fontRenderer;
String[] count = text.split("\n");
fontRendererObj.drawSplitString(text, getxPos(), getyPos() + (fontRendererObj.FONT_HEIGHT * 2), (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2), 0xFFFFFF);
// int length = fontRendererObj.splitStringWidth(text, (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2));
// fontRendererObj.drawString("TESTING SO THAT THIS IS ALWAYS AT THE
// BOTTOM.", this.getxPos(), (this.getyPos() +
// (fontRendererObj.FONT_HEIGHT * 2)) + length, 0xFFFFFF);
}
use of net.minecraft.client.gui.FontRenderer in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class PageCommandMenuDrive method drawPageForeground.
@Override
public void drawPageForeground(int width, int height) {
super.drawPageForeground(width, height);
FontRenderer fontRendererObj = Minecraft.getMinecraft().fontRenderer;
String[] count = text.split("\n");
fontRendererObj.drawSplitString(text, getxPos(), getyPos() + (fontRendererObj.FONT_HEIGHT * 2), (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2), 0xFFFFFF);
// int length = fontRendererObj.splitStringWidth(text, (new ScaledResolution(Minecraft.getMinecraft())).getScaledWidth() - getxPos() - (fontRendererObj.FONT_HEIGHT * 2));
// fontRendererObj.drawString("TESTING SO THAT THIS IS ALWAYS AT THE
// BOTTOM.", this.getxPos(), (this.getyPos() +
// (fontRendererObj.FONT_HEIGHT * 2)) + length, 0xFFFFFF);
}
Aggregations