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

Public Member Functions

virtual::LegacyStructureTemplate & getOrCreateLegacy (::std::string const &structureName)
virtual::StructureTemplate & getOrCreate (::std::string const &structureName)
virtual::StructureTemplate * getStructure (::std::string const &structureName) const
virtual bool readStructure (::StructureTemplate &structureTemplate)
virtual ::std::shared_ptr<::SharedTypes::v1_21_80::JigsawStructureMetadata > getOrCreateJigsawStructureMetadata (::StructurePoolElement const &structurePoolElement)
MCAPI StructureManager (::ResourcePackManager &packManager)
MCAPI::StructureTemplate * _createAndLoadStructure (::std::string const &structureName, ::ResourcePackManager const *packManager, ::LevelStorage *levelStorage)
MCAPI::std::string _createLevelStorageId (::std::string const &dimensionPrefix, ::std::string const &saveId)
MCAPI::StructureTemplate & cloneStructure (::StructureTemplate const &structureTemplate, ::std::string const &structureName)
MCAPI::StructureDeleteResult deleteStructure (::std::string const &structureName, ::LevelStorage &levelStorage)
MCAPI ::std::vector<::std::string > getPackStructureNames (::mce::UUID const &packUUID)
MCAPI ::std::vector<::std::string > getStructureNames (::LevelStorage &levelStorage, bool includeUnremovable) const
MCAPI void importStructureFromTemplate (::std::string name, ::StructureTemplate const &temp)
MCAPI bool load (::StructureTemplate &structureTemplate, ::ResourcePackManager const *packManager, ::LevelStorage *levelStorage)
MCAPI void loadMetadataRegistries ()
MCAPI void loadPlacementQueue (::LevelStorage &storage, ::Level &level, ::Dimension &dimension)
MCAPI void reset ()
MCAPI void saveToLevel (::StructureTemplate const &structureTemplate, ::LevelStorage &levelStorage)
MCAPI void setUnknownBlockRegistry (::Bedrock::NonOwnerPointer<::IUnknownBlockTypeRegistry > unknownBlockRegistry)
MCAPI void tick (::Dimension const &dimension)
MCAPI::QueueRequestResult tryPlaceStructureInWorld (::std::unique_ptr<::CommandArea > cmdArea, ::ServerLevel &level, ::Dimension &dimension, ::BoundingBox const &bounds, ::BlockPos const &loadPosition, ::StructureSettings const &settings, ::StructureTemplate const &structureTemplate, ::std::unique_ptr<::StructureAnimationData > structureAnimationData)
MCAPI void * $ctor (::ResourcePackManager &packManager)
MCAPI::LegacyStructureTemplate & $getOrCreateLegacy (::std::string const &structureName)
MCAPI::StructureTemplate & $getOrCreate (::std::string const &structureName)
MCAPI::StructureTemplate * $getStructure (::std::string const &structureName) const
MCAPI bool $readStructure (::StructureTemplate &structureTemplate)
MCAPI ::std::shared_ptr<::SharedTypes::v1_21_80::JigsawStructureMetadata > $getOrCreateJigsawStructureMetadata (::StructurePoolElement const &structurePoolElement)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void _removePlacementQueueItem (::std::string const &dimensionPrefix, ::StructureAnimationData &structureAnimationData)
static MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > getStructurePath (::std::string_view structureFullName)
static MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > getStructurePath (::std::string_view structureNamespace, ::std::string_view structureName)
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::std::shared_mutex > mRepositoryMutex
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::LegacyStructureTemplate > > > mLegacyStructureRepository
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::StructureTemplate > > > mStructureRepository
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::StructureAnimationData > > > mStructurePlacementQueue
::ll::TypedStorage< 4, 4, uint > mStructurePlacementSaveCounter
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::IUnknownBlockTypeRegistry > > mUnknownBlockRegistry
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::ResourcePackManager > const > mPackManager
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::std::shared_ptr<::SharedTypes::v1_21_80::JigsawStructureMetadata > > > mMetadataRegistry
::ll::TypedStorage< 8, 80, ::std::mutex > mMetadataRegistryMutex
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::cereal::ReflectionCtx > > mCerealContext
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Constructor & Destructor Documentation

◆ StructureManager()

MCAPI StructureManager::StructureManager ( ::ResourcePackManager & packManager)
explicit
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

