1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Private nodemeta (#5702)

* Private node metadata that isn't sent to the client
This commit is contained in:
sfan5 2017-05-10 15:29:21 +02:00 committed by Loïc Blot
parent 6945f807ab
commit 071e114ffa
10 changed files with 114 additions and 27 deletions

View file

@ -2895,6 +2895,10 @@ Can be obtained via `minetest.get_meta(pos)`.
#### Methods
* All methods in MetaDataRef
* `get_inventory()`: returns `InvRef`
* `mark_as_private(name or {name1, name2, ...})`: Mark specific vars as private
This will prevent them from being sent to the client. Note that the "private"
status will only be remembered if an associated key-value pair exists, meaning
it's best to call this when initializing all other meta (e.g. on_construct).
### `ItemStackMetaRef`
ItemStack metadata: reference extra data and functionality stored in a stack.