mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Fix method javadoc (#1802)
* FIx Point#sameBlock(Point) javadoc * Fix grammar of Point's methods javadocs
This commit is contained in:
parent
c496ee3572
commit
ec8034750a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user