HelperLib: add craft system requires
This commit is contained in:
@@ -64,3 +64,26 @@ function Smc.requireFormspec()
|
|||||||
return class
|
return class
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@return CraftSystem
|
||||||
|
function Smc.requireCraftSystem()
|
||||||
|
---@type CraftSystem
|
||||||
|
local class = Mod.getInfo('smc__core__craft_system').require('CraftSystem')
|
||||||
|
|
||||||
|
return class
|
||||||
|
end
|
||||||
|
|
||||||
|
---@return CraftSystem.PrimitiveCraftHandler
|
||||||
|
function Smc.requireCraftSystemPrimitiveCraftHandler()
|
||||||
|
---@type CraftSystem.PrimitiveCraftHandler
|
||||||
|
local class = Mod.getInfo('smc__core__craft_system').require('CraftSystem.PrimitiveCraftHandler')
|
||||||
|
|
||||||
|
return class
|
||||||
|
end
|
||||||
|
|
||||||
|
---@return CraftSystem.ImmersiveCraftHandler
|
||||||
|
function Smc.requireCraftSystemImmersiveCraftHandler()
|
||||||
|
---@type CraftSystem.ImmersiveCraftHandler
|
||||||
|
local class = Mod.getInfo('smc__core__craft_system').require('CraftSystem.ImmersiveCraftHandler')
|
||||||
|
|
||||||
|
return class
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user