Class RealmsLabel

java.lang.Object
net.minecraft.realms.RealmsLabel
All Implemented Interfaces:
Renderable

public class RealmsLabel extends Object implements Renderable
  • Field Details

    • text

      private final Component text
    • x

      private final int x
    • y

      private final int y
    • color

      private final int color
  • Constructor Details

    • RealmsLabel

      public RealmsLabel(Component text, int x, int y, int color)
  • Method Details

    • render

      public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Parameters:
      guiGraphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      partialTick - the partial tick time.
    • getText

      public Component getText()