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;
55 virtual bool shouldAddHardcodedSpawnAreas()
const;
58 virtual bool shouldPostProcessMobs()
const;
61 virtual bool getNearestGeneratedFeature(
67 bool mustBeInNewChunks,
68 ::std::optional<::HashedString>
const& biomeTag
72 virtual bool isFeatureChunk(
82 virtual ::std::unique_ptr<::StructureStart> createStructureStart(
91 virtual ::StructureStart* getStructureAt(
int cellX,
int cellY,
int cellZ);
99 MCAPI
void addFeature(
107 MCAPI
void createBlueprints(
120 MCAPI
bool isInsideBoundingFeature(
int cellX,
int cellY,
int cellZ);
122 MCAPI
void postProcessMobsAt(
::BlockSource& region,
int chunkWestBlock,
int chunkNorthBlock,
::Random& random);
128 MCAPI
static bool findNearestFeaturePositionBySpacing(
132 ::std::optional<::HashedString>
const& biomeTag,
137 int minFeatureSeparation,
141 bool mustBeInNewChunks
144 MCAPI static ::ChunkPos getChunkPosInSpace(
158 MCAPI
void* $ctor(uint seed,
::HashedString structureFeatureType);
170 MCFOLD
bool $shouldAddHardcodedSpawnAreas()
const;
172 MCFOLD
bool $shouldPostProcessMobs()
const;
174 MCAPI
bool $getNearestGeneratedFeature(
180 bool mustBeInNewChunks,
181 ::std::optional<::HashedString>
const& biomeTag
184 MCAPI ::StructureStart* $getStructureAt(
int cellX,
int cellY,
int cellZ);