◆ getOrCreateLegacy()

virtual::LegacyStructureTemplate & StructureManager::getOrCreateLegacy ( ::std::string const & structureName)
virtual

◆ getOrCreate()

virtual::StructureTemplate & StructureManager::getOrCreate ( ::std::string const & structureName)
virtual

◆ getStructure()

virtual::StructureTemplate * StructureManager::getStructure ( ::std::string const & structureName) const
virtual

◆ readStructure()

virtual bool StructureManager::readStructure ( ::StructureTemplate & structureTemplate)
virtual

◆ getOrCreateJigsawStructureMetadata()

virtual ::std::shared_ptr<::SharedTypes::v1_21_80::JigsawStructureMetadata > StructureManager::getOrCreateJigsawStructureMetadata ( ::StructurePoolElement const & structurePoolElement)
virtual

◆ _createAndLoadStructure()

MCAPI::StructureTemplate * StructureManager::_createAndLoadStructure ( ::std::string const & structureName,
::ResourcePackManager const * packManager,
::LevelStorage * levelStorage )
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.

◆ _createLevelStorageId()

MCAPI::std::string StructureManager::_createLevelStorageId ( ::std::string const & dimensionPrefix,
::std::string const & saveId )
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.

◆ cloneStructure()

MCAPI::StructureTemplate & StructureManager::cloneStructure ( ::StructureTemplate const & structureTemplate,
::std::string const & structureName )
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.

◆ getPackStructureNames()

MCAPI ::std::vector<::std::string > StructureManager::getPackStructureNames ( ::mce::UUID const & packUUID)
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.

◆ importStructureFromTemplate()

MCAPI void StructureManager::importStructureFromTemplate ( ::std::string name,
::StructureTemplate const & temp )
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.

◆ loadMetadataRegistries()

MCAPI void StructureManager::loadMetadataRegistries ( )
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.

◆ loadPlacementQueue()

MCAPI void StructureManager::loadPlacementQueue ( ::LevelStorage & storage,
::Level & level,
::Dimension & dimension )
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.

◆ reset()

MCAPI void StructureManager::reset ( )
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.

◆ setUnknownBlockRegistry()

MCAPI void StructureManager::setUnknownBlockRegistry ( ::Bedrock::NonOwnerPointer<::IUnknownBlockTypeRegistry > unknownBlockRegistry)
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.

◆ tick()

MCAPI void StructureManager::tick ( ::Dimension const & dimension)
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.

◆ tryPlaceStructureInWorld()

MCAPI::QueueRequestResult StructureManager::tryPlaceStructureInWorld ( ::std::unique_ptr<::CommandArea > cmdArea,
::ServerLevel & level,
::Dimension & dimension,
::BoundingBox const & bounds,
::BlockPos const & loadPosition,
::StructureSettings const & settings,
::StructureTemplate const & structureTemplate,
::std::unique_ptr<::StructureAnimationData > structureAnimationData )
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.

◆ _removePlacementQueueItem()

MCAPI void StructureManager::_removePlacementQueueItem ( ::std::string const & dimensionPrefix,
::StructureAnimationData & structureAnimationData )
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.

◆ getStructurePath() [1/2]

MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > StructureManager::getStructurePath ( ::std::string_view structureFullName)
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.

◆ getStructurePath() [2/2]

MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > StructureManager::getStructurePath ( ::std::string_view structureNamespace,
::std::string_view structureName )
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.

◆ $ctor()

MCAPI void * StructureManager::$ctor ( ::ResourcePackManager & packManager)
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.

◆ $getOrCreateLegacy()

MCAPI::LegacyStructureTemplate & StructureManager::$getOrCreateLegacy ( ::std::string const & structureName)
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.

◆ $getStructure()

MCAPI::StructureTemplate * StructureManager::$getStructure ( ::std::string const & structureName) 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.

◆ $readStructure()

MCAPI bool StructureManager::$readStructure ( ::StructureTemplate & structureTemplate)
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.

◆ $getOrCreateJigsawStructureMetadata()

MCAPI ::std::shared_ptr<::SharedTypes::v1_21_80::JigsawStructureMetadata > StructureManager::$getOrCreateJigsawStructureMetadata ( ::StructurePoolElement const & structurePoolElement)
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.

◆ $vftable()

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
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: