Package net.minecraft.client.gui
Class DrawableHelper
java.lang.Object
net.minecraft.client.gui.DrawableHelper
- Direct Known Subclasses:
AchievementNotification,ButtonWidget,ChatHud,DebugMenuHud,InGameHud,LabelWidget,PlayerListHud,Screen,SpectatorHud,TextFieldWidget
@Environment(CLIENT) public class DrawableHelper extends Object
- Mappings:
Namespace Name official avpintermediary net/minecraft/class_681named net/minecraft/client/gui/DrawableHelper
-
Field Summary
Fields Modifier and Type Field Description static IdentifierBACKGROUND_TEXTUREThe texture used by options for background.static IdentifierGUI_ICONS_TEXTUREThe texture of various icons and widgets used for rendering ingame indicators.static IdentifierSTATS_ICON_TEXTUREThe texture of icons used in the stats screen.protected floatzOffset -
Constructor Summary
Constructors Constructor Description DrawableHelper() -
Method Summary
Modifier and Type Method Description voiddrawCenteredString(TextRenderer textRenderer, String text, int centerX, int y, int color)protected voiddrawHorizontalLine(int x1, int x2, int y, int color)voiddrawSprite(int x, int y, Sprite sprite, int width, int height)voiddrawTexture(float x, float y, int u, int v, int width, int height)static voiddrawTexture(int x, int y, float u, float v, int width, int height, float float2, float float3)static voiddrawTexture(int x, int y, float u, float v, int int2, int int3, int width, int height, float float2, float float3)voiddrawTexture(int x, int y, int u, int v, int width, int height)protected voiddrawVerticalLine(int x, int y1, int y2, int color)voiddrawWithShadow(TextRenderer textRenderer, String text, int x, int y, int color)static voidfill(int x1, int y1, int x2, int y2, int color)protected voidfillGradient(int x1, int y1, int x2, int y2, int color1, int color2)
-
Field Details
-
BACKGROUND_TEXTURE
The texture used by options for background.- Mappings:
Namespace Name Mixin selector official bLavp;b:Ljy;intermediary field_2866Lnet/minecraft/class_681;field_2866:Lnet/minecraft/class_1605;named BACKGROUND_TEXTURELnet/minecraft/client/gui/DrawableHelper;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
STATS_ICON_TEXTURE
The texture of icons used in the stats screen.- Mappings:
Namespace Name Mixin selector official cLavp;c:Ljy;intermediary field_2867Lnet/minecraft/class_681;field_2867:Lnet/minecraft/class_1605;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 dLavp;d:Ljy;intermediary field_2868Lnet/minecraft/class_681;field_2868:Lnet/minecraft/class_1605;named GUI_ICONS_TEXTURELnet/minecraft/client/gui/DrawableHelper;GUI_ICONS_TEXTURE:Lnet/minecraft/util/Identifier;
-
zOffset
protected float zOffset- Mappings:
Namespace Name Mixin selector official eLavp;e:Fintermediary field_2869Lnet/minecraft/class_681;field_2869:Fnamed zOffsetLnet/minecraft/client/gui/DrawableHelper;zOffset:F
-
-
Constructor Details
-
DrawableHelper
public DrawableHelper()
-
-
Method Details
-
drawHorizontalLine
protected void drawHorizontalLine(int x1, int x2, int y, int color)- Mappings:
Namespace Name Mixin selector official aLavp;a(IIII)Vintermediary method_2446Lnet/minecraft/class_681;method_2446(IIII)Vnamed drawHorizontalLineLnet/minecraft/client/gui/DrawableHelper;drawHorizontalLine(IIII)V
-
drawVerticalLine
protected void drawVerticalLine(int x, int y1, int y2, int color)- Mappings:
Namespace Name Mixin selector official bLavp;b(IIII)Vintermediary method_2451Lnet/minecraft/class_681;method_2451(IIII)Vnamed drawVerticalLineLnet/minecraft/client/gui/DrawableHelper;drawVerticalLine(IIII)V
-
fill
public static void fill(int x1, int y1, int x2, int y2, int color)- Mappings:
Namespace Name Mixin selector official aLavp;a(IIIII)Vintermediary method_2447Lnet/minecraft/class_681;method_2447(IIIII)Vnamed fillLnet/minecraft/client/gui/DrawableHelper;fill(IIIII)V
-
fillGradient
protected void fillGradient(int x1, int y1, int x2, int y2, int color1, int color2)- Mappings:
Namespace Name Mixin selector official aLavp;a(IIIIII)Vintermediary method_2448Lnet/minecraft/class_681;method_2448(IIIIII)Vnamed fillGradientLnet/minecraft/client/gui/DrawableHelper;fillGradient(IIIIII)V
-
drawCenteredString
public void drawCenteredString(TextRenderer textRenderer, String text, int centerX, int y, int color)- Mappings:
Namespace Name Mixin selector official aLavp;a(Lavn;Ljava/lang/String;III)Vintermediary method_2450Lnet/minecraft/class_681;method_2450(Lnet/minecraft/class_679;Ljava/lang/String;III)Vnamed drawCenteredStringLnet/minecraft/client/gui/DrawableHelper;drawCenteredString(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V
-
drawWithShadow
- Mappings:
Namespace Name Mixin selector official cLavp;c(Lavn;Ljava/lang/String;III)Vintermediary method_2453Lnet/minecraft/class_681;method_2453(Lnet/minecraft/class_679;Ljava/lang/String;III)Vnamed drawWithShadowLnet/minecraft/client/gui/DrawableHelper;drawWithShadow(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 official bLavp;b(IIIIII)Vintermediary method_2452Lnet/minecraft/class_681;method_2452(IIIIII)Vnamed drawTextureLnet/minecraft/client/gui/DrawableHelper;drawTexture(IIIIII)V
-
drawTexture
public void drawTexture(float x, float y, int u, int v, int width, int height)- Mappings:
Namespace Name Mixin selector official aLavp;a(FFIIII)Vintermediary method_2443Lnet/minecraft/class_681;method_2443(FFIIII)Vnamed drawTextureLnet/minecraft/client/gui/DrawableHelper;drawTexture(FFIIII)V
-
drawSprite
- Mappings:
Namespace Name Mixin selector official aLavp;a(IILbmi;II)Vintermediary method_2449Lnet/minecraft/class_681;method_2449(IILnet/minecraft/class_1231;II)Vnamed drawSpriteLnet/minecraft/client/gui/DrawableHelper;drawSprite(IILnet/minecraft/client/texture/Sprite;II)V
-
drawTexture
public static void drawTexture(int x, int y, float u, float v, int width, int height, float float2, float float3)- Mappings:
Namespace Name Mixin selector official aLavp;a(IIFFIIFF)Vintermediary method_2444Lnet/minecraft/class_681;method_2444(IIFFIIFF)Vnamed drawTextureLnet/minecraft/client/gui/DrawableHelper;drawTexture(IIFFIIFF)V
-
drawTexture
public static void drawTexture(int x, int y, float u, float v, int int2, int int3, int width, int height, float float2, float float3)- Mappings:
Namespace Name Mixin selector official aLavp;a(IIFFIIIIFF)Vintermediary method_2445Lnet/minecraft/class_681;method_2445(IIFFIIIIFF)Vnamed drawTextureLnet/minecraft/client/gui/DrawableHelper;drawTexture(IIFFIIIIFF)V
-