package dev.crucifixbeta.api.events.impl;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.LivingEntity;

@Environment(EnvType.CLIENT)
public class LerpToEvent {
   private static final LerpToEvent instance = new LerpToEvent();
   private LivingEntity entity;
   private double x;
   private double y;
   private double z;
   private float yRot;
   private float xRot;
   private long lastLerp;

   private LerpToEvent() {
   }

   public static LerpToEvent get(LivingEntity entity, double x, double y, double z, float yRot, float xRot, long lastLerp) {
      instance.entity = entity;
      instance.x = x;
      instance.y = y;
      instance.z = z;
      instance.yRot = yRot;
      instance.xRot = xRot;
      instance.lastLerp = lastLerp;
      return instance;
   }

   public double getX() {
      return this.x;
   }

   public double getY() {
      return this.y;
   }

   public double getZ() {
      return this.z;
   }

   public LivingEntity getEntity() {
      return this.entity;
   }

   public float getYRot() {
      return this.yRot;
   }

   public float getXRot() {
      return this.xRot;
   }

   public long getLastLerp() {
      return this.lastLerp;
   }
}
