Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemRegistry Class Reference
Inheritance diagram for ItemRegistry:

Classes

struct  ItemAlias
struct  ItemHashAlias
struct  LoadedItemAsset
struct  ItemLoadResult
struct  ParsedName

Public Types

using CreativeItemsServerInitCallbackSignature

Public Member Functions

MCAPI ItemRegistry ()
MCAPI void _preRegisterItem (::HashedString const &itemName, ::SharedPtr<::Item > item)
MCAPI::ItemRegistry::ParsedName _tryParseItemName (::Puv::Input const &input)
MCAPI::ItemRegistryRef::LoadedItem _tryRegisterAndInitItem (::ItemRegistry::LoadedItemAsset const &loadedItemAsset, ::ItemParseContext &parseContext)
MCAPI void addItemToTagMap (::Item const &item)
MCAPI void alterAvailableCreativeItems (::ActorInfoRegistry *registry, ::LevelData &levelData)
MCAPI void clearItemAndCreativeItemRegistry ()
MCAPI ::std::vector<::std::reference_wrapper<::HashedString const > > const & getComplexAliasSplitNames (::HashedString const &oldName) const
MCFOLD ::WeakPtr<::Item > getItem (::HashedString const &id)
MCAPI ::WeakPtr<::Item > getItem (short id)
MCAPI ::std::pair<::HashedString, int > getNameFromAlias (::HashedString const &name, int aux) const
MCAPI bool isComplexAlias (::HashedString const &oldName) const
MCAPI ::WeakPtr<::Item > lookupByName (int &inOutItemAux, ::std::string_view inString) const
MCAPI ::WeakPtr<::Item > lookupByName (int &outItemId, int &inOutItemAux, ::std::string_view inString) const
MCAPI ::WeakPtr<::Item > lookupByNameNoAlias (::std::string_view inString) const
MCAPI ::WeakPtr<::Item > lookupByNameNoParsing (int &inOutItemAux, ::HashedString const &fullName) const
MCAPI ::WeakPtr<::Item > lookupByVanillaName (::HashedString const &inString) const
MCAPI void registerAlias (::HashedString const &alias, ::HashedString const &name, ::BaseGameVersion const &fromVersion)
MCAPI ::WeakPtr<::Item > registerComplexAlias (::HashedString const &alias, ::ItemRegistryComplexAlias const &complexAlias)
MCAPI void registerItem (::SharedPtr<::Item > item)
MCAPI void registerLegacyMapping (::HashedString const &alias, ::HashedString const &name, ::BaseGameVersion const &fromVersion)
MCAPI void registerValidatorIdentifier (::std::string const &str)
MCAPI uint64 remapToFullLegacyNameByHash (uint64 newHash)
MCAPI uint64 remapToLegacyNameByHash (uint64 newHash)
MCAPI void shutdown ()
MCAPI void unregisterItem (::HashedString const &itemName)
MCAPI ::std::vector<::std::string > validateServerItemComponents (::std::vector<::ItemData > const &items)
MCAPI ~ItemRegistry ()
MCAPI void * $ctor ()
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr<::cereal::ReflectionCtx > > > mCerealContext
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::LinkedAssetValidator > > mValidator
::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr<::ItemLoaderTraits::Loader > > > mDocumentLoader
::ll::TypedStorage< 8, 24, ::std::vector<::SharedPtr<::Item > > > mItemRegistry
::ll::TypedStorage< 8, 64, ::std::unordered_map< int, ::WeakPtr<::Item > > > mIdToItemMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::WeakPtr<::Item > > > mNameToItemMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::WeakPtr<::Item > > > mTileNamespaceToItemMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::WeakPtr<::Item > > > mTileItemNameToItemMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::ItemRegistry::ItemAlias > > mItemAliasLookupMap
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::ItemRegistry::ItemHashAlias > > mReverseAliasLookupMap
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::ItemRegistry::ItemHashAlias > > mReverseFullNameAliasLookupMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::ItemRegistryComplexAlias > > mComplexAliasLookupMap
::ll::TypedStorage< 8, 64, ::std::unordered_map< short, ::HashedString > > mLegacyIDToNameMap
::ll::TypedStorage< 2, 2, short > mMaxItemID
::ll::TypedStorage< 8, 24, ::std::vector<::HashedString > > mAttachableDefinitions
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ItemTag, ::std::unordered_set<::Item const * > > > mTagToItemsMap
::ll::TypedStorage< 8, 64, ::std::unordered_set<::Item const * > const > mEmptyItemSet
::ll::TypedStorage< 1, 1, bool > mServerInitializingCreativeItems
::ll::TypedStorage< 1, 1, ::ItemRegistrationState > mItemRegistrationState
::ll::TypedStorage< 8, 64, ::std::function< void(::ItemRegistryRef)> > mExtraItemInitCallback
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Bedrock::PubSub::Publisher< void(), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > > mFinishedInitServerPublisher
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::std::atomic< int > > > mCanUpdateTags
::ll::TypedStorage< 8, 24, ::std::vector<::SharedPtr<::Item > > > mDeadItemRegistry
::ll::TypedStorage< 1, 1, bool > mAddToPreRegistry
::ll::TypedStorage< 8, 64, ::std::unordered_map<::HashedString, ::SharedPtr<::Item > > > mHardcodedVanillaItemPreRegistry
::ll::TypedStorage< 8, 32, ::BaseGameVersion > mWorldBaseGameVersion
::ll::TypedStorage< 1, 1, bool > mCheckForItemWorldCompatibility
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::std::mutex > > mCompatibilityCheckMutex
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::CreativeItemRegistry > > mCreativeItemRegistry

