summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-19 10:53:02 +1100
committermd_5 <git@md-5.net>2018-12-19 10:53:02 +1100
commit78568d11d3ad8bb1f6a90c1b5dff3394f22f12fc (patch)
treeb4da3b3989219e2f94a295439a990a9191db583c
parent9ad459ca9dd3756f801f9f8932af9a828109f5f7 (diff)
downloadbukkit-master.tar
bukkit-master.tar.gz
bukkit-master.tar.lz
bukkit-master.tar.xz
bukkit-master.zip
Tweak Block.getTemperature to return actual block temperatureHEADmaster
-rw-r--r--src/main/java/org/bukkit/World.java3
-rw-r--r--src/main/java/org/bukkit/block/Block.java5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index 89a08cc9..4a703ddb 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -1090,6 +1090,9 @@ public interface World extends PluginMessageRecipient, Metadatable {
* <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
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java
index 6041a66c..46a29d3d 100644
--- a/src/main/java/org/bukkit/block/Block.java
+++ b/src/main/java/org/bukkit/block/Block.java
@@ -308,7 +308,10 @@ public interface Block extends Metadatable {
boolean isLiquid();
/**
- * Gets the temperature of the biome of this block
+ * 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)}.
*
* @return Temperature of this block
*/