LeviLamina
Loading...
Searching...
No Matches
IResourcePackRepository.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/resource/PackCategory.h"
8#include "mc/deps/core/resource/PackOrigin.h"
9#include "mc/deps/core/resource/PackType.h"
10#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12
13// auto generated forward declare list
14// clang-format off
16class ContentIdentity;
18class PackInstance;
24class ResourcePack;
27struct PackIdVersion;
28struct PackInstanceId;
29namespace Core { class Path; }
30namespace mce { class UUID; }
31// clang-format on
32
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 0
38 virtual ~IResourcePackRepository() /*override*/;
39
40 // vIndex: 1
41 virtual void
42 getResourcePacksByPackId(::std::vector<::PackInstanceId> const&, ::std::vector<::PackInstance>&) const = 0;
43
44 // vIndex: 2
45 virtual ::ResourcePack* getResourcePackForPackId(::PackIdVersion const&) const = 0;
46
47 // vIndex: 3
48 virtual ::ResourcePack* getResourcePackForPackIdInPath(::PackIdVersion const&, ::Core::Path const&) const = 0;
49
50 // vIndex: 4
51 virtual ::ResourcePack* getResourcePackByUUID(::mce::UUID const&) const = 0;
52
53 // vIndex: 5
54 virtual ::ResourcePack* getResourcePackForPackIdOwned(::PackIdVersion const&) const = 0;
55
56 // vIndex: 6
57 virtual ::ResourcePack* getResourcePackSatisfiesPackId(::PackIdVersion const&, bool) const = 0;
58
59 // vIndex: 7
60 virtual ::ResourcePack* getResourcePackContainingModule(::PackIdVersion const&) const = 0;
61
62 // vIndex: 8
63 virtual ::ResourcePack* getResourcePackInPath(::Core::Path const&) const = 0;
64
65 // vIndex: 9
66 virtual bool isResourcePackLoaded(::PackIdVersion const&, ::PackOrigin const&) = 0;
67
68 // vIndex: 10
69 virtual ::PackSourceReport const* getPackLoadingReport() const = 0;
70
71 // vIndex: 11
72 virtual ::ResourcePack* getEditorPack() const = 0;
73
74 // vIndex: 12
75 virtual ::ResourcePack* getVanillaPack() const = 0;
76
77 // vIndex: 13
78 virtual bool setServicePacks(::std::vector<::PackIdVersion>) = 0;
79
80 // vIndex: 14
81 virtual bool hasServicePacks(::std::vector<::PackIdVersion> const&) const = 0;
82
83 // vIndex: 15
84 virtual ::std::vector<::PackIdVersion> const& getServicePacks() const = 0;
85
86 // vIndex: 16
87 virtual void addServicePacksToStack(::ResourcePackStack&) const = 0;
88
89 // vIndex: 17
90 virtual void addCachedResourcePacks(::std::unordered_map<::ContentIdentity, ::std::string> const*) = 0;
91
92 // vIndex: 18
93 virtual void addWorldResourcePacks(::Core::Path const&) = 0;
94
95 // vIndex: 19
96 virtual void addPremiumWorldTemplateResourcePacks(::Core::Path const&, ::ContentIdentity const&) = 0;
97
98 // vIndex: 20
99 virtual void addTempWorldTemplateResourcePacks(::mce::UUID const&) = 0;
100
101 // vIndex: 21
102 virtual void removePacksLoadedFromCache() = 0;
103
104 // vIndex: 22
105 virtual void removePacksLoadedFromWorld() = 0;
106
107 // vIndex: 23
108 virtual ::Core::PathBuffer<::std::string> const getResourcePacksPath() const = 0;
109
110 // vIndex: 24
111 virtual ::Core::PathBuffer<::std::string> const getBehaviorPacksPath() const = 0;
112
113 // vIndex: 25
114 virtual ::Core::PathBuffer<::std::string> const getSkinPacksPath() const = 0;
115
116 // vIndex: 26
117 virtual ::Core::PathBuffer<::std::string> const getDevelopmentResourcePacksPath() const = 0;
118
119 // vIndex: 27
120 virtual ::Core::PathBuffer<::std::string> const getDevelopmentBehaviorPacksPath() const = 0;
121
122 // vIndex: 28
123 virtual ::Core::PathBuffer<::std::string> const getDevelopmentSkinPacksPath() const = 0;
124
125 // vIndex: 29
126 virtual ::Core::PathBuffer<::std::string> const getTreatmentPacksPath() const = 0;
127
128 // vIndex: 30
129 virtual void refreshPacks() = 0;
130
131 // vIndex: 31
132 virtual void requestReloadUserPacks() = 0;
133
134 // vIndex: 32
135 virtual ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> getKeyProvider() const = 0;
136
137 // vIndex: 33
138 virtual ::PackManifestFactory& getPackManifestFactory() = 0;
139
140 // vIndex: 34
141 virtual ::PackSettingsFactory& getPackSettingsFactory() const = 0;
142
143 // vIndex: 35
144 virtual ::PackSourceFactory& getPackSourceFactory() = 0;
145
146 // vIndex: 36
147 virtual ::CompositePackSource const* getWorldPackSource() const = 0;
148
149 // vIndex: 37
150 virtual ::std::vector<::ResourcePack*> getPacksByResourceLocation(::PackOrigin) const = 0;
151
152 // vIndex: 38
153 virtual ::std::vector<::ResourcePack*> getPacksByType(::PackType) const = 0;
154
155 // vIndex: 39
156 virtual ::std::vector<::ResourcePack*> getPacksByCategory(::PackCategory) const = 0;
157
158 // vIndex: 40
159 virtual void addInvalidPack(::ResourceLocation const&, ::PackType) = 0;
160
161 // vIndex: 42
162 virtual ::std::vector<::ResourceLocation> const& getInvalidPacks(::PackType) const = 0;
163
164 // vIndex: 41
165 virtual ::std::vector<::ResourceLocation> getInvalidPacks(::InvalidPacksFilterGroup const&) const = 0;
166
167 // vIndex: 43
168 virtual void deletePack(::ResourceLocation const&) = 0;
169
170 // vIndex: 44
171 virtual void deletePackFiles(::ResourceLocation const&) = 0;
172
173 // vIndex: 45
174 virtual void postDeletePack(::ResourceLocation const&) = 0;
175
176 // vIndex: 46
177 virtual void untrackInvalidPack(::ResourceLocation const&) = 0;
178
179 // vIndex: 47
180 virtual void registerResourcePackRemovedCallback(void*, ::std::function<void(::ResourcePack*)>) = 0;
181
182 // vIndex: 48
183 virtual void unregisterResourcePackRemovedCallback(void*) = 0;
184
185 // vIndex: 49
186 virtual bool isInitialized() = 0;
187 // NOLINTEND
188
189public:
190 // destructor thunk
191 // NOLINTBEGIN
192 MCFOLD void $dtor();
193 // NOLINTEND
194
195public:
196 // virtual function thunks
197 // NOLINTBEGIN
198
199 // NOLINTEND
200};
Definition EnableNonOwnerReferences.h:7
Definition CompositePackSource.h:17
Definition ContentIdentity.h:10
Definition Path.h:15
Definition IContentKeyProvider.h:13
Definition IResourcePackRepository.h:33
Definition PackInstance.h:23
Definition PackManifestFactory.h:20
Definition PackSettingsFactory.h:13
Definition PackSourceFactory.h:27
Definition PackSourceReport.h:5
Definition Path.h:16
Definition ResourceLocation.h:15
Definition ResourcePackStack.h:20
Definition ResourcePack.h:25
Definition UUID.h:7
Definition InvalidPacksFilterGroup.h:5
Definition PackIdVersion.h:14
Definition PackInstanceId.h:10