Skip to content

Commit

Permalink
light_from_sky(getLightFromSky), light_from_blocks(getLightFromBlocks…
Browse files Browse the repository at this point in the history
…), world(getWorld)
  • Loading branch information
enebo committed Jan 8, 2014
1 parent 7d5412a commit f8dda4c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/main/resources/bukkit/block/block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,32 @@ def type
end

##
# How bright is the light on this block. Can be 0-15.
# How bright is the light on this block? Can be 0-15.
#
def light_level
getLightLevel
end

##
# How bright is this block only from sky light?
#
def light_from_sky
getLightFromSky
end

##
# How bright is this block from block source (not sky light)?
#
def light_from_blocks
getLightFromBlocks
end

##
# What world does this block belong to?
def world
getWorld
end

##
# Which face relative to the supplied block would be visible?
# === Parameters
Expand Down

0 comments on commit f8dda4c

Please sign in to comment.