Move all annotation files into library/ folder (for LuaLS/LLS-Addons).
This commit is contained in:
9
library/classes/MetaDataRef/ItemStackMetaRef.lua
Normal file
9
library/classes/MetaDataRef/ItemStackMetaRef.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
--- ItemStack metadata: reference extra data and functionality stored in a stack.
|
||||
--- Can be obtained via `item:get_meta()`.
|
||||
---
|
||||
--- @class ItemStackMetaRef: MetaDataRef
|
||||
ItemStackMetaRef = {}
|
||||
|
||||
--- * Overrides the item's tool capabilities
|
||||
--- * A nil value will clear the override data and restore the original behavior.
|
||||
function ItemStackMetaRef:set_tool_capabilities(tool_capabilities) end
|
||||
19
library/classes/MetaDataRef/NodeMetaRef.lua
Normal file
19
library/classes/MetaDataRef/NodeMetaRef.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
--- @diagnostic disable: missing-return
|
||||
|
||||
|
||||
--- Node metadata: reference extra data and functionality stored in a node.
|
||||
--- Can be obtained via `minetest.get_meta(pos)`.
|
||||
---
|
||||
--- @class NodeMetaRef: MetaDataRef
|
||||
NodeMetaRef = {}
|
||||
|
||||
--- @return InvRef
|
||||
function NodeMetaRef:get_inventory() end
|
||||
|
||||
--- 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`).
|
||||
--- @param name string|table name or {name1, name2, ...}
|
||||
function NodeMetaRef:mark_as_private(name) end
|
||||
7
library/classes/MetaDataRef/PlayerMetaRef.lua
Normal file
7
library/classes/MetaDataRef/PlayerMetaRef.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
--- Player metadata.
|
||||
--- Uses the same method of storage as the deprecated player attribute API, so
|
||||
--- data there will also be in player meta.
|
||||
--- Can be obtained using `player:get_meta()`.
|
||||
---
|
||||
--- @class PlayerMetaRef: MetaDataRef
|
||||
PlayerMetaRef = {}
|
||||
8
library/classes/MetaDataRef/StorageRef.lua
Normal file
8
library/classes/MetaDataRef/StorageRef.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
--- Mod metadata: per mod metadata, saved automatically.
|
||||
--- Can be obtained via `minetest.get_mod_storage()` during load time.
|
||||
---
|
||||
--- WARNING: This storage backend is incapable of saving raw binary data due
|
||||
--- to restrictions of JSON.
|
||||
---
|
||||
--- @class StorageRef: MetaDataRef
|
||||
StorageRef = {}
|
||||
Reference in New Issue
Block a user