diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-11-15 10:45:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 16:45:12 +0100 |
commit | cd8a7fe47298be12620cab62be8cf0816fabb095 (patch) | |
tree | d667a204294e382cdf1d08ce8a77096778fc7fdd /doc/lua_api.txt | |
parent | 1a045da0dd7f086a6ca689620aeb0fa28a1f6ce6 (diff) | |
download | minetest-cd8a7fe47298be12620cab62be8cf0816fabb095.tar.xz |
Add MetaDataRef:get_keys (#12841)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b9da89c2d..26d105db0 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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) |