Class DrawableHelper

java.lang.Object
net.minecraft.client.gui.DrawableHelper
Direct Known Subclasses:
AbstractParentElement, AdvancementTab, AdvancementWidget, BossBarHud, ChatHud, ClickableWidget, DebugHud, InGameHud, LogoDrawer, Overlay, PlayerListHud, RecipeAlternativesWidget, RecipeBookWidget, SpectatorHud, SubtitlesHud, ToastManager

@Environment(CLIENT) public abstract class DrawableHelper extends Object
Mappings:
Namespace Name
official enr
intermediary net/minecraft/class_332
named net/minecraft/client/gui/DrawableHelper
  • Field Details

    • OPTIONS_BACKGROUND_TEXTURE

      public static final Identifier OPTIONS_BACKGROUND_TEXTURE
      The texture used by options for background.
      Mappings:
      Namespace Name Mixin selector
      official g Lenr;g:Ladd;
      intermediary field_22735 Lnet/minecraft/class_332;field_22735:Lnet/minecraft/class_2960;
      named OPTIONS_BACKGROUND_TEXTURE Lnet/minecraft/client/gui/DrawableHelper;OPTIONS_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
    • STATS_ICON_TEXTURE

      public static final Identifier STATS_ICON_TEXTURE
      The texture of icons used in the stats screen.
      Mappings:
      Namespace Name Mixin selector
      official h Lenr;h:Ladd;
      intermediary field_22736 Lnet/minecraft/class_332;field_22736:Lnet/minecraft/class_2960;
      named STATS_ICON_TEXTURE Lnet/minecraft/client/gui/DrawableHelper;STATS_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
    • GUI_ICONS_TEXTURE

      public static final Identifier GUI_ICONS_TEXTURE
      The texture of various icons and widgets used for rendering ingame indicators.
      Mappings:
      Namespace Name Mixin selector
      official i Lenr;i:Ladd;
      intermediary field_22737 Lnet/minecraft/class_332;field_22737:Lnet/minecraft/class_2960;
      named GUI_ICONS_TEXTURE Lnet/minecraft/client/gui/DrawableHelper;GUI_ICONS_TEXTURE:Lnet/minecraft/util/Identifier;
    • LIGHT_DIRT_BACKGROUND_TEXTURE

      public static final Identifier LIGHT_DIRT_BACKGROUND_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official j Lenr;j:Ladd;
      intermediary field_43045 Lnet/minecraft/class_332;field_43045:Lnet/minecraft/class_2960;
      named LIGHT_DIRT_BACKGROUND_TEXTURE Lnet/minecraft/client/gui/DrawableHelper;LIGHT_DIRT_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
    • SCISSOR_STACK

      private static final DrawableHelper.ScissorStack SCISSOR_STACK
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a:Lenr$a;
      intermediary field_43098 Lnet/minecraft/class_332;field_43098:Lnet/minecraft/class_332$class_8214;
      named SCISSOR_STACK Lnet/minecraft/client/gui/DrawableHelper;SCISSOR_STACK:Lnet/minecraft/client/gui/DrawableHelper$ScissorStack;
  • Constructor Details

    • DrawableHelper

      public DrawableHelper()
  • Method Details

    • drawHorizontalLine

      protected static void drawHorizontalLine(MatrixStack matrices, int x1, int x2, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIII)V
      intermediary method_25292 Lnet/minecraft/class_332;method_25292(Lnet/minecraft/class_4587;IIII)V
      named drawHorizontalLine Lnet/minecraft/client/gui/DrawableHelper;drawHorizontalLine(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
    • drawVerticalLine

      protected static void drawVerticalLine(MatrixStack matrices, int x, int y1, int y2, int color)
      Mappings:
      Namespace Name Mixin selector
      official b Lenr;b(Lehe;IIII)V
      intermediary method_25301 Lnet/minecraft/class_332;method_25301(Lnet/minecraft/class_4587;IIII)V
      named drawVerticalLine Lnet/minecraft/client/gui/DrawableHelper;drawVerticalLine(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
    • enableScissor

      public static void enableScissor(int x1, int y1, int x2, int y2)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(IIII)V
      intermediary method_44379 Lnet/minecraft/class_332;method_44379(IIII)V
      named enableScissor Lnet/minecraft/client/gui/DrawableHelper;enableScissor(IIII)V
    • disableScissor

      public static void disableScissor()
      Mappings:
      Namespace Name Mixin selector
      official l Lenr;l()V
      intermediary method_44380 Lnet/minecraft/class_332;method_44380()V
      named disableScissor Lnet/minecraft/client/gui/DrawableHelper;disableScissor()V
    • setScissor

      private static void setScissor(@Nullable @Nullable ScreenRect rect)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lern;)V
      intermediary method_49698 Lnet/minecraft/class_332;method_49698(Lnet/minecraft/class_8030;)V
      named setScissor Lnet/minecraft/client/gui/DrawableHelper;setScissor(Lnet/minecraft/client/gui/ScreenRect;)V
    • fill

      public static void fill(MatrixStack matrices, int x1, int y1, int x2, int y2, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIII)V
      intermediary method_25294 Lnet/minecraft/class_332;method_25294(Lnet/minecraft/class_4587;IIIII)V
      named fill Lnet/minecraft/client/gui/DrawableHelper;fill(Lnet/minecraft/client/util/math/MatrixStack;IIIII)V
    • fill

      public static void fill(MatrixStack matrices, int x1, int y1, int x2, int y2, int z, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIII)V
      intermediary method_48196 Lnet/minecraft/class_332;method_48196(Lnet/minecraft/class_4587;IIIIII)V
      named fill Lnet/minecraft/client/gui/DrawableHelper;fill(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V
    • fillGradient

      protected static void fillGradient(MatrixStack matrices, int startX, int startY, int endX, int endY, int colorStart, int colorEnd)
      Mappings:
      Namespace Name Mixin selector
      official b Lenr;b(Lehe;IIIIII)V
      intermediary method_25296 Lnet/minecraft/class_332;method_25296(Lnet/minecraft/class_4587;IIIIII)V
      named fillGradient Lnet/minecraft/client/gui/DrawableHelper;fillGradient(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V
    • fillGradient

      protected static void fillGradient(MatrixStack matrices, int startX, int startY, int endX, int endY, int colorStart, int colorEnd, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIIII)V
      intermediary method_33284 Lnet/minecraft/class_332;method_33284(Lnet/minecraft/class_4587;IIIIIII)V
      named fillGradient Lnet/minecraft/client/gui/DrawableHelper;fillGradient(Lnet/minecraft/client/util/math/MatrixStack;IIIIIII)V
    • fillGradient

      protected static void fillGradient(Matrix4f matrix, BufferBuilder builder, int startX, int startY, int endX, int endY, int z, int colorStart, int colorEnd)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lorg/joml/Matrix4f;Legz;IIIIIII)V
      intermediary method_27533 Lnet/minecraft/class_332;method_27533(Lorg/joml/Matrix4f;Lnet/minecraft/class_287;IIIIIII)V
      named fillGradient Lnet/minecraft/client/gui/DrawableHelper;fillGradient(Lorg/joml/Matrix4f;Lnet/minecraft/client/render/BufferBuilder;IIIIIII)V
    • drawCenteredTextWithShadow

      public static void drawCenteredTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, String text, int centerX, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;Lenp;Ljava/lang/String;III)V
      intermediary method_25300 Lnet/minecraft/class_332;method_25300(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Ljava/lang/String;III)V
      named drawCenteredTextWithShadow Lnet/minecraft/client/gui/DrawableHelper;drawCenteredTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V
    • drawCenteredTextWithShadow

      public static void drawCenteredTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, Text text, int centerX, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;Lenp;Ltj;III)V
      intermediary method_27534 Lnet/minecraft/class_332;method_27534(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;III)V
      named drawCenteredTextWithShadow Lnet/minecraft/client/gui/DrawableHelper;drawCenteredTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;III)V
    • drawCenteredTextWithShadow

      public static void drawCenteredTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, OrderedText text, int centerX, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;Lenp;Laov;III)V
      intermediary method_35719 Lnet/minecraft/class_332;method_35719(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_5481;III)V
      named drawCenteredTextWithShadow Lnet/minecraft/client/gui/DrawableHelper;drawCenteredTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/OrderedText;III)V
    • drawTextWithShadow

      public static void drawTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, String text, int x, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official b Lenr;b(Lehe;Lenp;Ljava/lang/String;III)V
      intermediary method_25303 Lnet/minecraft/class_332;method_25303(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Ljava/lang/String;III)V
      named drawTextWithShadow Lnet/minecraft/client/gui/DrawableHelper;drawTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V
    • drawTextWithShadow

      public static void drawTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, OrderedText text, int x, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official b Lenr;b(Lehe;Lenp;Laov;III)V
      intermediary method_35720 Lnet/minecraft/class_332;method_35720(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_5481;III)V
      named drawTextWithShadow Lnet/minecraft/client/gui/DrawableHelper;drawTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/OrderedText;III)V
    • drawTextWithShadow

      public static void drawTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, Text text, int x, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      official b Lenr;b(Lehe;Lenp;Ltj;III)V
      intermediary method_27535 Lnet/minecraft/class_332;method_27535(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;III)V
      named drawTextWithShadow Lnet/minecraft/client/gui/DrawableHelper;drawTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;III)V
    • drawWithOutline

      public static void drawWithOutline(int x, int y, BiConsumer<Integer,Integer> renderAction)
      Parameters:
      renderAction - the action to render both the content and the outline, taking x and y positions as input
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(IILjava/util/function/BiConsumer;)V
      intermediary method_29343 Lnet/minecraft/class_332;method_29343(IILjava/util/function/BiConsumer;)V
      named drawWithOutline Lnet/minecraft/client/gui/DrawableHelper;drawWithOutline(IILjava/util/function/BiConsumer;)V
    • drawSprite

      public static void drawSprite(MatrixStack matrices, int x, int y, int z, int width, int height, Sprite sprite)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIILftc;)V
      intermediary method_25298 Lnet/minecraft/class_332;method_25298(Lnet/minecraft/class_4587;IIIIILnet/minecraft/class_1058;)V
      named drawSprite Lnet/minecraft/client/gui/DrawableHelper;drawSprite(Lnet/minecraft/client/util/math/MatrixStack;IIIIILnet/minecraft/client/texture/Sprite;)V
    • drawSprite

      public static void drawSprite(MatrixStack matrices, int x, int y, int z, int width, int height, Sprite sprite, float red, float green, float blue, float alpha)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIILftc;FFFF)V
      intermediary method_48465 Lnet/minecraft/class_332;method_48465(Lnet/minecraft/class_4587;IIIIILnet/minecraft/class_1058;FFFF)V
      named drawSprite Lnet/minecraft/client/gui/DrawableHelper;drawSprite(Lnet/minecraft/client/util/math/MatrixStack;IIIIILnet/minecraft/client/texture/Sprite;FFFF)V
    • drawBorder

      public static void drawBorder(MatrixStack matrices, int x, int y, int width, int height, int color)
      Mappings:
      Namespace Name Mixin selector
      official b Lenr;b(Lehe;IIIII)V
      intermediary method_49601 Lnet/minecraft/class_332;method_49601(Lnet/minecraft/class_4587;IIIII)V
      named drawBorder Lnet/minecraft/client/gui/DrawableHelper;drawBorder(Lnet/minecraft/client/util/math/MatrixStack;IIIII)V
    • drawTexture

      public static void drawTexture(MatrixStack matrices, int x, int y, int u, int v, int width, int height)
      Draws a textured rectangle from a region in a 256x256 texture.

      The Z coordinate of the rectangle is 0.

      The width and height of the region are the same as the dimensions of the rectangle.

      Mappings:
      Namespace Name Mixin selector
      official c Lenr;c(Lehe;IIIIII)V
      intermediary method_25302 Lnet/minecraft/class_332;method_25302(Lnet/minecraft/class_4587;IIIIII)V
      named drawTexture Lnet/minecraft/client/gui/DrawableHelper;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V
    • drawTexture

      public static void drawTexture(MatrixStack matrices, int x, int y, int z, float u, float v, int width, int height, int textureWidth, int textureHeight)
      Draws a textured rectangle from a region in a texture.

      The width and height of the region are the same as the dimensions of the rectangle.

      Parameters:
      matrices - the matrix stack used for rendering
      x - the X coordinate of the rectangle
      y - the Y coordinate of the rectangle
      z - the Z coordinate of the rectangle
      u - the left-most coordinate of the texture region
      v - the top-most coordinate of the texture region
      width - the width of the rectangle
      height - the height of the rectangle
      textureWidth - the width of the entire texture
      textureHeight - the height of the entire texture
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIFFIIII)V
      intermediary method_25291 Lnet/minecraft/class_332;method_25291(Lnet/minecraft/class_4587;IIIFFIIII)V
      named drawTexture Lnet/minecraft/client/gui/DrawableHelper;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIFFIIII)V
    • drawTexture

      public static void drawTexture(MatrixStack matrices, int x, int y, int width, int height, float u, float v, int regionWidth, int regionHeight, int textureWidth, int textureHeight)
      Draws a textured rectangle from a region in a texture.
      Parameters:
      matrices - the matrix stack used for rendering
      x - the X coordinate of the rectangle
      y - the Y coordinate of the rectangle
      width - the width of the rectangle
      height - the height of the rectangle
      u - the left-most coordinate of the texture region
      v - the top-most coordinate of the texture region
      regionWidth - the width of the texture region
      regionHeight - the height of the texture region
      textureWidth - the width of the entire texture
      textureHeight - the height of the entire texture
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIFFIIII)V
      intermediary method_25293 Lnet/minecraft/class_332;method_25293(Lnet/minecraft/class_4587;IIIIFFIIII)V
      named drawTexture Lnet/minecraft/client/gui/DrawableHelper;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIFFIIII)V
    • drawTexture

      public static void drawTexture(MatrixStack matrices, int x, int y, float u, float v, int width, int height, int textureWidth, int textureHeight)
      Draws a textured rectangle from a region in a texture.

      The width and height of the region are the same as the dimensions of the rectangle.

      Parameters:
      matrices - the matrix stack used for rendering
      x - the X coordinate of the rectangle
      y - the Y coordinate of the rectangle
      u - the left-most coordinate of the texture region
      v - the top-most coordinate of the texture region
      width - the width of the rectangle
      height - the height of the rectangle
      textureWidth - the width of the entire texture
      textureHeight - the height of the entire texture
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIFFIIII)V
      intermediary method_25290 Lnet/minecraft/class_332;method_25290(Lnet/minecraft/class_4587;IIFFIIII)V
      named drawTexture Lnet/minecraft/client/gui/DrawableHelper;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIFFIIII)V
    • drawTexture

      private static void drawTexture(MatrixStack matrices, int x0, int x1, int y0, int y1, int z, int regionWidth, int regionHeight, float u, float v, int textureWidth, int textureHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIIIIFFII)V
      intermediary method_25297 Lnet/minecraft/class_332;method_25297(Lnet/minecraft/class_4587;IIIIIIIFFII)V
      named drawTexture Lnet/minecraft/client/gui/DrawableHelper;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIFFII)V
    • drawTexturedQuad

      private static void drawTexturedQuad(Matrix4f matrix, int x0, int x1, int y0, int y1, int z, float u0, float u1, float v0, float v1)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lorg/joml/Matrix4f;IIIIIFFFF)V
      intermediary method_25295 Lnet/minecraft/class_332;method_25295(Lorg/joml/Matrix4f;IIIIIFFFF)V
      named drawTexturedQuad Lnet/minecraft/client/gui/DrawableHelper;drawTexturedQuad(Lorg/joml/Matrix4f;IIIIIFFFF)V
    • drawTexturedQuad

      private static void drawTexturedQuad(Matrix4f matrix, int x0, int x1, int y0, int y1, int z, float u0, float u1, float v0, float v1, float red, float green, float blue, float alpha)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lorg/joml/Matrix4f;IIIIIFFFFFFFF)V
      intermediary method_48466 Lnet/minecraft/class_332;method_48466(Lorg/joml/Matrix4f;IIIIIFFFFFFFF)V
      named drawTexturedQuad Lnet/minecraft/client/gui/DrawableHelper;drawTexturedQuad(Lorg/joml/Matrix4f;IIIIIFFFFFFFF)V
    • drawNineSlicedTexture

      public static void drawNineSlicedTexture(MatrixStack matrices, int x, int y, int width, int height, int outerSliceSize, int centerSliceWidth, int centerSliceHeight, int u, int v)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIIIIII)V
      intermediary method_48586 Lnet/minecraft/class_332;method_48586(Lnet/minecraft/class_4587;IIIIIIIII)V
      named drawNineSlicedTexture Lnet/minecraft/client/gui/DrawableHelper;drawNineSlicedTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIII)V
    • drawNineSlicedTexture

      public static void drawNineSlicedTexture(MatrixStack matrices, int x, int y, int width, int height, int sideSliceWidth, int sideSliceHeight, int centerSliceWidth, int centerSliceHeight, int u, int v)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIIIIIII)V
      intermediary method_49697 Lnet/minecraft/class_332;method_49697(Lnet/minecraft/class_4587;IIIIIIIIII)V
      named drawNineSlicedTexture Lnet/minecraft/client/gui/DrawableHelper;drawNineSlicedTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIIII)V
    • drawNineSlicedTexture

      public static void drawNineSlicedTexture(MatrixStack matrices, int x, int y, int width, int height, int leftSliceWidth, int topSliceHeight, int rightSliceWidth, int bottomSliceHeight, int centerSliceWidth, int centerSliceHeight, int u, int v)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIIIIIIIII)V
      intermediary method_48587 Lnet/minecraft/class_332;method_48587(Lnet/minecraft/class_4587;IIIIIIIIIIII)V
      named drawNineSlicedTexture Lnet/minecraft/client/gui/DrawableHelper;drawNineSlicedTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIIIIII)V
    • drawRepeatingTexture

      public static void drawRepeatingTexture(MatrixStack matrices, int x, int y, int width, int height, int u, int v, int textureWidth, int textureHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(Lehe;IIIIIIII)V
      intermediary method_48585 Lnet/minecraft/class_332;method_48585(Lnet/minecraft/class_4587;IIIIIIII)V
      named drawRepeatingTexture Lnet/minecraft/client/gui/DrawableHelper;drawRepeatingTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIII)V
    • createDivider

      private static IntIterator createDivider(int sideLength, int textureSideLength)
      Mappings:
      Namespace Name Mixin selector
      official a Lenr;a(II)Lit/unimi/dsi/fastutil/ints/IntIterator;
      intermediary method_49696 Lnet/minecraft/class_332;method_49696(II)Lit/unimi/dsi/fastutil/ints/IntIterator;
      named createDivider Lnet/minecraft/client/gui/DrawableHelper;createDivider(II)Lit/unimi/dsi/fastutil/ints/IntIterator;