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