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

Public Types

using StructureMap = ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::StructureStart>>

Public Member Functions

virtual ::gsl::span<::BiomeIdType const > getRequiredBiomes () const
virtual bool getNearestGeneratedFeature (::Dimension &dimension, ::BiomeSource const &biomeSource, ::BlockPos const &origin, ::BlockPos &pos, ::IPreliminarySurfaceProvider const &preliminarySurfaceLevel, bool mustBeInNewChunks, ::std::optional<::HashedString > const &biomeTag)
virtual ::std::unique_ptr<::StructureStart > createStructureStart (::Dimension &generator, ::BiomeSource const &, ::Random &random, ::ChunkPos const &lc, ::IPreliminarySurfaceProvider const &)
virtual bool isFeatureChunk (::BiomeSource const &biomeSource, ::Random &random, ::ChunkPos const &pos, uint levelSeed, ::IPreliminarySurfaceProvider const &preliminarySurfaceLevel, ::Dimension const &)
MCAPI BuriedTreasureFeature (uint seed)
MCAPI void * $ctor (uint seed)
MCAPI ::gsl::span<::BiomeIdType const > $getRequiredBiomes () const
MCAPI bool $getNearestGeneratedFeature (::Dimension &dimension, ::BiomeSource const &biomeSource, ::BlockPos const &origin, ::BlockPos &pos, ::IPreliminarySurfaceProvider const &preliminarySurfaceLevel, bool mustBeInNewChunks, ::std::optional<::HashedString > const &biomeTag)
MCAPI ::std::unique_ptr<::StructureStart > $createStructureStart (::Dimension &generator, ::BiomeSource const &, ::Random &random, ::ChunkPos const &lc, ::IPreliminarySurfaceProvider const &)
MCAPI bool $isFeatureChunk (::BiomeSource const &biomeSource, ::Random &random, ::ChunkPos const &pos, uint levelSeed, ::IPreliminarySurfaceProvider const &preliminarySurfaceLevel, ::Dimension const &)
virtual bool shouldAddHardcodedSpawnAreas () const
virtual bool shouldPostProcessMobs () const
virtual::StructureStart * getStructureAt (int cellX, int cellY, int cellZ)
MCAPI void createBlueprints (::Dimension &dimension, ::ChunkPos const &cp, ::BiomeSource const &biomeSource, ::IPreliminarySurfaceProvider const &preliminarySurfaceLevel)
MCAPI void foreachIntersectingStructureStart (::BoundingBox const &bb, ::std::function< void(::StructureStart &)> fn)
MCAPI void garbageCollectBlueprints (::buffer_span<::ChunkPos > activeChunks, uint safetyBorder)
MCAPI void postProcessMobsAt (::BlockSource &region, int chunkWestBlock, int chunkNorthBlock, ::Random &random)
MCAPI void * $ctor (uint seed, ::HashedString structureFeatureType)
MCAPI void $dtor ()
MCFOLD bool $shouldAddHardcodedSpawnAreas () const
MCFOLD bool $shouldPostProcessMobs () const
MCAPI::StructureStart * $getStructureAt (int cellX, int cellY, int cellZ)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI bool findNearestFeaturePositionBySpacing (::Dimension &dimension, ::IPreliminarySurfaceProvider const &preliminarySurfaceLevel, ::StructureFeature &feature, ::std::optional<::HashedString > const &biomeTag, ::BiomeSource const &biomeSource, ::BlockPos const &origin, ::BlockPos &result, int featureSpacing, int minFeatureSeparation, int randomSalt, bool tiltedSpacing, int maxSearchRadius, bool mustBeInNewChunks)
static MCAPI ::ChunkPos getChunkPosInSpace (::ChunkPos const &cp, ::Random &random, uint levelSeed, int spacing, int separation, int salt, bool tiltedSpacing)

Public Attributes

