package wtf.opal.event.impl.game.player.movement;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

@Environment(EnvType.CLIENT)
public final class PostMovementPacketEvent {
   private final double x;
   private final double y;
   private final double z;
   private final float yaw;
   private final float pitch;
   private final boolean onGround;
   private final boolean sprinting;

   public PostMovementPacketEvent(double x, double y, double z, float yaw, float pitch, boolean onGround, boolean sprinting) {
      this.x = x;
      this.y = y;
      this.z = z;
      this.yaw = yaw;
      this.pitch = pitch;
      this.onGround = onGround;
      this.sprinting = sprinting;
   }

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

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

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

   public float getYaw() {
      return this.yaw;
   }

   public float getPitch() {
      return this.pitch;
   }

   public boolean isOnGround() {
      return this.onGround;
   }

   public boolean isSprinting() {
      return this.sprinting;
   }
}
