From 85d0040f57ede2a324ba430fb9edd3bd38484a49 Mon Sep 17 00:00:00 2001 From: masmc05 <63639746+masmc05@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:42:34 +0200 Subject: [PATCH] [ci skip] Fix getTemperature javadocs (#11967) In 1.15 spigot changed the behavior of all temperature methods to always return height adjusted temperature. Correctly reflect this in the javadocs. --- paper-api/src/main/java/org/bukkit/World.java | 6 ------ paper-api/src/main/java/org/bukkit/block/Block.java | 3 --- 2 files changed, 9 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index e5e6cdec5..e99fa923d 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -2593,9 +2593,6 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient *
* It is safe to run this method when the block does not exist, it will * not create the block. - *
- * This method will return the raw temperature without adjusting for block - * height effects. * * @param x X coordinate of the block * @param z Z coordinate of the block @@ -2610,9 +2607,6 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient *
* It is safe to run this method when the block does not exist, it will * not create the block. - *
- * This method will return the raw temperature without adjusting for block - * height effects. * * @param x X coordinate of the block * @param y Y coordinate of the block diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index b7530e7f3..b703ad820 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/src/main/java/org/bukkit/block/Block.java @@ -509,9 +509,6 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr /** * Gets the temperature of this block. - *
- * If the raw biome temperature without adjusting for height effects is - * required then please use {@link World#getTemperature(int, int, int)}. * * @return Temperature of this block */