From bf7c6d3a2bcbd337f69c9d55d0c0bc2ac6584bc6 Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:29:02 -0400 Subject: [PATCH 1/3] Update drawSprite methods to match scaling --- mappings/net/minecraft/client/gui/DrawContext.mapping | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mappings/net/minecraft/client/gui/DrawContext.mapping b/mappings/net/minecraft/client/gui/DrawContext.mapping index c55276150a..695730b39e 100644 --- a/mappings/net/minecraft/client/gui/DrawContext.mapping +++ b/mappings/net/minecraft/client/gui/DrawContext.mapping @@ -377,14 +377,14 @@ CLASS net/minecraft/class_332 net/minecraft/client/gui/DrawContext ARG 8 y ARG 9 width ARG 10 height - METHOD method_52709 drawSprite (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIII)V + METHOD method_52709 drawSpriteStretched (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIII)V ARG 1 renderLayers ARG 2 sprite ARG 3 x ARG 4 y ARG 5 width ARG 6 height - METHOD method_52710 drawSprite (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIIII)V + METHOD method_52710 drawSpriteStretched (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIIII)V ARG 1 renderLayers ARG 2 sprite ARG 3 x @@ -418,7 +418,7 @@ CLASS net/minecraft/class_332 net/minecraft/client/gui/DrawContext ARG 11 textureWidth ARG 12 textureHeight ARG 13 color - METHOD method_52713 drawSprite (Ljava/util/function/Function;Lnet/minecraft/class_1058;Lnet/minecraft/class_8690$class_8691;IIIII)V + METHOD method_52713 drawSpriteNineSliced (Ljava/util/function/Function;Lnet/minecraft/class_1058;Lnet/minecraft/class_8690$class_8691;IIIII)V ARG 1 renderLayers ARG 2 sprite ARG 3 nineSlice From eae83d64c1f819ea5c3bad7e4f26824dca2d9487 Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:43:16 -0400 Subject: [PATCH 2/3] Update draw sprite region --- .../net/minecraft/client/gui/DrawContext.mapping | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mappings/net/minecraft/client/gui/DrawContext.mapping b/mappings/net/minecraft/client/gui/DrawContext.mapping index 695730b39e..1f1380da7e 100644 --- a/mappings/net/minecraft/client/gui/DrawContext.mapping +++ b/mappings/net/minecraft/client/gui/DrawContext.mapping @@ -367,6 +367,17 @@ CLASS net/minecraft/class_332 net/minecraft/client/gui/DrawContext ARG 6 height ARG 7 color METHOD method_52708 drawGuiTexture (Ljava/util/function/Function;Lnet/minecraft/class_2960;IIIIIIII)V + COMMENT Draws a textured rectangle from a region in a gui texture. + COMMENT + COMMENT

The width and height of the region are the same as + COMMENT the dimensions of the rectangle. + COMMENT + COMMENT @param textureWidth the width of the entire texture + COMMENT @param textureHeight the height of the entire texture + COMMENT @param u the x starting position of the region in the texture + COMMENT @param v the y starting position of the region in the texture + COMMENT @param width the width of the drawn rectangle and of the region in the texture + COMMENT @param height the height of the drawn rectangle and of the region in the texture ARG 1 renderLayers ARG 2 sprite ARG 3 textureWidth @@ -392,7 +403,7 @@ CLASS net/minecraft/class_332 net/minecraft/client/gui/DrawContext ARG 5 width ARG 6 height ARG 7 color - METHOD method_52711 drawSprite (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIIIIIIII)V + METHOD method_52711 drawSpriteRegion (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIIIIIIII)V ARG 1 renderLayers ARG 2 sprite ARG 3 textureWidth From d5c7ff46141047e5c33677a45362fae8244a5463 Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:53:04 -0400 Subject: [PATCH 3/3] Fix lint --- .../net/minecraft/client/gui/DrawContext.mapping | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mappings/net/minecraft/client/gui/DrawContext.mapping b/mappings/net/minecraft/client/gui/DrawContext.mapping index 1f1380da7e..fb208bc120 100644 --- a/mappings/net/minecraft/client/gui/DrawContext.mapping +++ b/mappings/net/minecraft/client/gui/DrawContext.mapping @@ -371,23 +371,22 @@ CLASS net/minecraft/class_332 net/minecraft/client/gui/DrawContext COMMENT COMMENT

The width and height of the region are the same as COMMENT the dimensions of the rectangle. - COMMENT - COMMENT @param textureWidth the width of the entire texture - COMMENT @param textureHeight the height of the entire texture - COMMENT @param u the x starting position of the region in the texture - COMMENT @param v the y starting position of the region in the texture - COMMENT @param width the width of the drawn rectangle and of the region in the texture - COMMENT @param height the height of the drawn rectangle and of the region in the texture ARG 1 renderLayers ARG 2 sprite ARG 3 textureWidth + COMMENT the width of the entire texture ARG 4 textureHeight + COMMENT the height of the entire texture ARG 5 u + COMMENT the x starting position of the region in the texture ARG 6 v + COMMENT the y starting position of the region in the texture ARG 7 x ARG 8 y ARG 9 width + COMMENT the width of the drawn rectangle and of the region in the texture ARG 10 height + COMMENT the height of the drawn rectangle and of the region in the texture METHOD method_52709 drawSpriteStretched (Ljava/util/function/Function;Lnet/minecraft/class_1058;IIII)V ARG 1 renderLayers ARG 2 sprite