27 using StructureMap = ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::StructureStart>>;
32 ::ll::TypedStorage<8, 48, ::HashedString> mStructureFeatureType;
33 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::unique_ptr<::StructureStart>>> mCachedStructures;
34 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mCacheMutex;
35 ::ll::TypedStorage<8, 64, ::std::unordered_set<::ChunkPos>> mVisitedPositions;
36 ::ll::TypedStorage<4, 4, uint> mRadius;
37 ::ll::TypedStorage<4, 4, int> mXScale;
38 ::ll::TypedStorage<4, 4, int> mZScale;
39 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mCreateBlueprintsAndVisitedPositionsMutex;
40 ::ll::TypedStorage<8, 72, ::std::condition_variable> mBlueprintWaitVar;
41 ::ll::TypedStorage<4, 4, ::std::atomic<int>> mActiveBlueprintCreateCount;
42 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mBlueprintsFinished;
56 virtual bool shouldAddHardcodedSpawnAreas()
const;
59 virtual bool shouldPostProcessMobs()
const;
62 virtual ::gsl::span<::BiomeIdType const> getRequiredBiomes()
const;
65 virtual bool getNearestGeneratedFeature(
71 bool mustBeInNewChunks,
72 ::std::optional<::HashedString>
const& biomeTag
76 virtual bool isFeatureChunk(
86 virtual ::std::unique_ptr<::StructureStart> createStructureStart(
95 virtual ::StructureStart* getStructureAt(
int cellX,
int cellY,
int cellZ);
103 MCAPI
void addFeature(
111 MCAPI
void createBlueprints(
124 MCAPI
bool isInsideBoundingFeature(
int cellX,
int cellY,
int cellZ);
126 MCAPI
void postProcessMobsAt(
::BlockSource& region,
int chunkWestBlock,
int chunkNorthBlock,
::Random& random);
132 MCAPI
static bool findNearestFeaturePositionBySpacing(
136 ::std::optional<::HashedString>
const& biomeTag,
141 int minFeatureSeparation,
145 bool mustBeInNewChunks
148 MCAPI static ::ChunkPos getChunkPosInSpace(
162 MCAPI
void* $ctor(uint seed,
::HashedString structureFeatureType);
174 MCFOLD
bool $shouldAddHardcodedSpawnAreas()
const;
176 MCFOLD
bool $shouldPostProcessMobs()
const;
178 MCFOLD ::gsl::span<::BiomeIdType const> $getRequiredBiomes()
const;
180 MCAPI
bool $getNearestGeneratedFeature(
186 bool mustBeInNewChunks,
187 ::std::optional<::HashedString>
const& biomeTag
190 MCAPI ::StructureStart* $getStructureAt(
int cellX,
int cellY,
int cellZ);