-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
135 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
v2 | ||
|
||
constant argb_color net/minecraft/util/Colors WHITE | ||
constant argb_color net/minecraft/util/Colors BLACK | ||
constant argb_color net/minecraft/util/Colors GRAY | ||
constant argb_color net/minecraft/util/Colors LIGHT_GRAY | ||
constant argb_color net/minecraft/util/Colors RED | ||
constant argb_color net/minecraft/util/Colors LIGHT_RED | ||
constant argb_color net/minecraft/util/Colors YELLOW | ||
constant argb_color net/minecraft/util/Colors LIGHT_YELLOW | ||
|
||
target_method net/minecraft/util/math/ColorHelper$Argb getAlpha (I)I | ||
param 0 argb_color | ||
target_method net/minecraft/util/math/ColorHelper$Argb getRed (I)I | ||
param 0 argb_color | ||
target_method net/minecraft/util/math/ColorHelper$Argb getGreen (I)I | ||
param 0 argb_color | ||
target_method net/minecraft/util/math/ColorHelper$Argb getBlue (I)I | ||
param 0 argb_color | ||
|
||
# These accept ARGB (TextRenderer) | ||
|
||
target_method net/minecraft/client/font/TextRenderer draw (Ljava/lang/String;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/font/TextRenderer$TextLayerType;II)I | ||
param 3 argb_color | ||
target_method net/minecraft/client/font/TextRenderer draw (Ljava/lang/String;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/font/TextRenderer$TextLayerType;IIZ)I | ||
param 3 argb_color | ||
target_method net/minecraft/client/font/TextRenderer draw (Lnet/minecraft/text/Text;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/font/TextRenderer$TextLayerType;II)I | ||
param 3 argb_color | ||
target_method net/minecraft/client/font/TextRenderer draw (Lnet/minecraft/text/OrderedText;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/font/TextRenderer$TextLayerType;II)I | ||
param 3 argb_color | ||
target_method net/minecraft/client/font/TextRenderer drawWithOutline (Lnet/minecraft/text/OrderedText;FFIILorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;I)V | ||
param 3 argb_color | ||
param 4 argb_color | ||
|
||
target_method net/minecraft/client/render/debug/DebugRenderer drawString (Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Ljava/lang/String;IIII)V | ||
param 6 argb_color | ||
target_method net/minecraft/client/render/debug/DebugRenderer drawString (Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Ljava/lang/String;DDDI)V | ||
param 6 argb_color | ||
target_method net/minecraft/client/render/debug/DebugRenderer drawString (Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Ljava/lang/String;DDDIF)V | ||
param 6 argb_color | ||
target_method net/minecraft/client/render/debug/DebugRenderer drawString (Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Ljava/lang/String;DDDIFZFZ)V | ||
param 6 argb_color | ||
|
||
target_method net/minecraft/client/gui/DrawContext drawCenteredTextWithShadow (Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)V | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawCenteredTextWithShadow (Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;III)V | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawCenteredTextWithShadow (Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/OrderedText;III)V | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawTextWithShadow (Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;III)I | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawText (Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;IIIZ)I | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawTextWithShadow (Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;III)I | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawText (Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;IIIZ)I | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawTextWrapped (Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/StringVisitable;IIII)V | ||
param 5 argb_color | ||
|
||
target_method net/minecraft/client/gui/widget/AbstractTextWidget setTextColor (I)Lnet/minecraft/client/gui/widget/AbstractTextWidget; | ||
param 0 argb_color | ||
|
||
# Accepts ARGB (non-TextRenderer) | ||
target_method net/minecraft/client/gui/DrawContext drawHorizontalLine (IIII)V | ||
param 3 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawHorizontalLine (Lnet/minecraft/client/render/RenderLayer;IIII)V | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawVerticalLine (IIII)V | ||
param 3 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawVerticalLine (Lnet/minecraft/client/render/RenderLayer;IIII)V | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fill (IIIII)V | ||
param 4 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fill (IIIIII)V | ||
param 5 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fill (Lnet/minecraft/client/render/RenderLayer;IIIII)V | ||
param 5 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fill (Lnet/minecraft/client/render/RenderLayer;IIIIII)V | ||
param 6 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fillGradient (IIIIII)V | ||
param 4 argb_color | ||
param 5 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fillGradient (IIIIIII)V | ||
param 5 argb_color | ||
param 6 argb_color | ||
target_method net/minecraft/client/gui/DrawContext fillGradient (Lnet/minecraft/client/render/RenderLayer;IIIIIII)V | ||
param 5 argb_color | ||
param 6 argb_color | ||
target_method net/minecraft/client/gui/DrawContext drawBorder (IIIII)V | ||
param 4 argb_color | ||
|
||
target_method net/minecraft/client/render/VertexConsumer color (I)Lnet/minecraft/client/render/VertexConsumer; | ||
param 0 argb_color | ||
|
||
# These technically accept RGB colors, not ARGB; | ||
# however, it ignores the alpha part, so there is no problem passing ARGB. | ||
|
||
target_method net/minecraft/text/TextColor fromRgb (I)Lnet/minecraft/text/TextColor; | ||
param 0 argb_color | ||
target_method net/minecraft/text/Style withColor (I)Lnet/minecraft/text/Style; | ||
param 0 argb_color | ||
target_method net/minecraft/text/MutableText withColor (I)Lnet/minecraft/text/MutableText; | ||
param 0 argb_color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters