Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
br::worldgen::StructureRegistry Class Reference

Public Types

using Map = ::entt::dense_map<::std::string, ::std::shared_ptr<::br::worldgen::JigsawStructure>>

Public Member Functions

MCAPI ::std::shared_ptr<::br::worldgen::JigsawStructure const > get (::std::string_view key) const
MCAPI::br::worldgen::OnStructurePlacedToken record (::std::string_view name, ::std::function< void(::Dimension &, ::br::worldgen::StructureInstance const &)> &&cb)
MCAPI::br::worldgen::OnStructurePlacedToken reserveOnPlaced (::std::string_view name)

Public Attributes

::ll::TypedStorage< 8, 72, ::entt::dense_map<::std::string, ::std::shared_ptr<::br::worldgen::JigsawStructure > > > mStructures
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr< char[0]> > > mOnStructurePlacedNames
::ll::TypedStorage< 8, 24, ::std::vector<::std::function< void(::Dimension &, ::br::worldgen::StructureInstance const &)> > > mOnStructurePlaced
::ll::TypedStorage< 8, 48, ::brstd::flat_map< ::std::string_view, ::br::worldgen::OnStructurePlacedToken, ::std::less<::std::string_view >, ::std::vector<::std::string_view >, ::std::vector<::br::worldgen::OnStructurePlacedToken > > > mOnStructurePlacedMap

Member Function Documentation

◆ record()

MCAPI::br::worldgen::OnStructurePlacedToken br::worldgen::StructureRegistry::record ( ::std::string_view name,
::std::function< void(::Dimension &, ::br::worldgen::StructureInstance const &)> && cb )
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.

◆ reserveOnPlaced()

MCAPI::br::worldgen::OnStructurePlacedToken br::worldgen::StructureRegistry::reserveOnPlaced ( ::std::string_view name)
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: