mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:41:27 +01:00
[Bleeding] Added Block.getLightFromSky and getLightFromBlocks
By: Mike Primm <mike@primmhome.com>
This commit is contained in:
parent
c02d8155ad
commit
94bc6ec0e6
@ -92,6 +92,24 @@ public interface Block {
|
||||
*/
|
||||
byte getLightLevel();
|
||||
|
||||
/**
|
||||
* Get the amount of light at this block from the sky.
|
||||
* <p>
|
||||
* Any light given from other sources (such as blocks like torches) will be ignored.
|
||||
*
|
||||
* @return Sky light level
|
||||
*/
|
||||
byte getLightFromSky();
|
||||
|
||||
/**
|
||||
* Get the amount of light at this block from nearby blocks.
|
||||
* <p>
|
||||
* Any light given from other sources (such as the sun) will be ignored.
|
||||
*
|
||||
* @return Block light level
|
||||
*/
|
||||
byte getLightFromBlocks();
|
||||
|
||||
/**
|
||||
* Gets the world which contains this Block
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user