Skip to content

Commit

Permalink
[Bleeding] Added Block.getLightFromSky and getLightFromBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeprimm authored and grum committed Jan 17, 2012
1 parent 05173f2 commit 5c8bc62
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/org/bukkit/block/Block.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 5c8bc62

Please sign in to comment.