forked from mtcontrib/x_enchanting
update licensing
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
---@field get_node fun(pos: Vector): NodeDef Returns the node at the given position as table in the format `{name="node_name", param1=0, param2=0}`, returns `{name="ignore", param1=0, param2=0}` for unloaded areas.
|
||||
---@field registered_nodes table<string, NodeDef|ItemDef> Map of registered node definitions, indexed by name
|
||||
---@field registered_ores table<string, table> Map of registered ore definitions, indexed by name
|
||||
---@field registered_craftitems table<string, table> Map of registered craft items, indexed by name
|
||||
---@field after fun(time: number|integer, func: fun(...), ...): JobTable Call the function `func` after `time` seconds, may be fractional. Optional: Variable number of arguments that are passed to `func`.
|
||||
---@field sound_play fun(spec: SimpleSoundSpec|string, parameters: SoundParamDef, ephemeral?: boolean): any Returns a `handle`. Ephemeral sounds will not return a handle and can't be stopped or faded. It is recommend to use this for short sounds that happen in response to player actions (e.g. door closing).
|
||||
---@field add_particlespawner fun(particlespawner_definition: ParticlespawnerDef): number|integer Add a `ParticleSpawner`, an object that spawns an amount of particles over `time` seconds. Returns an `id`, and -1 if adding didn't succeed.
|
||||
|
@ -45,6 +45,7 @@
|
||||
---@field get_rotation fun(self: ObjectRef): Vector returns the rotation, a vector (radians)
|
||||
---@field get_attach fun(self: ObjectRef): any Returns parent, bone, position, rotation, forced_visible, or nil if it isn't attached.
|
||||
---@field set_attach fun(self: ObjectRef, parent: ObjectRef, bone?: string, position?: Vector, rotation?: Vector, forced_visible?: boolean): any Returns parent, bone, position, rotation, forced_visible, or nil if it isn't attached.
|
||||
---@field drops table Custom for mob drops
|
||||
|
||||
---`ObjectRef` armor groups
|
||||
---@class ObjectRefArmorGroups
|
||||
|
@ -50,5 +50,5 @@
|
||||
---@class EnchantmentDataSlot
|
||||
---@field level number
|
||||
---@field final_enchantments Enchantment[]
|
||||
---@field tool_cap_data ToolCapabilitiesDef
|
||||
---@field tool_cap_data ToolCapabilitiesDef | nil
|
||||
---@field descriptions {["enchantments_desc"]: string, ["enchantments_desc_masked"]: string }
|
||||
|
Reference in New Issue
Block a user