mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 00:42:05 +01:00
Tweak Block.getTemperature to return actual block temperature
By: md_5 <git@md-5.net>
This commit is contained in:
parent
8e65ec71cb
commit
cf8cbb0713
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue