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 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); } }