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;
14class Dimension;
15class LevelSeed64;
16struct CustomBiome;
17namespace Bedrock::PubSub { class Subscription; }
18namespace mce { class Color; }
19namespace mce { class UUID; }
20// clang-format on
21
22class EditorCustomBiomeSource : public ::ICustomBiomeSource {
23public:
24 // member variables
25 // NOLINTBEGIN
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 EditorCustomBiomeSource& operator=(EditorCustomBiomeSource const&);
43 EditorCustomBiomeSource(EditorCustomBiomeSource const&);
44 EditorCustomBiomeSource();
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual ::mce::UUID const& getId() /*override*/;
50
51 virtual ::BiomeRegistry& getRegistry() /*override*/;
52
53 virtual ::BiomeSource& getSource() /*override*/;
54
55 virtual ::Biome const* getBiomeAtLocation(::BlockPos const& location) const /*override*/;
56
57 virtual ::std::optional<::mce::Color> findColorIfCustomBiome(::Biome const* biome) const /*override*/;
58
59 virtual void recalculateBiomes(::std::map<::std::string, ::CustomBiome> const& customBiomeMap) /*override*/;
60
61 virtual void updateColor(::std::string const& biomeName, ::mce::Color const& color) /*override*/;
62
63 virtual ::Bedrock::PubSub::Subscription listenForBiomeUpdates(::std::function<void()> callback) /*override*/;
64
65 virtual ~EditorCustomBiomeSource() /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
72 ::LevelSeed64 seed,
73 ::Dimension const& dimension,
74 ::std::map<::std::string, ::CustomBiome> const& customBiomeMap,
76 );
77
78 MCNAPI void _rebuildBiomeSource(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCNAPI static ::std::map<::std::string, ::mce::Color>
85 buildColorMap(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCNAPI void* $ctor(
92 ::LevelSeed64 seed,
93 ::Dimension const& dimension,
94 ::std::map<::std::string, ::CustomBiome> const& customBiomeMap,
96 );
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCNAPI void $dtor();
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCNAPI ::mce::UUID const& $getId();
109
110 MCNAPI ::BiomeRegistry& $getRegistry();
111
112 MCNAPI ::BiomeSource& $getSource();
113
114 MCNAPI ::Biome const* $getBiomeAtLocation(::BlockPos const& location) const;
115
116 MCNAPI ::std::optional<::mce::Color> $findColorIfCustomBiome(::Biome const* biome) const;
117
118 MCNAPI void $recalculateBiomes(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
119
120 MCNAPI void $updateColor(::std::string const& biomeName, ::mce::Color const& color);
121
122 MCNAPI ::Bedrock::PubSub::Subscription $listenForBiomeUpdates(::std::function<void()> callback);
123
124
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCNAPI static void** $vftable();
131 // NOLINTEND
132};
Definition Subscription.h:10
Definition BiomeRegistry.h:38
Definition BiomeSource.h:23
Definition Biome.h:23
Definition BlockPos.h:19
Definition Dimension.h:86
MCAPI void $updateColor(::std::string const &biomeName, ::mce::Color const &color)
MCAPI void * $ctor(::LevelSeed64 seed, ::Dimension const &dimension, ::std::map<::std::string, ::CustomBiome > const &customBiomeMap, ::mce::UUID id)
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()
static MCAPI void ** $vftable()
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
MCAPI EditorCustomBiomeSource(::LevelSeed64 seed, ::Dimension const &dimension, ::std::map<::std::string, ::CustomBiome > const &customBiomeMap, ::mce::UUID id)
Definition ICustomBiomeSource.h:20
Definition LevelSeed64.h:5
Definition Color.h:13
Definition UUID.h:7
Definition CustomBiome.h:5
Definition Alias.h:14