Package net.minecraft.client.gui
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
- Mappings:
Namespace Name official enpintermediary net/minecraft/class_332named net/minecraft/client/gui/DrawableHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Identifierstatic final IdentifierThe texture of various icons and widgets used for rendering ingame indicators.static final IdentifierThe texture used by options for background.static final IdentifierThe texture of icons used in the stats screen. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddrawCenteredTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, String text, int centerX, int y, int color) static voiddrawCenteredTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, OrderedText text, int centerX, int y, int color) static voiddrawCenteredTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, Text text, int centerX, int y, int color) protected static voiddrawHorizontalLine(MatrixStack matrixStack, int int2, int int3, int int4, int int5) static voiddrawNineSlicedTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10) static voiddrawNineSlicedTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10, int int11, int int12, int int13) static voiddrawRepeatingTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9) static voiddrawSprite(MatrixStack matrices, int x, int y, int z, int width, int height, Sprite sprite) static voiddrawSprite(MatrixStack matrices, int x, int y, int z, int width, int height, Sprite sprite, float red, float green, float blue, float alpha) static voiddrawTexture(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.static voiddrawTexture(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.static voiddrawTexture(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.static voiddrawTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7) Draws a textured rectangle from a region in a 256x256 texture.private static voiddrawTexture(MatrixStack matrices, int x0, int x1, int y0, int y1, int z, int regionWidth, int regionHeight, float u, float v, int textureWidth, int textureHeight) private static voiddrawTexturedQuad(Matrix4f matrix, int int2, int int3, int int4, int int5, int z, float float2, float float3, float float4, float float5) private static voiddrawTexturedQuad(Matrix4f matrix, int int2, int int3, int int4, int int5, int z, float float2, float float3, float float4, float float5, float red, float green, float blue, float alpha) static voiddrawTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, String text, int x, int y, int color) static voiddrawTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, OrderedText text, int x, int y, int color) static voiddrawTextWithShadow(MatrixStack matrices, TextRenderer textRenderer, Text text, int x, int y, int color) protected static voiddrawVerticalLine(MatrixStack matrixStack, int int2, int int3, int int4, int int5) static voiddrawWithOutline(int int2, int int3, BiConsumer<Integer, Integer> biConsumer) static voidenableScissor(int x1, int y1, int x2, int y2) static voidfill(MatrixStack matrices, int x1, int y1, int x2, int y2, int color) static voidfill(MatrixStack matrices, int x1, int y1, int x2, int y2, int z, int color) protected static voidfillGradient(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7) protected static voidfillGradient(MatrixStack matrices, int startX, int startY, int endX, int endY, int colorStart, int colorEnd, int z) protected static voidfillGradient(Matrix4f matrix, BufferBuilder builder, int int2, int int3, int int4, int int5, int z, int colorStart, int colorEnd) static voidmethod_49601(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6)
-
Field Details
-
OPTIONS_BACKGROUND_TEXTURE
The texture used by options for background.- Mappings:
Namespace Name Mixin selector official gLenp;g:Ladc;intermediary field_22735Lnet/minecraft/class_332;field_22735:Lnet/minecraft/class_2960;named OPTIONS_BACKGROUND_TEXTURELnet/minecraft/client/gui/DrawableHelper;OPTIONS_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
STATS_ICON_TEXTURE
The texture of icons used in the stats screen.- Mappings:
Namespace Name Mixin selector official hLenp;h:Ladc;intermediary field_22736Lnet/minecraft/class_332;field_22736:Lnet/minecraft/class_2960;named STATS_ICON_TEXTURELnet/minecraft/client/gui/DrawableHelper;STATS_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
GUI_ICONS_TEXTURE
The texture of various icons and widgets used for rendering ingame indicators.- Mappings:
Namespace Name Mixin selector official iLenp;i:Ladc;intermediary field_22737Lnet/minecraft/class_332;field_22737:Lnet/minecraft/class_2960;named GUI_ICONS_TEXTURELnet/minecraft/client/gui/DrawableHelper;GUI_ICONS_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_43045
- Mappings:
Namespace Name Mixin selector official jLenp;j:Ladc;intermediary field_43045Lnet/minecraft/class_332;field_43045:Lnet/minecraft/class_2960;named field_43045Lnet/minecraft/client/gui/DrawableHelper;field_43045:Lnet/minecraft/util/Identifier;
-
-
Constructor Details
-
DrawableHelper
public DrawableHelper()
-
-
Method Details
-
drawHorizontalLine
protected static void drawHorizontalLine(MatrixStack matrixStack, int int2, int int3, int int4, int int5) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIII)Vintermediary method_25292Lnet/minecraft/class_332;method_25292(Lnet/minecraft/class_4587;IIII)Vnamed drawHorizontalLineLnet/minecraft/client/gui/DrawableHelper;drawHorizontalLine(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
drawVerticalLine
protected static void drawVerticalLine(MatrixStack matrixStack, int int2, int int3, int int4, int int5) - Mappings:
Namespace Name Mixin selector official bLenp;b(Lehc;IIII)Vintermediary method_25301Lnet/minecraft/class_332;method_25301(Lnet/minecraft/class_4587;IIII)Vnamed drawVerticalLineLnet/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 aLenp;a(IIII)Vintermediary method_44379Lnet/minecraft/class_332;method_44379(IIII)Vnamed enableScissorLnet/minecraft/client/gui/DrawableHelper;enableScissor(IIII)V
-
disableScissor
public static void disableScissor()- Mappings:
Namespace Name Mixin selector official lLenp;l()Vintermediary method_44380Lnet/minecraft/class_332;method_44380()Vnamed disableScissorLnet/minecraft/client/gui/DrawableHelper;disableScissor()V
-
fill
- Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIII)Vintermediary method_25294Lnet/minecraft/class_332;method_25294(Lnet/minecraft/class_4587;IIIII)Vnamed fillLnet/minecraft/client/gui/DrawableHelper;fill(Lnet/minecraft/client/util/math/MatrixStack;IIIII)V
-
fill
- Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIIII)Vintermediary method_48196Lnet/minecraft/class_332;method_48196(Lnet/minecraft/class_4587;IIIIII)Vnamed fillLnet/minecraft/client/gui/DrawableHelper;fill(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V
-
fillGradient
protected static void fillGradient(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7) - Mappings:
Namespace Name Mixin selector official bLenp;b(Lehc;IIIIII)Vintermediary method_25296Lnet/minecraft/class_332;method_25296(Lnet/minecraft/class_4587;IIIIII)Vnamed fillGradientLnet/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 aLenp;a(Lehc;IIIIIII)Vintermediary method_33284Lnet/minecraft/class_332;method_33284(Lnet/minecraft/class_4587;IIIIIII)Vnamed fillGradientLnet/minecraft/client/gui/DrawableHelper;fillGradient(Lnet/minecraft/client/util/math/MatrixStack;IIIIIII)V
-
fillGradient
protected static void fillGradient(Matrix4f matrix, BufferBuilder builder, int int2, int int3, int int4, int int5, int z, int colorStart, int colorEnd) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lorg/joml/Matrix4f;Legx;IIIIIII)Vintermediary method_27533Lnet/minecraft/class_332;method_27533(Lorg/joml/Matrix4f;Lnet/minecraft/class_287;IIIIIII)Vnamed fillGradientLnet/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 aLenp;a(Lehc;Lenn;Ljava/lang/String;III)Vintermediary method_25300Lnet/minecraft/class_332;method_25300(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Ljava/lang/String;III)Vnamed drawCenteredTextWithShadowLnet/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 aLenp;a(Lehc;Lenn;Lti;III)Vintermediary method_27534Lnet/minecraft/class_332;method_27534(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;III)Vnamed drawCenteredTextWithShadowLnet/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 aLenp;a(Lehc;Lenn;Laot;III)Vintermediary method_35719Lnet/minecraft/class_332;method_35719(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_5481;III)Vnamed drawCenteredTextWithShadowLnet/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 bLenp;b(Lehc;Lenn;Ljava/lang/String;III)Vintermediary method_25303Lnet/minecraft/class_332;method_25303(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Ljava/lang/String;III)Vnamed drawTextWithShadowLnet/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 bLenp;b(Lehc;Lenn;Laot;III)Vintermediary method_35720Lnet/minecraft/class_332;method_35720(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_5481;III)Vnamed drawTextWithShadowLnet/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 bLenp;b(Lehc;Lenn;Lti;III)Vintermediary method_27535Lnet/minecraft/class_332;method_27535(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;III)Vnamed drawTextWithShadowLnet/minecraft/client/gui/DrawableHelper;drawTextWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;III)V
-
drawWithOutline
- Mappings:
Namespace Name Mixin selector official aLenp;a(IILjava/util/function/BiConsumer;)Vintermediary method_29343Lnet/minecraft/class_332;method_29343(IILjava/util/function/BiConsumer;)Vnamed drawWithOutlineLnet/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 aLenp;a(Lehc;IIIIILfsy;)Vintermediary method_25298Lnet/minecraft/class_332;method_25298(Lnet/minecraft/class_4587;IIIIILnet/minecraft/class_1058;)Vnamed drawSpriteLnet/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 aLenp;a(Lehc;IIIIILfsy;FFFF)Vintermediary method_48465Lnet/minecraft/class_332;method_48465(Lnet/minecraft/class_4587;IIIIILnet/minecraft/class_1058;FFFF)Vnamed drawSpriteLnet/minecraft/client/gui/DrawableHelper;drawSprite(Lnet/minecraft/client/util/math/MatrixStack;IIIIILnet/minecraft/client/texture/Sprite;FFFF)V
-
method_49601
public static void method_49601(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6) - Mappings:
Namespace Name Mixin selector official bLenp;b(Lehc;IIIII)Vintermediary method_49601Lnet/minecraft/class_332;method_49601(Lnet/minecraft/class_4587;IIIII)Vnamed method_49601Lnet/minecraft/client/gui/DrawableHelper;method_49601(Lnet/minecraft/client/util/math/MatrixStack;IIIII)V
-
drawTexture
public static void drawTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7) Draws a textured rectangle from a region in a 256x256 texture.The Z coordinate of the rectangle is
.invalid @link
#zOffsetThe width and height of the region are the same as the dimensions of the rectangle.
- Mappings:
Namespace Name Mixin selector official cLenp;c(Lehc;IIIIII)Vintermediary method_25302Lnet/minecraft/class_332;method_25302(Lnet/minecraft/class_4587;IIIIII)Vnamed drawTextureLnet/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 renderingx- the X coordinate of the rectangley- the Y coordinate of the rectanglez- the Z coordinate of the rectangleu- the left-most coordinate of the texture regionv- the top-most coordinate of the texture regionwidth- the width of the rectangleheight- the height of the rectangletextureWidth- the width of the entire texturetextureHeight- the height of the entire texture- Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIFFIIII)Vintermediary method_25291Lnet/minecraft/class_332;method_25291(Lnet/minecraft/class_4587;IIIFFIIII)Vnamed drawTextureLnet/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 renderingx- the X coordinate of the rectangley- the Y coordinate of the rectanglewidth- the width of the rectangleheight- the height of the rectangleu- the left-most coordinate of the texture regionv- the top-most coordinate of the texture regionregionWidth- the width of the texture regionregionHeight- the height of the texture regiontextureWidth- the width of the entire texturetextureHeight- the height of the entire texture- Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIIFFIIII)Vintermediary method_25293Lnet/minecraft/class_332;method_25293(Lnet/minecraft/class_4587;IIIIFFIIII)Vnamed drawTextureLnet/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 renderingx- the X coordinate of the rectangley- the Y coordinate of the rectangleu- the left-most coordinate of the texture regionv- the top-most coordinate of the texture regionwidth- the width of the rectangleheight- the height of the rectangletextureWidth- the width of the entire texturetextureHeight- the height of the entire texture- Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIFFIIII)Vintermediary method_25290Lnet/minecraft/class_332;method_25290(Lnet/minecraft/class_4587;IIFFIIII)Vnamed drawTextureLnet/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 aLenp;a(Lehc;IIIIIIIFFII)Vintermediary method_25297Lnet/minecraft/class_332;method_25297(Lnet/minecraft/class_4587;IIIIIIIFFII)Vnamed drawTextureLnet/minecraft/client/gui/DrawableHelper;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIFFII)V
-
drawTexturedQuad
private static void drawTexturedQuad(Matrix4f matrix, int int2, int int3, int int4, int int5, int z, float float2, float float3, float float4, float float5) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lorg/joml/Matrix4f;IIIIIFFFF)Vintermediary method_25295Lnet/minecraft/class_332;method_25295(Lorg/joml/Matrix4f;IIIIIFFFF)Vnamed drawTexturedQuadLnet/minecraft/client/gui/DrawableHelper;drawTexturedQuad(Lorg/joml/Matrix4f;IIIIIFFFF)V
-
drawTexturedQuad
private static void drawTexturedQuad(Matrix4f matrix, int int2, int int3, int int4, int int5, int z, float float2, float float3, float float4, float float5, float red, float green, float blue, float alpha) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lorg/joml/Matrix4f;IIIIIFFFFFFFF)Vintermediary method_48466Lnet/minecraft/class_332;method_48466(Lorg/joml/Matrix4f;IIIIIFFFFFFFF)Vnamed drawTexturedQuadLnet/minecraft/client/gui/DrawableHelper;drawTexturedQuad(Lorg/joml/Matrix4f;IIIIIFFFFFFFF)V
-
drawNineSlicedTexture
public static void drawNineSlicedTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIIIIIII)Vintermediary method_48586Lnet/minecraft/class_332;method_48586(Lnet/minecraft/class_4587;IIIIIIIII)Vnamed drawNineSlicedTextureLnet/minecraft/client/gui/DrawableHelper;drawNineSlicedTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIII)V
-
drawNineSlicedTexture
public static void drawNineSlicedTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10, int int11, int int12, int int13) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIIIIIIIIII)Vintermediary method_48587Lnet/minecraft/class_332;method_48587(Lnet/minecraft/class_4587;IIIIIIIIIIII)Vnamed drawNineSlicedTextureLnet/minecraft/client/gui/DrawableHelper;drawNineSlicedTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIIIIII)V
-
drawRepeatingTexture
public static void drawRepeatingTexture(MatrixStack matrixStack, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9) - Mappings:
Namespace Name Mixin selector official aLenp;a(Lehc;IIIIIIII)Vintermediary method_48585Lnet/minecraft/class_332;method_48585(Lnet/minecraft/class_4587;IIIIIIII)Vnamed drawRepeatingTextureLnet/minecraft/client/gui/DrawableHelper;drawRepeatingTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIII)V
-