Member Typedef Documentation

◆ CreativeItemsServerInitCallbackSignature

using ItemRegistry::CreativeItemsServerInitCallbackSignature
Initial value:
void(
::Experiments const&,
)
Definition BaseGameVersion.h:8
Definition NonOwnerPointer.h:9
Definition BlockDefinitionGroup.h:35
Definition CreativeItemRegistry.h:23
Definition Experiments.h:14
Definition IEducationOptions.h:8
Definition IMinecraftEventing.h:152
Definition ItemRegistryRef.h:36
Definition ResourcePackManager.h:29
Definition ReflectionCtx.h:11

Constructor & Destructor Documentation

◆ ItemRegistry()

MCAPI ItemRegistry::ItemRegistry ( )
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.

◆ ~ItemRegistry()

MCAPI ItemRegistry::~ItemRegistry ( )
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.

Member Function Documentation

◆ _preRegisterItem()

MCAPI void ItemRegistry::_preRegisterItem ( ::HashedString const & itemName,
::SharedPtr<::Item > item )
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.

◆ _tryParseItemName()

MCAPI::ItemRegistry::ParsedName ItemRegistry::_tryParseItemName ( ::Puv::Input const & input)
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.

◆ _tryRegisterAndInitItem()

MCAPI::ItemRegistryRef::LoadedItem ItemRegistry::_tryRegisterAndInitItem ( ::ItemRegistry::LoadedItemAsset const & loadedItemAsset,
::ItemParseContext & parseContext )
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.

◆ addItemToTagMap()

MCAPI void ItemRegistry::addItemToTagMap ( ::Item const & item)
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.

◆ alterAvailableCreativeItems()

MCAPI void ItemRegistry::alterAvailableCreativeItems ( ::ActorInfoRegistry * registry,
::LevelData & levelData )
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.

◆ clearItemAndCreativeItemRegistry()

MCAPI void ItemRegistry::clearItemAndCreativeItemRegistry ( )
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.

◆ getComplexAliasSplitNames()

MCAPI ::std::vector<::std::reference_wrapper<::HashedString const > > const & ItemRegistry::getComplexAliasSplitNames ( ::HashedString const & oldName) const
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.

◆ getNameFromAlias()

MCAPI ::std::pair<::HashedString, int > ItemRegistry::getNameFromAlias ( ::HashedString const & name,
int aux ) const
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.

◆ isComplexAlias()

MCAPI bool ItemRegistry::isComplexAlias ( ::HashedString const & oldName) const
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.

◆ lookupByName() [1/2]

MCAPI ::WeakPtr<::Item > ItemRegistry::lookupByName ( int & inOutItemAux,
::std::string_view inString ) const
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.

◆ lookupByName() [2/2]

MCAPI ::WeakPtr<::Item > ItemRegistry::lookupByName ( int & outItemId,
int & inOutItemAux,
::std::string_view inString ) const
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.

◆ lookupByNameNoParsing()

MCAPI ::WeakPtr<::Item > ItemRegistry::lookupByNameNoParsing ( int & inOutItemAux,
::HashedString const & fullName ) const
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.

◆ lookupByVanillaName()

MCAPI ::WeakPtr<::Item > ItemRegistry::lookupByVanillaName ( ::HashedString const & inString) const
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.

◆ registerAlias()

MCAPI void ItemRegistry::registerAlias ( ::HashedString const & alias,
::HashedString const & name,
::BaseGameVersion const & fromVersion )
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.

◆ registerComplexAlias()

MCAPI ::WeakPtr<::Item > ItemRegistry::registerComplexAlias ( ::HashedString const & alias,
::ItemRegistryComplexAlias const & complexAlias )
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.

◆ registerLegacyMapping()

MCAPI void ItemRegistry::registerLegacyMapping ( ::HashedString const & alias,
::HashedString const & name,
::BaseGameVersion const & fromVersion )
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.

◆ registerValidatorIdentifier()

MCAPI void ItemRegistry::registerValidatorIdentifier ( ::std::string const & str)
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.

◆ remapToFullLegacyNameByHash()

MCAPI uint64 ItemRegistry::remapToFullLegacyNameByHash ( uint64 newHash)
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.

◆ remapToLegacyNameByHash()

MCAPI uint64 ItemRegistry::remapToLegacyNameByHash ( uint64 newHash)
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.

◆ shutdown()

MCAPI void ItemRegistry::shutdown ( )
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.

◆ validateServerItemComponents()

MCAPI ::std::vector<::std::string > ItemRegistry::validateServerItemComponents ( ::std::vector<::ItemData > const & items)
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.

◆ $ctor()

MCAPI void * ItemRegistry::$ctor ( )
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.

◆ $dtor()

MCAPI void ItemRegistry::$dtor ( )
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: