Class PositionUtils
java.lang.Object
net.minestom.server.utils.position.PositionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
getLookPitch
(double dx, double dy, double dz) static float
getLookYaw
(double dx, double dz) static @NotNull Pos
getPositionWithRelativeFlags
(@NotNull Pos start, @NotNull Pos modifier, int flags) static @NotNull Vec
getVelocityWithRelativeFlags
(@NotNull Vec start, @NotNull Vec modifier, int flags) static Pos
-
Constructor Details
-
PositionUtils
public PositionUtils()
-
-
Method Details
-
lookAlong
-
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)
-