From cd8a7fe47298be12620cab62be8cf0816fabb095 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Tue, 15 Nov 2022 10:45:12 -0500 Subject: Add MetaDataRef:get_keys (#12841) --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') 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) -- cgit v1.2.3