/* * Decompiled with CFR 0.152. */ package net.minecraft.realms; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.components.Renderable; import net.minecraft.network.chat.Component; public class RealmsLabel implements Renderable { private final Component text; private final int x; private final int y; private final int color; public RealmsLabel(Component text, int x, int y, int color) { this.text = text; this.x = x; this.y = y; this.color = color; } @Override public void render(GuiGraphics graphics, int mouseX, int mouseY, float a) { graphics.drawCenteredString(Minecraft.getInstance().font, this.text, this.x, this.y, this.color); } public Component getText() { return this.text; } }