diff options
author | Mike Primm <mike@primmhome.com> | 2011-12-29 13:26:01 -0600 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-17 19:45:47 +0100 |
commit | 64a8e061026a04649dc71950b29a7fbd7eeac972 (patch) | |
tree | 3ab76c3ff444121802fd0cefb1c95cde48a26a17 /src/main | |
parent | 5ca940b907ea92168775e3f27035e8661149879f (diff) | |
download | bukkit-64a8e061026a04649dc71950b29a7fbd7eeac972.tar bukkit-64a8e061026a04649dc71950b29a7fbd7eeac972.tar.gz bukkit-64a8e061026a04649dc71950b29a7fbd7eeac972.tar.lz bukkit-64a8e061026a04649dc71950b29a7fbd7eeac972.tar.xz bukkit-64a8e061026a04649dc71950b29a7fbd7eeac972.zip |
[Bleeding] Added Block.getLightFromSky and getLightFromBlocks
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/block/Block.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java index c758bb31..1d6b6b67 100644 --- a/src/main/java/org/bukkit/block/Block.java +++ b/src/main/java/org/bukkit/block/Block.java @@ -93,6 +93,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 * * @return World containing this block |