aboutsummaryrefslogtreecommitdiff
path: root/me/Danker/handlers/TextRenderer.java
blob: 20b056e6522d18590679ebbd5b5c5ba612c8c9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package me.Danker.handlers;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;

public class TextRenderer extends Gui {
	public TextRenderer(Minecraft mc, String text, int x, int y, int colour) {
		y -= mc.fontRendererObj.FONT_HEIGHT;
		for (String line : text.split("\n")) {
			drawString(mc.fontRendererObj, line, x, y += mc.fontRendererObj.FONT_HEIGHT, colour);
		}
	}
}