package dev.crucifixbeta.api.utils.entity;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.player.PlayerEntity;

@Environment(EnvType.CLIENT)
public class PlayerEntityPredict {
   public final PlayerEntity player;
   public final PlayerEntity predict;

   public PlayerEntityPredict(
      PlayerEntity player, double maxMotionY, int ticks, int simulation, boolean step, boolean doubleStep, boolean jump, boolean inBlockPause
   ) {
      this.player = player;
      this.predict = (PlayerEntity)(ticks > 0
         ? new CopyPlayerEntity(player, true, maxMotionY, ticks, simulation, step, doubleStep, jump, inBlockPause)
         : player);
   }
}
