mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix return types
This commit is contained in:
parent
8597d93e22
commit
3031895ea8
@ -203,13 +203,13 @@ public final class Pos implements Point {
|
||||
|
||||
@Override
|
||||
@Contract(pure = true)
|
||||
public @NotNull Point withZ(@NotNull DoubleUnaryOperator operator) {
|
||||
public @NotNull Pos withZ(@NotNull DoubleUnaryOperator operator) {
|
||||
return new Pos(x, y, operator.applyAsDouble(z));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Contract(pure = true)
|
||||
public @NotNull Point withZ(double z) {
|
||||
public @NotNull Pos withZ(double z) {
|
||||
return new Pos(x, y, z, yaw, pitch);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user