From 94bc6ec0e63ca87cdf9ebcb89053f19b7b70efd7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 29 Dec 2011 13:26:01 -0600 Subject: [PATCH] [Bleeding] Added Block.getLightFromSky and getLightFromBlocks By: Mike Primm --- .../src/main/java/org/bukkit/block/Block.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index c758bb31bb..1d6b6b6724 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/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 *