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 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
70 ::LevelSeed64 seed,
71 ::Dimension const& dimension,
72 ::std::map<::std::string, ::CustomBiome> const& customBiomeMap,
74 );
75
76 MCNAPI void _rebuildBiomeSource(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
77 // NOLINTEND
78
79public:
80 // static functions
81 // NOLINTBEGIN
82 MCNAPI static ::std::map<::std::string, ::mce::Color>
83 buildColorMap(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCNAPI void* $ctor(
90 ::LevelSeed64 seed,
91 ::Dimension const& dimension,
92 ::std::map<::std::string, ::CustomBiome> const& customBiomeMap,
94 );
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCNAPI ::mce::UUID const& $getId();
101
102 MCNAPI ::BiomeRegistry& $getRegistry();
103
104 MCNAPI ::BiomeSource& $getSource();
105
106 MCNAPI ::Biome const* $getBiomeAtLocation(::BlockPos const& location) const;
107
108 MCNAPI ::std::optional<::mce::Color> $findColorIfCustomBiome(::Biome const* biome) const;
109
110 MCNAPI void $recalculateBiomes(::std::map<::std::string, ::CustomBiome> const& customBiomeMap);
111
112 MCNAPI void $updateColor(::std::string const& biomeName, ::mce::Color const& color);
113
114 MCNAPI ::Bedrock::PubSub::Subscription $listenForBiomeUpdates(::std::function<void()> callback);
115
116
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition Subscription.h:10
Definition BiomeRegistry.h:37
Definition BiomeSource.h:24
Definition Biome.h:24
Definition BlockPos.h:21
Definition Dimension.h:89
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