1010import java .util .List ;
1111
1212import org .jetbrains .annotations .Nullable ;
13+ import org .spongepowered .asm .mixin .Final ;
1314import org .spongepowered .asm .mixin .Mixin ;
1415import org .spongepowered .asm .mixin .Shadow ;
1516import org .spongepowered .asm .mixin .injection .At ;
1920import com .llamalad7 .mixinextras .injector .wrapoperation .Operation ;
2021import com .llamalad7 .mixinextras .injector .wrapoperation .WrapOperation ;
2122
23+ import net .minecraft .class_12075 ;
2224import net .minecraft .client .render .command .LabelCommandRenderer ;
2325import net .minecraft .client .render .command .OrderedRenderCommandQueueImpl ;
2426import net .minecraft .client .util .math .MatrixStack ;
@@ -32,18 +34,20 @@ public class LabelCommandRendererMixin
3234{
3335 // Note: These fields are backwards compared to 25w36b, might be a bug.
3436 @ Shadow // labelCommands
35- private List <OrderedRenderCommandQueueImpl .LabelCommand > field_62987 ;
37+ @ Final
38+ List <OrderedRenderCommandQueueImpl .LabelCommand > field_62987 ;
3639
3740 @ Shadow // seeThroughLabelCommands
38- private List <OrderedRenderCommandQueueImpl .LabelCommand > field_62988 ;
41+ @ Final
42+ List <OrderedRenderCommandQueueImpl .LabelCommand > field_62988 ;
3943
4044 @ WrapOperation (
4145 at = @ At (value = "INVOKE" ,
4246 target = "Lnet/minecraft/client/util/math/MatrixStack;scale(FFF)V" ),
43- method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZID )V" )
47+ method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZIDLnet/minecraft/class_12075; )V" )
4448 private void wrapLabelScale (MatrixStack matrices , float x , float y , float z ,
4549 Operation <Void > original , MatrixStack matrices2 , @ Nullable Vec3d vec3d ,
46- Text text , boolean bl , int i , double d )
50+ Text text , boolean bl , int i , double d , class_12075 state )
4751 {
4852 NameTagsHack nameTags = WurstClient .INSTANCE .getHax ().nameTagsHack ;
4953 if (!nameTags .isEnabled ())
@@ -65,7 +69,7 @@ private void wrapLabelScale(MatrixStack matrices, float x, float y, float z,
6569 * is enabled.
6670 */
6771 @ ModifyVariable (at = @ At ("HEAD" ),
68- method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZID )V" ,
72+ method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZIDLnet/minecraft/class_12075; )V" ,
6973 argsOnly = true )
7074 private boolean forceNotSneaking (boolean notSneaking )
7175 {
@@ -82,7 +86,7 @@ private boolean forceNotSneaking(boolean notSneaking)
8286 at = @ At (value = "INVOKE" ,
8387 target = "Ljava/util/List;add(Ljava/lang/Object;)Z" ,
8488 ordinal = 0 ),
85- method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZID )V" )
89+ method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZIDLnet/minecraft/class_12075; )V" )
8690 private List <OrderedRenderCommandQueueImpl .LabelCommand > swapFirstList (
8791 List <OrderedRenderCommandQueueImpl .LabelCommand > originalList ,
8892 Object labelCommand )
@@ -109,7 +113,7 @@ private List<OrderedRenderCommandQueueImpl.LabelCommand> swapFirstList(
109113 at = @ At (value = "INVOKE" ,
110114 target = "Ljava/util/List;add(Ljava/lang/Object;)Z" ,
111115 ordinal = 1 ),
112- method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZID )V" )
116+ method = "method_74829(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/text/Text;ZIDLnet/minecraft/class_12075; )V" )
113117 private List <OrderedRenderCommandQueueImpl .LabelCommand > swapSecondList (
114118 List <OrderedRenderCommandQueueImpl .LabelCommand > originalList ,
115119 Object labelCommand )
0 commit comments