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/puv/LoadResult.h"
7#include "mc/world/level/BiomeFilterGroup.h"
8#include "mc/world/level/biome/components/BiomeDecorationFeature.h"
9
10// auto generated forward declare list
11// clang-format off
13class HashedString;
19namespace SharedTypes::v1_21_20 { struct AutomaticFeatureRulesData; }
20namespace cereal { struct ReflectionCtx; }
21// clang-format on
22
23class AutomaticFeatureRules {
24public:
25 // AutomaticFeatureRules inner types declare
26 // clang-format off
28 // clang-format on
29
30 // AutomaticFeatureRules inner types define
32 public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 328, ::BiomeDecorationFeature> mAutoFeature;
36 ::ll::TypedStorage<8, 64, ::BiomeFilterGroup> mBiomeFilter;
37 // NOLINTEND
38 };
39
40 using AutomaticFeaturePriorityList = ::std::unordered_map<
41 ::std::string,
42 ::std::unordered_map<::HashedString, ::AutomaticFeatureRules::AutomaticFeatureRule>>;
43
44public:
45 // member variables
46 // NOLINTBEGIN
47 ::ll::TypedStorage<
48 8,
49 256,
53 nullptr_t,
55 mLoader;
56 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
57 // NOLINTEND
58
59public:
60 // prevent constructor by default
61 AutomaticFeatureRules& operator=(AutomaticFeatureRules const&);
62 AutomaticFeatureRules(AutomaticFeatureRules const&);
63 AutomaticFeatureRules();
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI AutomaticFeatureRules(::cereal::ReflectionCtx const& ctx, ::IMinecraftEventing& eventing);
69
70 MCAPI ::Puv::LoadResult<::SharedTypes::v1_21_20::AutomaticFeatureRulesData> _parseAndInsertUnsorted(
71 ::std::string const& filename,
72 ::std::string&& data,
73 ::MinEngineVersion const& minEngineVersion,
74 ::IWorldRegistriesProvider& worldRegistries,
75 ::std::unordered_map<
76 ::std::string,
77 ::std::unordered_map<::HashedString, ::AutomaticFeatureRules::AutomaticFeatureRule>>& bucketedFeatures,
78 bool isBasePack
79 ) const;
80
81 MCAPI void attachAutomaticFeatures(
82 ::ResourcePackManager& resourcePackManager,
83 ::IWorldRegistriesProvider& worldRegistries,
84 ::std::unordered_map<::HashedString, ::BiomeDecorationFeature>& biomeDecorationFeatureMap
85 ) const;
86 // NOLINTEND
87
88public:
89 // static variables
90 // NOLINTBEGIN
91 MCAPI static ::SemVersionConstant const& SCHEMA_VERSION_1();
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor(::cereal::ReflectionCtx const& ctx, ::IMinecraftEventing& eventing);
98 // NOLINTEND
99};
Definition BedrockLoadContext.h:5
Definition HashedString.h:5
Definition IMinecraftEventing.h:145
Definition IWorldRegistriesProvider.h:25
Definition MinEngineVersion.h:15
Definition _HeaderOutputPredefine.h:398
Definition ResourcePackManager.h:38
Definition SemVersionConstant.h:8
Definition AutomaticFeatureRules.h:31
Definition AutomaticFeatureRulesData.h:17
Definition ReflectionCtx.h:11
Definition ctx.h:5