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

@@ -10,6 +10,7 @@ import net.minecraftforge.event.entity.living.LivingEvent;
import noppes.npcs.AnimationData;
import noppes.npcs.client.gui.customoverlay.OverlayCustom;
import noppes.npcs.client.renderer.RenderCNPCPlayer;
import noppes.npcs.constants.EnumAnimationPart;
import noppes.npcs.controllers.data.Animation;
import noppes.npcs.entity.EntityNPCInterface;
@@ -25,6 +26,7 @@ public class ClientEventHandler {
public static float partialRenderTick;
public static EntityNPCInterface renderingNpc;
public static EntityPlayer renderingPlayer;
public static HashMap<EnumAnimationPart,String[]> partNames = new HashMap<>();
public static RendererLivingEntity renderer;
@SubscribeEvent