Move all annotation files into library/ folder (for LuaLS/LLS-Addons).

This commit is contained in:
Alexander Chibrikin
2025-10-07 22:31:30 +03:00
parent f354d6bd0c
commit 61337d5f3d
43 changed files with 0 additions and 0 deletions

View File

@@ -1,9 +0,0 @@
--- 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

View File

@@ -1,19 +0,0 @@
--- @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

View File

@@ -1,7 +0,0 @@
--- 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 = {}

View File

@@ -1,8 +0,0 @@
--- 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 = {}