Changed mixin to support players with animations better. Rotations and pivots are now saved as and use floats.

This commit is contained in:
Luis C.M committed 2023-01-17 13:08:10 -06:00
1 parent 9797a52af1
commit f61001d32a
5 files changed
+144 -63

No files matched your search

@@ -5,11 +5,15 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import noppes.npcs.api.handler.data.IAnimationData;
import noppes.npcs.api.handler.data.IAnimation;
import noppes.npcs.constants.EnumAnimationPart;
import noppes.npcs.constants.EnumPacketClient;
import noppes.npcs.controllers.data.Animation;
import noppes.npcs.controllers.data.FramePart;
import noppes.npcs.controllers.data.PlayerData;
import noppes.npcs.entity.EntityNPCInterface;
import java.util.HashMap;
public class AnimationData implements IAnimationData {
//Server-side: DataDisplay, PlayerData
//Client-side: DataDisplay, EntityPlayer
@@ -18,6 +22,9 @@ public class AnimationData implements IAnimationData {
public Animation animation;
public boolean allowAnimation = false;
//client-sided use only
public HashMap<EnumAnimationPart, FramePart> originalPivots = new HashMap<>();
public AnimationData(Object parent){
this.parent = parent;
}