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