LeviLamina
Loading...
Searching...
No Matches
AutomaticFeatureRules.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/ServiceReference.h"
7#include "mc/deps/puv/LoadResult.h"
8#include "mc/world/level/BiomeFilterGroup.h"
9#include "mc/world/level/biome/components/BiomeDecorationFeature.h"
10
11// auto generated forward declare list
12// clang-format off
13class FeatureRegistry;
14class HashedString;
16struct AppPlatform;
22namespace SharedTypes::v1_21_20 { struct AutomaticFeatureRulesData; }
23namespace cereal { struct ReflectionCtx; }
24// clang-format on
25
27public:
28 // AutomaticFeatureRules inner types declare
29 // clang-format off
31 // clang-format on
32
33 // AutomaticFeatureRules inner types define
35 public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 328, ::BiomeDecorationFeature> mAutoFeature;
39 ::ll::TypedStorage<8, 64, ::BiomeFilterGroup> mBiomeFilter;
40 // NOLINTEND
41
42 public:
43 // member functions
44 // NOLINTBEGIN
46 // NOLINTEND
47
48 public:
49 // destructor thunk
50 // NOLINTBEGIN
51 MCAPI void $dtor();
52 // NOLINTEND
53 };
54
55 using AutomaticFeaturePriorityList = ::std::unordered_map<
56 ::std::string,
57 ::std::unordered_map<::HashedString, ::AutomaticFeatureRules::AutomaticFeatureRule>>;
58
59public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<
63 8,
64 192,
66 mLoader;
67 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
68 // NOLINTEND
69
70public:
71 // prevent constructor by default
75
76public:
77 // member functions
78 // NOLINTBEGIN
80
81 MCAPI void _applyAutomaticFeatureRuleDefinition(
83 ::SharedTypes::v1_21_20::AutomaticFeatureRulesData const& automaticFeatureRulesData,
84 ::MinEngineVersion const& minEngineVersion,
85 ::FeatureRegistry& featureRegistry
86 ) const;
87
88 MCAPI ::Puv::LoadResult<::SharedTypes::v1_21_20::AutomaticFeatureRulesData> _parseAndInsertUnsorted(
89 ::std::string const& filename,
90 ::std::string&& data,
91 ::MinEngineVersion const& minEngineVersion,
92 ::IWorldRegistriesProvider& worldRegistries,
93 ::std::unordered_map<
94 ::std::string,
95 ::std::unordered_map<::HashedString, ::AutomaticFeatureRules::AutomaticFeatureRule>>& bucketedFeatures,
96 bool isBasePack
97 ) const;
98
99 MCAPI void attachAutomaticFeatures(
100 ::ResourcePackManager& resourcePackManager,
101 ::IWorldRegistriesProvider& worldRegistries,
102 ::std::unordered_map<::HashedString, ::BiomeDecorationFeature>& biomeDecorationFeatureMap
103 ) const;
104
105 MCAPI ::std::unordered_map<
106 ::std::string,
107 ::std::unordered_map<::HashedString, ::AutomaticFeatureRules::AutomaticFeatureRule>>
108 parseAutomaticFeatures(
110 ::ResourcePackManager& resourcePackManager,
111 ::IWorldRegistriesProvider& worldRegistries
112 ) const;
113 // NOLINTEND
114
115public:
116 // static variables
117 // NOLINTBEGIN
118 MCAPI static ::SemVersionConstant const& SCHEMA_VERSION_1();
119 // NOLINTEND
120
121public:
122 // constructor thunks
123 // NOLINTBEGIN
124 MCAPI void* $ctor(::cereal::ReflectionCtx const& ctx, ::IMinecraftEventing& eventing);
125 // NOLINTEND
126};
Definition AutomaticFeatureRules.h:26
Definition FeatureRegistry.h:18
Definition HashedString.h:5
Definition MinEngineVersion.h:10
Definition _HeaderOutputPredefine.h:235
Definition ServiceReference.h:6
Definition AppPlatform.h:5
Definition AutomaticFeatureRules.h:34
Definition BedrockLoadContext.h:5
Definition IMinecraftEventing.h:5
Definition IWorldRegistriesProvider.h:5
Definition ResourcePackManager.h:5
Definition SemVersionConstant.h:5
Definition AutomaticFeatureRulesData.h:7
Definition ReflectionCtx.h:11