Class DrawContext

java.lang.Object
net.minecraft.client.gui.DrawContext
Direct Known Subclasses:
ButtonWidget, class_35, class_594, InGameHud, Screen, TextFieldWidget

@Environment(CLIENT) public class DrawContext extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_584
glue class_669
server net/minecraft/class_584
client ub
named net/minecraft/client/gui/DrawContext
  • Field Details

    • zOffset

      protected float zOffset
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2522 Lnet/minecraft/class_584;field_2522:F
      glue field_2738 Lclass_669;field_2738:F
      server field_2522 Lnet/minecraft/class_584;field_2522:F
      client k Lub;k:F
      named zOffset Lnet/minecraft/client/gui/DrawContext;zOffset:F
  • Constructor Details

    • DrawContext

      public DrawContext()
  • Method Details

    • drawHorizontalLine

      protected void drawHorizontalLine(int x1, int x2, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1931 Lnet/minecraft/class_584;method_1931(IIII)V
      glue method_2193 Lclass_669;method_2193(IIII)V
      server method_1931 Lnet/minecraft/class_584;method_1931(IIII)V
      client a Lub;a(IIII)V
      named drawHorizontalLine Lnet/minecraft/client/gui/DrawContext;drawHorizontalLine(IIII)V
    • drawVerticalLine

      protected void drawVerticalLine(int x, int y1, int y2, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1935 Lnet/minecraft/class_584;method_1935(IIII)V
      glue method_2197 Lclass_669;method_2197(IIII)V
      server method_1935 Lnet/minecraft/class_584;method_1935(IIII)V
      client b Lub;b(IIII)V
      named drawVerticalLine Lnet/minecraft/client/gui/DrawContext;drawVerticalLine(IIII)V
    • fill

      protected void fill(int x1, int y1, int x2, int y2, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1932 Lnet/minecraft/class_584;method_1932(IIIII)V
      glue method_2194 Lclass_669;method_2194(IIIII)V
      server method_1932 Lnet/minecraft/class_584;method_1932(IIIII)V
      client a Lub;a(IIIII)V
      named fill Lnet/minecraft/client/gui/DrawContext;fill(IIIII)V
    • fillGradient

      protected void fillGradient(int startX, int startY, int endX, int endY, int colorStart, int colorEnd)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1933 Lnet/minecraft/class_584;method_1933(IIIIII)V
      glue method_2195 Lclass_669;method_2195(IIIIII)V
      server method_1933 Lnet/minecraft/class_584;method_1933(IIIIII)V
      client a Lub;a(IIIIII)V
      named fillGradient Lnet/minecraft/client/gui/DrawContext;fillGradient(IIIIII)V
    • drawCenteredTextWithShadow

      public void drawCenteredTextWithShadow(TextRenderer textRenderer, String text, int centerX, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1934 Lnet/minecraft/class_584;method_1934(Lnet/minecraft/class_34;Ljava/lang/String;III)V
      glue method_2196 Lclass_669;method_2196(Lclass_648;Ljava/lang/String;III)V
      server method_1934 Lnet/minecraft/class_584;method_1934(Lnet/minecraft/class_34;Ljava/lang/String;III)V
      client a Lub;a(Lsj;Ljava/lang/String;III)V
      named drawCenteredTextWithShadow Lnet/minecraft/client/gui/DrawContext;drawCenteredTextWithShadow(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V
    • drawTextWithShadow

      public void drawTextWithShadow(TextRenderer textRenderer, String text, int x, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1937 Lnet/minecraft/class_584;method_1937(Lnet/minecraft/class_34;Ljava/lang/String;III)V
      glue method_2199 Lclass_669;method_2199(Lclass_648;Ljava/lang/String;III)V
      server method_1937 Lnet/minecraft/class_584;method_1937(Lnet/minecraft/class_34;Ljava/lang/String;III)V
      client b Lub;b(Lsj;Ljava/lang/String;III)V
      named drawTextWithShadow Lnet/minecraft/client/gui/DrawContext;drawTextWithShadow(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V
    • drawTexture

      public void drawTexture(int x, int y, int u, int v, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1936 Lnet/minecraft/class_584;method_1936(IIIIII)V
      glue method_2198 Lclass_669;method_2198(IIIIII)V
      server method_1936 Lnet/minecraft/class_584;method_1936(IIIIII)V
      client b Lub;b(IIIIII)V
      named drawTexture Lnet/minecraft/client/gui/DrawContext;drawTexture(IIIIII)V