package twilightforest.client.renderer.entity;

import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.util.Mth;
import twilightforest.client.model.entity.StableIceCoreModel;
import twilightforest.entity.monster.StableIceCore;

public class StableIceCoreRenderer extends TFGenericMobRenderer<StableIceCore, StableIceCoreModel> {

	public StableIceCoreRenderer(EntityRendererProvider.Context context, StableIceCoreModel model) {
		super(context, model, 0.4F, "iceshooter.png");
	}

	@Override
	protected void scale(StableIceCore entity, PoseStack stack, float partialTicks) {
		float bounce = entity.tickCount + partialTicks;
		stack.translate(0.0F, Mth.sin((bounce) * 0.2F) * 0.15F, 0.0F);
	}
}
