From 014fc854ad619154b877046828153b37cd91445a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 2 Jan 2022 11:58:32 +1100 Subject: [PATCH] SPIGOT-6875: Update references to old world height limits By: md_5 --- paper-api/src/main/java/org/bukkit/Chunk.java | 2 +- .../src/main/java/org/bukkit/ChunkSnapshot.java | 14 +++++++------- .../java/org/bukkit/generator/ChunkGenerator.java | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/Chunk.java b/paper-api/src/main/java/org/bukkit/Chunk.java index 5fd6030b26..06737962b8 100644 --- a/paper-api/src/main/java/org/bukkit/Chunk.java +++ b/paper-api/src/main/java/org/bukkit/Chunk.java @@ -40,7 +40,7 @@ public interface Chunk extends PersistentDataHolder { * Gets a block from this chunk * * @param x 0-15 - * @param y 0-255 + * @param y world minHeight (inclusive) - world maxHeight (exclusive) * @param z 0-15 * @return the Block */ diff --git a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java index c51c73b659..fb3e166ec4 100644 --- a/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java +++ b/paper-api/src/main/java/org/bukkit/ChunkSnapshot.java @@ -38,7 +38,7 @@ public interface ChunkSnapshot { * Get block type for block at corresponding coordinate in the chunk * * @param x 0-15 - * @param y 0-255 + * @param y world minHeight (inclusive) - world maxHeight (exclusive) * @param z 0-15 * @return block material type */ @@ -49,7 +49,7 @@ public interface ChunkSnapshot { * Get block data for block at corresponding coordinate in the chunk * * @param x 0-15 - * @param y 0-255 + * @param y world minHeight (inclusive) - world maxHeight (exclusive) * @param z 0-15 * @return block material type */ @@ -60,7 +60,7 @@ public interface ChunkSnapshot { * Get block data for block at corresponding coordinate in the chunk * * @param x 0-15 - * @param y 0-255 + * @param y world minHeight (inclusive) - world maxHeight (exclusive) * @param z 0-15 * @return 0-15 * @deprecated Magic value @@ -72,7 +72,7 @@ public interface ChunkSnapshot { * Get sky light level for block at corresponding coordinate in the chunk * * @param x 0-15 - * @param y 0-255 + * @param y world minHeight (inclusive) - world maxHeight (exclusive) * @param z 0-15 * @return 0-15 */ @@ -83,7 +83,7 @@ public interface ChunkSnapshot { * chunk * * @param x 0-15 - * @param y 0-255 + * @param y world minHeight (inclusive) - world maxHeight (exclusive) * @param z 0-15 * @return 0-15 */ @@ -114,7 +114,7 @@ public interface ChunkSnapshot { * Get biome at given coordinates * * @param x X-coordinate (0-15) - * @param y Y-coordinate (0-255) + * @param y Y-coordinate (world minHeight (inclusive) - world maxHeight (exclusive)) * @param z Z-coordinate (0-15) * @return Biome at given coordinate */ @@ -152,7 +152,7 @@ public interface ChunkSnapshot { /** * Test if section is empty * - * @param sy - section Y coordinate (block Y / 16, 0-255) + * @param sy - section Y coordinate (block Y / 16, world minHeight (inclusive) - world maxHeight (exclusive)) * @return true if empty, false if not */ boolean isSectionEmpty(int sy); diff --git a/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java b/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java index 80fcd02e9c..d14d3851a7 100644 --- a/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java +++ b/paper-api/src/main/java/org/bukkit/generator/ChunkGenerator.java @@ -237,7 +237,7 @@ public abstract class ChunkGenerator { * Get biome at x, z within chunk being generated * * @param x - 0-15 - * @param y - 0-255 + * @param y - world minHeight (inclusive) - world maxHeight (exclusive) * @param z - 0-15 * @return Biome value */ @@ -259,7 +259,7 @@ public abstract class ChunkGenerator { * Set biome at x, z within chunk being generated * * @param x - 0-15 - * @param y - 0-255 + * @param y - world minHeight (inclusive) - world maxHeight (exclusive) * @param z - 0-15 * @param bio - Biome value */