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

Classes

struct  StructurePair
struct  StructureTempOwner

Public Types

using StructureMap = ::std::unordered_map<::ChunkPos, ::std::vector<::br::worldgen::StructureCache::StructurePair>>

Public Member Functions

MCAPI ::std::shared_ptr<::br::worldgen::StructureInstance const > at (::BlockPos pos) const
MCAPI ::std::vector<::std::vector<::std::shared_ptr<::br::worldgen::StructureInstance const > > > collectGroupByStep () const
MCAPI bool setInstanceForStructure (::br::worldgen::Structure const &structure, ::std::shared_ptr<::br::worldgen::StructureInstance > &&instance, ::ChunkPos chunkPos)
MCAPI void tick ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::ChunkPos, ::std::vector<::br::worldgen::StructureCache::StructurePair > > > mCache
::ll::TypedStorage< 8, 8, ::std::shared_mutex > mCacheMutex
::ll::TypedStorage< 8, 56, ::br::worldgen::StructureCache::StructureTempOwner > mWaitingToBeClaimed
::ll::TypedStorage< 4, 4, int > mGcTimer

Member Function Documentation

◆ at()

MCAPI ::std::shared_ptr<::br::worldgen::StructureInstance const > br::worldgen::StructureCache::at ( ::BlockPos pos) 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.

◆ collectGroupByStep()

MCAPI ::std::vector<::std::vector<::std::shared_ptr<::br::worldgen::StructureInstance const > > > br::worldgen::StructureCache::collectGroupByStep ( ) 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.

◆ setInstanceForStructure()

MCAPI bool br::worldgen::StructureCache::setInstanceForStructure ( ::br::worldgen::Structure const & structure,
::std::shared_ptr<::br::worldgen::StructureInstance > && instance,
::ChunkPos chunkPos )
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 br::worldgen::StructureCache::tick ( )
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: