summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/block/Block.java18
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