1
1
package com .lambda .mixin .entity ;
2
2
3
- import com .lambda .EntityLivingBaseFireworkHelper ;
3
+ import com .lambda .client . module . modules . misc . ElytraFix ;
4
4
import com .lambda .client .module .modules .movement .ElytraFlight ;
5
5
import net .minecraft .entity .Entity ;
6
6
import net .minecraft .entity .EntityLivingBase ;
@@ -31,7 +31,7 @@ public MixinEntityLivingBase(World worldIn) {
31
31
at = @ At (value = "INVOKE_ASSIGN" , target = "Lnet/minecraft/entity/EntityLivingBase;getLookVec()Lnet/minecraft/util/math/Vec3d;" , ordinal = 0 )
32
32
)
33
33
private Vec3d vec3d (Vec3d original ) {
34
- if (EntityLivingBaseFireworkHelper .shouldWork (EntityLivingBase .class .cast (this ))) {
34
+ if (ElytraFix . INSTANCE .shouldWork (EntityLivingBase .class .cast (this ))) {
35
35
float negPacketPitch = -ElytraFlight .INSTANCE .getPacketPitch ();
36
36
float f0 = MathHelper .cos ((float ) (-this .rotationYaw * 0.017453292f - Math .PI ));
37
37
float f1 = MathHelper .sin ((float ) (-this .rotationYaw * 0.017453292f - Math .PI ));
@@ -49,7 +49,7 @@ private Vec3d vec3d(Vec3d original) {
49
49
ordinal = 3
50
50
)
51
51
private float f (float original ) {
52
- if (EntityLivingBaseFireworkHelper .shouldWork (EntityLivingBase .class .cast (this ))) {
52
+ if (ElytraFix . INSTANCE .shouldWork (EntityLivingBase .class .cast (this ))) {
53
53
return ElytraFlight .INSTANCE .getPacketPitch () * 0.017453292f ;
54
54
}
55
55
return original ;
@@ -76,7 +76,7 @@ private void getVec(
76
76
at = @ At (value = "FIELD" , opcode = Opcodes .GETFIELD , target = "Lnet/minecraft/entity/EntityLivingBase;motionX:D" , ordinal = 7 )
77
77
)
78
78
public double motionX (EntityLivingBase it ) {
79
- if (EntityLivingBaseFireworkHelper .shouldModify (EntityLivingBase .class .cast (this ))) {
79
+ if (ElytraFix . INSTANCE .shouldModify (EntityLivingBase .class .cast (this ))) {
80
80
it .motionX += modifiedVec .x * 0.1 + (modifiedVec .x * 1.5 - this .motionX ) * 0.5 ;
81
81
}
82
82
return it .motionX ;
@@ -87,7 +87,7 @@ public double motionX(EntityLivingBase it) {
87
87
at = @ At (value = "FIELD" , opcode = Opcodes .GETFIELD , target = "Lnet/minecraft/entity/EntityLivingBase;motionY:D" , ordinal = 7 )
88
88
)
89
89
public double motionY (EntityLivingBase it ) {
90
- if (EntityLivingBaseFireworkHelper .shouldModify (EntityLivingBase .class .cast (this ))) {
90
+ if (ElytraFix . INSTANCE .shouldModify (EntityLivingBase .class .cast (this ))) {
91
91
it .motionY += modifiedVec .y * 0.1 + (modifiedVec .y * 1.5 - this .motionY ) * 0.5 ;
92
92
}
93
93
return it .motionY ;
@@ -98,7 +98,7 @@ public double motionY(EntityLivingBase it) {
98
98
at = @ At (value = "FIELD" , opcode = Opcodes .GETFIELD , target = "Lnet/minecraft/entity/EntityLivingBase;motionZ:D" , ordinal = 7 )
99
99
)
100
100
public double motionZ (EntityLivingBase it ) {
101
- if (EntityLivingBaseFireworkHelper .shouldModify (EntityLivingBase .class .cast (this ))) {
101
+ if (ElytraFix . INSTANCE .shouldModify (EntityLivingBase .class .cast (this ))) {
102
102
it .motionZ += modifiedVec .z * 0.1 + (modifiedVec .z * 1.5 - this .motionZ ) * 0.5 ;
103
103
}
104
104
return it .motionZ ;
0 commit comments