51 ::ll::TypedStorage<1, 1, bool> mRegistered;
52 ::ll::TypedStorage<8, 40, ::Scripting::Version> mClosureFlagsVersion;
53 ::ll::TypedStorage<2, 2, ::ScriptModuleMinecraft::ScriptItemCustomComponentClosureFlags> mClosureFlags;
75 ::std::unordered_map<::HashedString, ::ScriptModuleMinecraft::ScriptItemCustomComponentRegistry::ComponentInfo>>
77 ::ll::TypedStorage<8, 8, ::ScriptDeferredEventCoordinator&> mDeferredEventCoordinator;
78 ::ll::TypedStorage<8, 16, ::ItemRegistryRef const> mItemRegistry;
79 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mItemRegistryInitSubscription;
80 ::ll::TypedStorage<8, 8, ::ScriptModuleMinecraft::ScriptCustomComponentParameterCache&> mParameterCache;
81 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>>
83 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::cereal::ReflectionCtx>> mCerealContext;
88 ScriptItemCustomComponentRegistry& operator=(ScriptItemCustomComponentRegistry
const&);
89 ScriptItemCustomComponentRegistry(ScriptItemCustomComponentRegistry
const&);
90 ScriptItemCustomComponentRegistry();
95 virtual ~ScriptItemCustomComponentRegistry() ;
97 virtual ::Scripting::Result<
104 tryRegisterComponentV1(
109 virtual ::Scripting::Result<
116 tryRegisterComponent(
121 virtual ::std::vector<::std::string_view> getValidComponentsForItem(
125 virtual ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters>
const&
126 tryGetCustomComponentParametersForItem(
128 ::std::string_view componentName,
132 virtual ::ScriptDeferredEventListener& getEventListener() ;
136 virtual void _onReload() ;
138 virtual void _onScriptInitializationComplete() ;
144 MCAPI ScriptItemCustomComponentRegistry(
148 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals,
152 MCAPI
void _bindComponentToCereal(
::HashedString const& compName);
154 MCAPI
void _subscribeItemToComponents(
::Item* item, ::std::unordered_set<::HashedString>& unusedComponents);
156 MCAPI
void _subscribeItemsToComponents();
158 MCAPI ::Scripting::Result<
165 _tryRegisterComponent(
178 ::std::unique_ptr<::ScriptModuleMinecraft::IScriptItemCustomComponentSignalCollection>&& signals,
192 MCAPI ::Scripting::Result<
199 $tryRegisterComponentV1(
204 MCAPI ::Scripting::Result<
211 $tryRegisterComponent(
216 MCAPI ::std::vector<::std::string_view> $getValidComponentsForItem(
220 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptCustomComponentParameters>
const&
221 $tryGetCustomComponentParametersForItem(
223 ::std::string_view componentName,
227 MCAPI ::ScriptDeferredEventListener& $getEventListener();
231 MCAPI
void $_onReload();
233 MCAPI
void $_onScriptInitializationComplete();