From 64a8e061026a04649dc71950b29a7fbd7eeac972 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Thu, 29 Dec 2011 13:26:01 -0600 Subject: [Bleeding] Added Block.getLightFromSky and getLightFromBlocks --- src/main/java/org/bukkit/block/Block.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src') 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 @@ -92,6 +92,24 @@ public interface Block { */ byte getLightLevel(); + /** + * Get the amount of light at this block from the sky. + *

+ * 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. + *

+ * 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 * -- cgit v1.2.3