blob: eeaaac6f9a15b7c75fc98717f4318106ca364e29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.chrisoft.trashyaddon.hud;
import org.chrisoft.trashyaddon.Addon;
import meteordevelopment.meteorclient.systems.hud.HudElement;
import meteordevelopment.meteorclient.systems.hud.HudElementInfo;
import meteordevelopment.meteorclient.systems.hud.HudRenderer;
import meteordevelopment.meteorclient.utils.render.color.Color;
import meteordevelopment.meteorclient.systems.hud.Hud;
public class HudExample extends HudElement {
public static final HudElementInfo<HudExample> INFO = new HudElementInfo<>(Hud.GROUP, "example", "HUD element example.", HudExample::new);
public HudExample() {
super(INFO);
}
@Override
public void render(HudRenderer renderer) {
setSize(renderer.textWidth("Example element", true), renderer.textHeight(true));
renderer.text("Example element", x, y, Color.WHITE, true);
}
}
|