SpoutDev/SpoutAPI — pull request #281 by bergerkiller (2012-07-09 12:35:55+00:00)
Title: Added block surface and world sky light

Signed-off-by: Irmo van den Berge

Blocks can now translate vertically to the surface, or check if it is at the surface or above. This should ease stuff like mob spawning and lightning strikes.

Also implemented world sky light. World sky light is a sky light level the sky emits. Right now this sits on a static level of 15, but Vanilla will eventually update this level when time changes and such. This makes it possible to have 0-sky light at night so monsters can actually spawn.

I kept a 'raw' value in there as well, because you often have to know the actual value to send to clients in packets and such. It has proper javadocs, of course.