EmmyLua -> LuaLS
This commit is contained in:
@@ -88,8 +88,8 @@ function Node:new(nodeDef)
|
||||
registerStair(nodeDef)
|
||||
end
|
||||
|
||||
---@type Node
|
||||
local instance = Item:new(nodeDef)
|
||||
local instance = Item:new(nodeDef) --[[@as Node]]
|
||||
|
||||
return instance
|
||||
end
|
||||
|
||||
|
||||
@@ -166,25 +166,25 @@ Callbacks.allow_metadata_inventory_take = nil
|
||||
---Called after the actual action has happened, according to what was allowed.
|
||||
---
|
||||
---No return value.
|
||||
---@type (fun(pos:MapVector, from_list:string, from_index:number, to_list:string, to_index:number, count:number, player:Player): void)?
|
||||
---@type (fun(pos:MapVector, from_list:string, from_index:number, to_list:string, to_index:number, count:number, player:Player): any)?
|
||||
Callbacks.on_metadata_inventory_move = nil
|
||||
|
||||
---Called after the actual action has happened, according to what was allowed.
|
||||
---
|
||||
---No return value.
|
||||
---@type (fun(pos:MapVector, listname:string, index:number, stack:ItemStack, player:Player): void)?
|
||||
---@type (fun(pos:MapVector, listname:string, index:number, stack:ItemStack, player:Player): any)?
|
||||
Callbacks.on_metadata_inventory_put = nil
|
||||
|
||||
---Called after the actual action has happened, according to what was allowed.
|
||||
---
|
||||
---No return value.
|
||||
---@type (fun(pos:MapVector, listname:string, index:number, stack:ItemStack, player:Player): void)?
|
||||
---@type (fun(pos:MapVector, listname:string, index:number, stack:ItemStack, player:Player): any)?
|
||||
Callbacks.on_metadata_inventory_take = nil
|
||||
|
||||
---If defined, called when an explosion touches the node, instead of
|
||||
---removing the node.
|
||||
---* `intensity`: 1.0 = mid range of regular TNT.
|
||||
---@type (fun(pos:MapVector, intensity:number): void)?
|
||||
---@type (fun(pos:MapVector, intensity:number): any)?
|
||||
Callbacks.on_blast = nil
|
||||
|
||||
return Callbacks
|
||||
|
||||
Reference in New Issue
Block a user