26 using StructureMap = ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::StructureStart>>;
31 ::ll::TypedStorage<8, 48, ::HashedString> mStructureFeatureType;
32 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::StructureStart>>> mCachedStructures;
33 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mCacheMutex;
34 ::ll::TypedStorage<8, 64, ::std::unordered_set<::ChunkPos>> mVisitedPositions;
35 ::ll::TypedStorage<4, 4, uint> mRadius;
36 ::ll::TypedStorage<4, 4, int> mXScale;
37 ::ll::TypedStorage<4, 4, int> mZScale;
38 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mCreateBlueprintsAndVisitedPositionsMutex;
39 ::ll::TypedStorage<8, 72, ::std::condition_variable> mBlueprintWaitVar;
40 ::ll::TypedStorage<4, 4, ::std::atomic<int>> mActiveBlueprintCreateCount;
41 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mBlueprintsFinished;
51 virtual bool shouldAddHardcodedSpawnAreas()
const;
54 virtual bool shouldPostProcessMobs()
const;
57 virtual bool getNearestGeneratedFeature(
63 bool mustBeInNewChunks,
64 ::std::optional<::HashedString>
const& biomeTag
72 virtual ::std::unique_ptr<::StructureStart>
76 virtual ::StructureStart* getStructureAt(
int cellX,
int cellY,
int cellZ);
84 MCAPI
void addFeature(
92 MCAPI
void createBlueprints(
105 MCAPI
bool isInsideBoundingFeature(
int cellX,
int cellY,
int cellZ);
107 MCAPI
void postProcessMobsAt(
::BlockSource& region,
int chunkWestBlock,
int chunkNorthBlock,
::Random& random);
113 MCAPI
static bool findNearestFeaturePositionBySpacing(
117 ::std::optional<::HashedString>
const& biomeTag,
122 int minFeatureSeparation,
125 int mustBeInNewChunks,
129 MCAPI static ::ChunkPos getChunkPosInSpace(
143 MCAPI
void* $ctor(uint seed,
::HashedString structureFeatureType);
155 MCFOLD
bool $shouldAddHardcodedSpawnAreas()
const;
157 MCFOLD
bool $shouldPostProcessMobs()
const;
159 MCAPI
bool $getNearestGeneratedFeature(
165 bool mustBeInNewChunks,
166 ::std::optional<::HashedString>
const& biomeTag
169 MCAPI ::StructureStart* $getStructureAt(
int cellX,
int cellY,
int cellZ);
175 MCAPI
static void** $vftable();