Rename Factory => itemFactory

This commit is contained in:
Van
2025-09-26 20:03:07 +03:00
parent 2b96db73b2
commit a86b0efe4c
8 changed files with 31 additions and 24 deletions

View File

@@ -30,16 +30,16 @@ function Node:getExtended(defaultDef)
return ChildClass
end
---Returns an instance of the `Factory` class that can be used to mass-register identical items.
---Returns an instance of the `ItemFactory` class that can be used to mass-register identical items.
---@param defaultDef? Node.NodeDefinition
---@return Factory
---@return ItemFactory
function Node:getFactory(defaultDef)
if defaultDef == nil then
defaultDef = self.defaultDef
end
---@type Factory
local instance = Core.Factory:getModClassInstance(self, defaultDef)
---@type ItemFactory
local instance = Core.ItemFactory:getModClassInstance(self, defaultDef)
return instance
end