mirror of
https://github.com/dragonfireclient/hydra-dragonfire.git
synced 2024-11-21 18:34:00 -05:00
597 B
597 B
Map Reference
Source code: map.go
A map stores mapblocks received from server. To be of any use, a map needs to be added to one or more clients. See comp_map.md and client.md.
Functions
self:block(blkpos)
: Return the map_blk
at blkpos
as found in the blk_data
packet (See client_pkts.md). nil
if block is not present.
self:node(pos)
: Return a node in the form { param0 = 126, param1 = 0, param2 = 0, meta = { ... } }
. The meta field is a node_meta
as found in the blk_data
packet. nil
if node is not present.