[Bleeding] Added Block.getLightFromSky and getLightFromBlocks

This commit is contained in:
Mike Primm 2011-12-29 13:26:01 -06:00 committed by Erik Broes
parent 5ca940b907
commit 64a8e06102

View File

@ -92,6 +92,24 @@ public interface Block {
*/ */
byte getLightLevel(); 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 * Gets the world which contains this Block
* *