Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CerealItemComponentFactory Class Reference

Classes

Static Public Member Functions

static MCAPI void addComponentMetadata (::cereal::ReflectionCtx &ctx, ::std::string const &componentName, ::CerealItemComponentFactory::ComponentMetadata &&metadata, ::std::optional<::SemVersion > releasedMinFormatVersion)
static MCAPI ::std::shared_ptr<::ItemComponent > constructItemComponent (::std::string const &name, ::cereal::ReflectionCtx const &ctx)
static MCAPI void deprecateComponentStartingFromVersion (::std::string const &name, ::SemVersion const deprecatedVersion, ::cereal::ReflectionCtx const &ctx)
static MCAPI ::std::optional<::SemVersion > getReleasedMinFormatVersionForAnyComponent (::cereal::ReflectionCtx const &ctx)
static MCAPI ::CerealItemComponentFactory & setupContextInstanceIfRequired (::cereal::ReflectionCtx &ctx)
static MCAPI void updateReleasedMinFormatVersionForAnyComponentIfLower (::CerealItemComponentFactory &instance, ::SemVersion version)

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map< ::std::string, ::CerealItemComponentFactory::ComponentMetadata, ::Util::string_hash, ::std::equal_to< void > > > mRegisteredComponents
::ll::TypedStorage< 8, 24, ::SemVersion > mReleasedMinFormatVersionForAnyComponent

Member Function Documentation

◆ addComponentMetadata()

MCAPI void CerealItemComponentFactory::addComponentMetadata ( ::cereal::ReflectionCtx & ctx,
::std::string const & componentName,
::CerealItemComponentFactory::ComponentMetadata && metadata,
::std::optional<::SemVersion > releasedMinFormatVersion )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ constructItemComponent()

MCAPI ::std::shared_ptr<::ItemComponent > CerealItemComponentFactory::constructItemComponent ( ::std::string const & name,
::cereal::ReflectionCtx const & ctx )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ deprecateComponentStartingFromVersion()

MCAPI void CerealItemComponentFactory::deprecateComponentStartingFromVersion ( ::std::string const & name,
::SemVersion const deprecatedVersion,
::cereal::ReflectionCtx const & ctx )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getReleasedMinFormatVersionForAnyComponent()

MCAPI ::std::optional<::SemVersion > CerealItemComponentFactory::getReleasedMinFormatVersionForAnyComponent ( ::cereal::ReflectionCtx const & ctx)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setupContextInstanceIfRequired()

MCAPI ::CerealItemComponentFactory & CerealItemComponentFactory::setupContextInstanceIfRequired ( ::cereal::ReflectionCtx & ctx)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ updateReleasedMinFormatVersionForAnyComponentIfLower()

MCAPI void CerealItemComponentFactory::updateReleasedMinFormatVersionForAnyComponentIfLower ( ::CerealItemComponentFactory & instance,
::SemVersion version )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: