Skip to content

Commit

Permalink
[ci skip] Fix getTemperature javadocs (#11967)
Browse files Browse the repository at this point in the history
In 1.15 spigot changed the behavior of all temperature methods to always return height adjusted temperature.
Correctly reflect this in the javadocs.
  • Loading branch information
masmc05 authored Jan 14, 2025
1 parent c44f891 commit 85d0040
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions paper-api/src/main/java/org/bukkit/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -2593,9 +2593,6 @@ public default boolean createExplosion(@NotNull Entity source, float power) {
* <p>
* It is safe to run this method when the block does not exist, it will
* not create the block.
* <p>
* 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
Expand All @@ -2610,9 +2607,6 @@ public default boolean createExplosion(@NotNull Entity source, float power) {
* <p>
* It is safe to run this method when the block does not exist, it will
* not create the block.
* <p>
* 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
Expand Down
3 changes: 0 additions & 3 deletions paper-api/src/main/java/org/bukkit/block/Block.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,6 @@ public static int getBlockKeyZ(long packed) {

/**
* Gets the temperature of this block.
* <p>
* 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
*/
Expand Down

0 comments on commit 85d0040

Please sign in to comment.