File tree Expand file tree Collapse file tree 6 files changed +66
-0
lines changed
simpleclient-1.19.4/src/main
java/simpleclient/mixin/feature/legacypvp
simpleclient-1.20.1/src/main
java/simpleclient/mixin/feature/legacypvp
simpleclient-1.20/src/main
java/simpleclient/mixin/feature/legacypvp Expand file tree Collapse file tree 6 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ package simpleclient .mixin .feature .legacypvp ;
2+
3+ import net .minecraft .world .entity .Entity ;
4+ import org .spongepowered .asm .mixin .Mixin ;
5+ import org .spongepowered .asm .mixin .injection .At ;
6+ import org .spongepowered .asm .mixin .injection .Inject ;
7+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfoReturnable ;
8+ import simpleclient .feature .LegacyPvP ;
9+
10+ @ Mixin (Entity .class )
11+ public class EntityMixin {
12+ @ Inject (at = @ At ("HEAD" ), method = "getPickRadius" , cancellable = true )
13+ public void getPickRadius (CallbackInfoReturnable <Float > cir ) {
14+ if (LegacyPvP .ENABLED ) cir .setReturnValue (0.1F );
15+ }
16+ }
Original file line number Diff line number Diff line change 1010 " MinecraftMixin" ,
1111 " TitleScreenMixin" ,
1212 " feature.fullbright.OptionsMixin" ,
13+ " feature.legacypvp.EntityMixin" ,
14+ " feature.legacypvp.GuiMixin" ,
15+ " feature.legacypvp.HumanoidModelMixin" ,
16+ " feature.legacypvp.ItemInHandRendererMixin" ,
17+ " feature.legacypvp.LivingEntityMixin" ,
18+ " feature.legacypvp.PlayerItemInHandLayerMixin" ,
19+ " feature.legacypvp.PlayerMixin" ,
20+ " feature.legacypvp.SwordItemMixin" ,
1321 " feature.lowfire.ScreenEffectRendererMixin" ,
1422 " feature.perspective.CameraMixin" ,
1523 " feature.perspective.MouseMixin" ,
Original file line number Diff line number Diff line change 1+ package simpleclient .mixin .feature .legacypvp ;
2+
3+ import net .minecraft .world .entity .Entity ;
4+ import org .spongepowered .asm .mixin .Mixin ;
5+ import org .spongepowered .asm .mixin .injection .At ;
6+ import org .spongepowered .asm .mixin .injection .Inject ;
7+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfoReturnable ;
8+ import simpleclient .feature .LegacyPvP ;
9+
10+ @ Mixin (Entity .class )
11+ public class EntityMixin {
12+ @ Inject (at = @ At ("HEAD" ), method = "getPickRadius" , cancellable = true )
13+ public void getPickRadius (CallbackInfoReturnable <Float > cir ) {
14+ if (LegacyPvP .ENABLED ) cir .setReturnValue (0.1F );
15+ }
16+ }
Original file line number Diff line number Diff line change 1212 " MinecraftMixin" ,
1313 " TitleScreenMixin" ,
1414 " feature.fullbright.OptionsMixin" ,
15+ " feature.legacypvp.EntityMixin" ,
1516 " feature.legacypvp.GuiMixin" ,
1617 " feature.legacypvp.HumanoidModelMixin" ,
1718 " feature.legacypvp.ItemInHandRendererMixin" ,
1819 " feature.legacypvp.LivingEntityMixin" ,
1920 " feature.legacypvp.PlayerItemInHandLayerMixin" ,
21+ " feature.legacypvp.PlayerMixin" ,
2022 " feature.legacypvp.SwordItemMixin" ,
2123 " feature.lowfire.ScreenEffectRendererMixin" ,
2224 " feature.perspective.CameraMixin" ,
Original file line number Diff line number Diff line change 1+ package simpleclient .mixin .feature .legacypvp ;
2+
3+ import net .minecraft .world .entity .Entity ;
4+ import org .spongepowered .asm .mixin .Mixin ;
5+ import org .spongepowered .asm .mixin .injection .At ;
6+ import org .spongepowered .asm .mixin .injection .Inject ;
7+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfoReturnable ;
8+ import simpleclient .feature .LegacyPvP ;
9+
10+ @ Mixin (Entity .class )
11+ public class EntityMixin {
12+ @ Inject (at = @ At ("HEAD" ), method = "getPickRadius" , cancellable = true )
13+ public void getPickRadius (CallbackInfoReturnable <Float > cir ) {
14+ if (LegacyPvP .ENABLED ) cir .setReturnValue (0.1F );
15+ }
16+ }
Original file line number Diff line number Diff line change 1111 " MinecraftMixin" ,
1212 " TitleScreenMixin" ,
1313 " feature.fullbright.OptionsMixin" ,
14+ " feature.legacypvp.EntityMixin" ,
15+ " feature.legacypvp.GuiMixin" ,
16+ " feature.legacypvp.HumanoidModelMixin" ,
17+ " feature.legacypvp.ItemInHandRendererMixin" ,
18+ " feature.legacypvp.LivingEntityMixin" ,
19+ " feature.legacypvp.PlayerItemInHandLayerMixin" ,
20+ " feature.legacypvp.PlayerMixin" ,
21+ " feature.legacypvp.SwordItemMixin" ,
1422 " feature.lowfire.ScreenEffectRendererMixin" ,
1523 " feature.perspective.CameraMixin" ,
1624 " feature.perspective.MouseMixin" ,
You can’t perform that action at this time.
0 commit comments