50 using is_transparent = void;
59 ::ll::TypedStorage<4, 4, float> mTemperature;
60 ::ll::TypedStorage<4, 4, float> mDownfall;
61 ::ll::TypedStorage<4, 4, float> mFoliageSnow;
65 using BiomeNameLookupMap = ::std::unordered_map<uint64, ::std::unique_ptr<::Biome>>;
71 ::ll::TypedStorage<8, 720, ::WellKnownBiomeTags const> mWellKnownBiomeTags;
72 ::ll::TypedStorage<1, 1, bool> mSurfaceBuildersResolved;
73 ::ll::TypedStorage<1, 1, bool> mClientInitialized;
74 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::std::unique_ptr<::Biome>>> mBiomesByName;
79 ::gsl::not_null<::Biome*>,
81 ::std::vector<::gsl::not_null<::Biome*>>>>
83 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BiomeIdType const, ::std::string const&>>>
84 mRemovedBiomesIdAndFullName;
85 ::ll::TypedStorage<4, 4, uint> mNextCustomBiomeId;
86 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mClosedForRegistration;
87 ::ll::TypedStorage<8, 8, ::Biome*> mEmptyBiome;
88 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveSubscription;
89 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnLevelStorageManagerStartLeaveGameSubscription;
90 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeRegistry::SeasonTextureRowSettings>> mSeasonTextureRowSettings;
96 virtual ~BiomeRegistry() ;
102 MCAPI BiomeRegistry();
104 MCAPI
void _forEachExistingBiomeAndRemovedBiome(
108 MCAPI ::Biome& _register(::std::string_view name,
::BiomeIdType id);
119 MCAPI ::std::vector<::std::string>
const biomeGetTags(
::Biome const& biome)
const;
123 MCAPI
bool biomeHasTag(
::Biome const& biome, uint64 tagHash)
const;
133 MCAPI ::std::vector<::Biome const*> getBiomesInDimension(
::DimensionType type)
const;
136 MCFOLD ::std::vector<::BiomeRegistry::SeasonTextureRowSettings>
const& getSeasonTextureRowSettings()
const;
138 MCFOLD ::std::vector<::BiomeRegistry::SeasonTextureRowSettings>& getSeasonTextureRowSettings();
147 MCAPI
void initServerFromPacks(
150 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>&
151 biomeIdToResolvedData
157 MCAPI
bool isRegistrationFinished()
const;
159 MCAPI
void loadAllBiomeDocuments(
165 ::std::unordered_map<::std::string, ::std::unique_ptr<::BiomeJsonDocumentGlueResolvedBiomeData>>&
166 biomeIdToResolvedData,
175 MCAPI ::Biome
const* lookupByHash(
::HashedString const& hash)
const;
186 MCFOLD ::Biome
const* lookupByName(::std::string
const& name)
const;
188 MCFOLD ::Biome* lookupByName(::std::string
const& name);
190 MCAPI ::Biome& registerBiomeWithExplicitId(::std::string_view name,
::BiomeIdType id);
192 MCAPI ::Biome& registerCustomBiome(::std::string_view name);
194 MCAPI
void registrationFinished();
196 MCAPI
void removeFailedToLoadBiomes();
Definition BiomeRegistry.h:55