aboutsummaryrefslogtreecommitdiff
path: root/Danker/handlers/TextRenderer.java
blob: 262f9326a7c0c881a734810cac1d901c13de546b (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);
		}
	}
}