From e87b3bf9c396221d27a49b4431290ee7bf1cce9a Mon Sep 17 00:00:00 2001 From: themode Date: Wed, 29 Dec 2021 15:58:30 +0100 Subject: [PATCH] Outdated doc --- src/main/java/net/minestom/server/coordinate/Point.java | 3 --- src/main/java/net/minestom/server/coordinate/Pos.java | 2 +- src/main/java/net/minestom/server/coordinate/Vec.java | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/minestom/server/coordinate/Point.java b/src/main/java/net/minestom/server/coordinate/Point.java index 518d2a796..8427d2429 100644 --- a/src/main/java/net/minestom/server/coordinate/Point.java +++ b/src/main/java/net/minestom/server/coordinate/Point.java @@ -11,9 +11,6 @@ import java.util.function.DoubleUnaryOperator; /** * Represents a 3D point. - *

- * Can either be a {@link Pos} or {@link Vec}. - * Interface will become {@code sealed} in the future. */ public sealed interface Point permits Vec, Pos { diff --git a/src/main/java/net/minestom/server/coordinate/Pos.java b/src/main/java/net/minestom/server/coordinate/Pos.java index e03afffb1..437f8d054 100644 --- a/src/main/java/net/minestom/server/coordinate/Pos.java +++ b/src/main/java/net/minestom/server/coordinate/Pos.java @@ -10,7 +10,7 @@ import java.util.function.DoubleUnaryOperator; /** * Represents a position containing coordinates and a view. *

- * To become record and primitive. + * To become a value then primitive type. */ public record Pos(double x, double y, double z, float yaw, float pitch) implements Point { public static final Pos ZERO = new Pos(0, 0, 0); diff --git a/src/main/java/net/minestom/server/coordinate/Vec.java b/src/main/java/net/minestom/server/coordinate/Vec.java index e3118f77f..ae34febd1 100644 --- a/src/main/java/net/minestom/server/coordinate/Vec.java +++ b/src/main/java/net/minestom/server/coordinate/Vec.java @@ -10,7 +10,7 @@ import java.util.function.DoubleUnaryOperator; /** * Represents an immutable 3D vector. *

- * To become record and primitive. + * To become a value then primitive type. */ public record Vec(double x, double y, double z) implements Point { public static final Vec ZERO = new Vec(0);