All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.client.render.MutableAnimatedModel Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
package com.parzivail.util.client.render;

import com.parzivail.pswg.Client;
import net.minecraft.class_1297;
import net.minecraft.class_5597;
import net.minecraft.class_630;

public class MutableAnimatedModel extends class_5597
{
	private final ModelAngleAnimator angleAnimator;

	private class_630 root;

	public MutableAnimatedModel(ModelAngleAnimator angleAnimator)
	{
		this.angleAnimator = angleAnimator;
	}

	public void setRoot(class_630 root)
	{
		this.root = root;
	}

	@Override
	public class_630 method_32008()
	{
		return root;
	}

	@Override
	public void method_2819(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch)
	{
		angleAnimator.setAngles(this, entity, limbAngle, limbDistance, animationProgress, headYaw, headPitch, Client.getTickDelta());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy