2121 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2222 */
2323
24- package btw .mixces .animatium .mixins .v0 .entity ;
24+ package btw .mixces .animatium .mixins .v1 .entity . cape_movement ;
2525
2626import btw .mixces .animatium .AnimatiumClient ;
2727import btw .mixces .animatium .config .AnimatiumConfig ;
4444import net .minecraft .util .Mth ;
4545import net .minecraft .world .entity .Avatar ;
4646import net .minecraft .world .entity .HumanoidArm ;
47- import org .jetbrains .annotations .NotNull ;
4847import org .objectweb .asm .Opcodes ;
4948import org .spongepowered .asm .mixin .Mixin ;
5049import org .spongepowered .asm .mixin .Shadow ;
@@ -59,10 +58,6 @@ public MixinAvatarRenderer(EntityRendererProvider.Context context, PlayerModel e
5958 super (context , entityModel , f );
6059 }
6160
62- @ Shadow
63- @ NotNull
64- public abstract AvatarRenderState createRenderState ();
65-
6661 @ Shadow
6762 private static HumanoidModel .ArmPose getArmPose (Avatar avatar , HumanoidArm humanoidArm ) {
6863 return null ;
@@ -96,6 +91,7 @@ private static HumanoidModel.ArmPose getArmPose(Avatar avatar, HumanoidArm human
9691 return !AnimatiumClient .isEnabled () || !AnimatiumConfig .instance ().capeMovement ;
9792 }
9893
94+ // TODO/MOVE
9995 @ WrapOperation (method = "getRenderOffset(Lnet/minecraft/client/renderer/entity/state/AvatarRenderState;)Lnet/minecraft/world/phys/Vec3;" , at = @ At (value = "FIELD" , target = "Lnet/minecraft/client/renderer/entity/state/AvatarRenderState;isCrouching:Z" ))
10096 private boolean animatium$fixSneakingFeetPosition (AvatarRenderState instance , Operation <Boolean > original ) {
10197 if (AnimatiumClient .isEnabled () && AnimatiumConfig .instance ().fixSneakingFeetPosition ) {
@@ -105,6 +101,7 @@ private static HumanoidModel.ArmPose getArmPose(Avatar avatar, HumanoidArm human
105101 }
106102 }
107103
104+ // TODO/MOVE
108105 @ Inject (method = "renderHand" , at = @ At (value = "FIELD" , opcode = Opcodes .PUTFIELD , target = "Lnet/minecraft/client/model/geom/ModelPart;visible:Z" , ordinal = 2 ))
109106 private void animatium$heldItemArmLogic (PoseStack poseStack , SubmitNodeCollector submitNodeCollector , int i , ResourceLocation resourceLocation , ModelPart modelPart , boolean bl , CallbackInfo ci , @ Local PlayerModel playerModel ) {
110107 if (AnimatiumClient .isEnabled () && AnimatiumConfig .instance ().heldItemArmLogic ) {
0 commit comments