LeviLamina
Loading...
Searching...
No Matches
ICustomBiomeSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/EnableGetWeakRef.h"
7
8// auto generated forward declare list
9// clang-format off
10class Biome;
11class BiomeRegistry;
12class BiomeSource;
13class BlockPos;
14struct CustomBiome;
15namespace Bedrock::PubSub { class Subscription; }
16namespace mce { class Color; }
17namespace mce { class UUID; }
18// clang-format on
19
20class ICustomBiomeSource : public ::EnableGetWeakRef<::ICustomBiomeSource> {
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ~ICustomBiomeSource() = default;
25
26 virtual ::mce::UUID const& getId() = 0;
27
28 virtual ::BiomeRegistry& getRegistry() = 0;
29
30 virtual ::BiomeSource& getSource() = 0;
31
32 virtual ::Biome const* getBiomeAtLocation(::BlockPos const& location) const = 0;
33
34 virtual ::std::optional<::mce::Color> findColorIfCustomBiome(::Biome const* biome) const = 0;
35
36 virtual void recalculateBiomes(::std::map<::std::string, ::CustomBiome> const& customBiomeMap) = 0;
37
38 virtual void updateColor(::std::string const& biomeName, ::mce::Color const& color) = 0;
39
40 virtual ::Bedrock::PubSub::Subscription listenForBiomeUpdates(::std::function<void()> callback) = 0;
41 // NOLINTEND
42
43public:
44 // virtual function thunks
45 // NOLINTBEGIN
46
47 // NOLINTEND
48};
Definition Subscription.h:10
Definition BiomeRegistry.h:38
Definition BiomeSource.h:23
Definition Biome.h:23
Definition BlockPos.h:19
Definition EnableGetWeakRef.h:6
Definition ICustomBiomeSource.h:20
Definition Color.h:13
Definition UUID.h:7
Definition CustomBiome.h:5