Class PositionUtils

java.lang.Object
net.minestom.server.utils.position.PositionUtils

@Internal public final class PositionUtils extends Object
  • Constructor Details

    • PositionUtils

      public PositionUtils()
  • Method Details

    • lookAlong

      public static Pos lookAlong(@NotNull @NotNull Pos position, double dx, double dy, double dz)
    • getLookYaw

      public static float getLookYaw(double dx, double dz)
    • getLookPitch

      public static float getLookPitch(double dx, double dy, double dz)
    • getPositionWithRelativeFlags

      @NotNull public static @NotNull Pos getPositionWithRelativeFlags(@NotNull @NotNull Pos start, @NotNull @NotNull Pos modifier, @MagicConstant(flagsFromClass=RelativeFlags.class) int flags)
    • getVelocityWithRelativeFlags

      @NotNull public static @NotNull Vec getVelocityWithRelativeFlags(@NotNull @NotNull Vec start, @NotNull @NotNull Vec modifier, @MagicConstant(flagsFromClass=RelativeFlags.class) int flags)