mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make core.get_node_raw
a public API (#16265)
Co-authored-by: Erich Schubert <erich.schubert@tu-dortmund.de>
This commit is contained in:
parent
0794145b64
commit
8eceabd812
3 changed files with 125 additions and 12 deletions
|
@ -6481,6 +6481,11 @@ Environment access
|
|||
* `core.get_node_or_nil(pos)`
|
||||
* Same as `get_node` but returns `nil` for unloaded areas.
|
||||
* Note that even loaded areas can contain "ignore" nodes.
|
||||
* `core.get_node_raw(x, y, z)`
|
||||
* Same as `get_node` but a faster low-level API
|
||||
* Returns `content_id`, `param1`, `param2`, and `pos_ok`
|
||||
* The `content_id` can be mapped to a name using `core.get_name_from_content_id()`
|
||||
* If `pos_ok` is false, the area is unloaded and `content_id == core.CONTENT_IGNORE`
|
||||
* `core.get_node_light(pos[, timeofday])`
|
||||
* Gets the light value at the given position. Note that the light value
|
||||
"inside" the node at the given position is returned, so you usually want
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue