mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Add MetaDataRef:get_keys (#12841)
This commit is contained in:
committed by
GitHub
parent
1a045da0dd
commit
cd8a7fe472
@@ -6863,6 +6863,7 @@ and [`PlayerMetaRef`].
|
||||
* `get_int(key)`: Returns `0` if key not present.
|
||||
* `set_float(key, value)`
|
||||
* `get_float(key)`: Returns `0` if key not present.
|
||||
* `get_keys()`: returns a list of all keys in the metadata.
|
||||
* `to_table()`: returns `nil` or a table with keys:
|
||||
* `fields`: key-value storage
|
||||
* `inventory`: `{list1 = {}, ...}}` (NodeMetaRef only)
|
||||
|
Reference in New Issue
Block a user