Skip to content

Commit

Permalink
SPIGOT-5523: Clarify getHighestBlock docs with current behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Jan 21, 2020
1 parent f5b9c68 commit 538ceaf
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/main/java/org/bukkit/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,26 @@ public interface World extends PluginMessageRecipient, Metadatable {
public Block getBlockAt(@NotNull Location location);

/**
* Gets the y coordinate of the lowest block at this position such that the
* block and all blocks above it are transparent for lighting purposes.
* Gets the highest non-empty (impassable) coordinate at the given
* coordinates.
*
* @param x X-coordinate of the blocks
* @param z Z-coordinate of the blocks
* @return Y-coordinate of the described block
* @return Y-coordinate of the highest non-empty block
*/
public int getHighestBlockYAt(int x, int z);

/**
* Gets the y coordinate of the lowest block at the given {@link Location}
* such that the block and all blocks above it are transparent for lighting
* purposes.
* Gets the highest non-empty (impassable) coordinate at the given
* {@link Location}.
*
* @param location Location of the blocks
* @return Y-coordinate of the highest non-air block
* @return Y-coordinate of the highest non-empty block
*/
public int getHighestBlockYAt(@NotNull Location location);

/**
* Gets the lowest block at the given coordinates such that the block and
* all blocks above it are transparent for lighting purposes.
* Gets the highest non-empty (impassable) block at the given coordinates.
*
* @param x X-coordinate of the block
* @param z Z-coordinate of the block
Expand All @@ -91,8 +89,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
public Block getHighestBlockAt(int x, int z);

/**
* Gets the lowest block at the given {@link Location} such that the block
* and all blocks above it are transparent for lighting purposes.
* Gets the highest non-empty (impassable) block at the given coordinates.
*
* @param location Coordinates to get the highest block
* @return Highest non-empty block
Expand Down

0 comments on commit 538ceaf

Please sign in to comment.