Fix method javadoc (#1802)

* FIx Point#sameBlock(Point) javadoc

* Fix grammar of Point's methods javadocs
This commit is contained in:
Tomáš Hůla 2023-03-26 00:35:33 +01:00 committed by GitHub
parent c496ee3572
commit ec8034750a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,8 +237,8 @@ public sealed interface Point permits Vec, Pos {
}
/**
* Gets if the three coordinates {@link #x()}, {@link #y()} and {@link #z()}
* are equals to {@code 0}.
* Checks if the three coordinates {@link #x()}, {@link #y()} and {@link #z()}
* are equal to {@code 0}.
*
* @return true if the three coordinates are zero
*/
@ -247,9 +247,9 @@ public sealed interface Point permits Vec, Pos {
}
/**
* Gets if two points are in the same chunk.
* Checks if two points are in the same chunk.
*
* @param point the point to compare two
* @param point the point to compare to
* @return true if 'this' is in the same chunk as {@code point}
*/
default boolean sameChunk(@NotNull Point point) {
@ -261,10 +261,10 @@ public sealed interface Point permits Vec, Pos {
}
/**
* Gets if two points are in the same chunk.
* Checks if two points are in the same block.
*
* @param point the point to compare two
* @return true if 'this' is in the same chunk as {@code point}
* @param point the point to compare to
* @return true if 'this' is in the same block as {@code point}
*/
default boolean sameBlock(@NotNull Point point) {
return sameBlock(point.blockX(), point.blockY(), point.blockZ());