::ll::TypedStorage< 4, 4, int > mSpacing
::ll::TypedStorage< 4, 4, int > mMinSeparation
::ll::TypedStorage< 8, 24, ::std::vector<::BiomeIdType > > mAllowedBiomes
::ll::TypedStorage< 8, 48, ::HashedString > mStructureFeatureType
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::StructureStart > > > mCachedStructures
::ll::TypedStorage< 8, 8, ::std::shared_mutex > mCacheMutex
::ll::TypedStorage< 8, 64, ::std::unordered_set<::ChunkPos > > mVisitedPositions
::ll::TypedStorage< 4, 4, uint > mRadius
::ll::TypedStorage< 4, 4, int > mXScale
::ll::TypedStorage< 4, 4, int > mZScale
::ll::TypedStorage< 8, 80, ::std::mutex > mCreateBlueprintsAndVisitedPositionsMutex
::ll::TypedStorage< 8, 72, ::std::condition_variable > mBlueprintWaitVar
::ll::TypedStorage< 4, 4, ::std::atomic< int > > mActiveBlueprintCreateCount
::ll::TypedStorage< 1, 1, ::std::atomic< bool > > mBlueprintsFinished

Member Function Documentation

◆ getNearestGeneratedFeature()

virtual bool BuriedTreasureFeature::getNearestGeneratedFeature ( ::Dimension & dimension,
::BiomeSource const & biomeSource,
::BlockPos const & origin,
::BlockPos & pos,
::IPreliminarySurfaceProvider const & preliminarySurfaceLevel,
bool mustBeInNewChunks,
::std::optional<::HashedString > const & biomeTag )
virtual

Reimplemented from StructureFeature.

◆ createStructureStart()

virtual ::std::unique_ptr<::StructureStart > BuriedTreasureFeature::createStructureStart ( ::Dimension & generator,
::BiomeSource const & ,
::Random & random,
::ChunkPos const & lc,
::IPreliminarySurfaceProvider const &  )
virtual

Implements StructureFeature.

◆ isFeatureChunk()

virtual bool BuriedTreasureFeature::isFeatureChunk ( ::BiomeSource const & biomeSource,
::Random & random,
::ChunkPos const & pos,
uint levelSeed,
::IPreliminarySurfaceProvider const & preliminarySurfaceLevel,
::Dimension const &  )
virtual

Implements StructureFeature.

◆ $getRequiredBiomes()

MCAPI ::gsl::span<::BiomeIdType const > BuriedTreasureFeature::$getRequiredBiomes ( ) 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.

◆ $getNearestGeneratedFeature()

MCAPI bool BuriedTreasureFeature::$getNearestGeneratedFeature ( ::Dimension & dimension,
::BiomeSource const & biomeSource,
::BlockPos const & origin,
::BlockPos & pos,
::IPreliminarySurfaceProvider const & preliminarySurfaceLevel,
bool mustBeInNewChunks,
::std::optional<::HashedString > const & biomeTag )
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.

◆ $createStructureStart()

MCAPI ::std::unique_ptr<::StructureStart > BuriedTreasureFeature::$createStructureStart ( ::Dimension & generator,
::BiomeSource const & ,
::Random & random,
::ChunkPos const & lc,
::IPreliminarySurfaceProvider 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.

◆ $vftable()

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

◆ createBlueprints()

MCAPI void StructureFeature::createBlueprints ( ::Dimension & dimension,
::ChunkPos const & cp,
::BiomeSource const & biomeSource,
::IPreliminarySurfaceProvider const & preliminarySurfaceLevel )
inherited
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.

◆ foreachIntersectingStructureStart()

MCAPI void StructureFeature::foreachIntersectingStructureStart ( ::BoundingBox const & bb,
::std::function< void(::StructureStart &)> fn )
inherited
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.

◆ postProcessMobsAt()

MCAPI void StructureFeature::postProcessMobsAt ( ::BlockSource & region,
int chunkWestBlock,
int chunkNorthBlock,
::Random & random )
inherited
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.

◆ findNearestFeaturePositionBySpacing()

MCAPI bool StructureFeature::findNearestFeaturePositionBySpacing ( ::Dimension & dimension,
::IPreliminarySurfaceProvider const & preliminarySurfaceLevel,
::StructureFeature & feature,
::std::optional<::HashedString > const & biomeTag,
::BiomeSource const & biomeSource,
::BlockPos const & origin,
::BlockPos & result,
int featureSpacing,
int minFeatureSeparation,
int randomSalt,
bool tiltedSpacing,
int maxSearchRadius,
bool mustBeInNewChunks )
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.

◆ getChunkPosInSpace()

MCAPI ::ChunkPos StructureFeature::getChunkPosInSpace ( ::ChunkPos const & cp,
::Random & random,
uint levelSeed,
int spacing,
int separation,
int salt,
bool tiltedSpacing )
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: