Skip to content

Commit

Permalink
Update draw sprite region
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthegreat1 committed Oct 16, 2024
1 parent bf7c6d3 commit eae83d6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mappings/net/minecraft/client/gui/DrawContext.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -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 <p>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
Expand All @@ -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
Expand Down

0 comments on commit eae83d6

Please sign in to comment.