mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +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
|
@Override
|
||||||
@Contract(pure = true)
|
@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));
|
return new Pos(x, y, operator.applyAsDouble(z));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Contract(pure = true)
|
@Contract(pure = true)
|
||||||
public @NotNull Point withZ(double z) {
|
public @NotNull Pos withZ(double z) {
|
||||||
return new Pos(x, y, z, yaw, pitch);
|
return new Pos(x, y, z, yaw, pitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user