LeviLamina
Loading...
Searching...
No Matches
EditorCustomBiomeSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/biome/source/ICustomBiomeSource.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 EditorCustomBiomeSource : public ::ICustomBiomeSource {
21public:
22 // member variables
23 // NOLINTBEGIN
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 EditorCustomBiomeSource& operator=(EditorCustomBiomeSource const&);
41 EditorCustomBiomeSource(EditorCustomBiomeSource const&);
42 EditorCustomBiomeSource();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual ::mce::UUID const& getId() /*override*/;
48
49 virtual ::BiomeRegistry& getRegistry() /*override*/;
50
51 virtual ::BiomeSource& getSource() /*override*/;
52
53 virtual ::Biome const* getBiomeAtLocation(::BlockPos const& location) const /*override*/;
54
55 virtual ::std::optional<::mce::Color> findColorIfCustomBiome(::Biome const* biome) const /*override*/;
56
57 virtual void recalculateBiomes(::std::map<::std::string, ::CustomBiome> const& customBiomeMap) /*override*/;
58
59 virtual void updateColor(::std::string const& biomeName, ::mce::Color const& color) /*override*/;
60
61 virtual ::Bedrock::PubSub::Subscription listenForBiomeUpdates(::std::function<void()> callback) /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCNAPI void _rebuildBiomeSource(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCNAPI static ::std::map<::std::string, ::mce::Color>
74 buildColorMap(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCNAPI ::mce::UUID const& $getId();
81
82 MCNAPI ::BiomeRegistry& $getRegistry();
83
84 MCNAPI ::BiomeSource& $getSource();
85
86 MCNAPI ::Biome const* $getBiomeAtLocation(::BlockPos const& location) const;
87
88 MCNAPI ::std::optional<::mce::Color> $findColorIfCustomBiome(::Biome const* biome) const;
89
90 MCNAPI void $recalculateBiomes(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
91
92 MCNAPI void $updateColor(::std::string const& biomeName, ::mce::Color const& color);
93
94 MCNAPI ::Bedrock::PubSub::Subscription $listenForBiomeUpdates(::std::function<void()> callback);
95
96
97 // NOLINTEND
98};
Definition Subscription.h:10
Definition BiomeRegistry.h:37
Definition BiomeSource.h:23
Definition Biome.h:23
Definition BlockPos.h:17
MCAPI void $updateColor(::std::string const &biomeName, ::mce::Color const &color)
MCAPI::mce::UUID const & $getId()
MCAPI void $recalculateBiomes(::std::map<::std::string, ::CustomBiome > const &customBiomeMap)
static MCAPI ::std::map<::std::string, ::mce::Color > buildColorMap(::std::map<::std::string, ::CustomBiome > const &customBiomeMap)
MCAPI::BiomeSource & $getSource()
MCAPI void _rebuildBiomeSource(::std::map<::std::string, ::CustomBiome > const &customBiomeMap)
MCAPI::Bedrock::PubSub::Subscription $listenForBiomeUpdates(::std::function< void()> callback)
MCAPI::BiomeRegistry & $getRegistry()
MCAPI::Biome const * $getBiomeAtLocation(::BlockPos const &location) const
MCAPI ::std::optional<::mce::Color > $findColorIfCustomBiome(::Biome const *biome) const
Definition ICustomBiomeSource.h:20
Definition Color.h:13
Definition UUID.h:8
Definition CustomBiome.h:5
Definition Alias.h:14