-
Notifications
You must be signed in to change notification settings - Fork 78
/
VersionMatcher.java
422 lines (389 loc) · 23.1 KB
/
VersionMatcher.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
package com.github.stefvanschie.inventoryframework.util.version;
import com.github.stefvanschie.inventoryframework.abstraction.*;
import com.github.stefvanschie.inventoryframework.exception.UnsupportedVersionException;
import org.bukkit.inventory.InventoryHolder;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import java.lang.reflect.InvocationTargetException;
import java.util.EnumMap;
/**
* Utility class containing versioning related methods.
*
* @since 0.8.0
*/
public class VersionMatcher {
/**
* The different anvil inventories for different versions
*/
private static final EnumMap<Version, Class<? extends AnvilInventory>> ANVIL_INVENTORIES;
/**
* The different beacon inventories for different versions
*/
private static final EnumMap<Version, Class<? extends BeaconInventory>> BEACON_INVENTORIES;
/**
* The different cartography table inventories for different versions
*/
private static final EnumMap<Version, Class<? extends CartographyTableInventory>> CARTOGRAPHY_TABLE_INVENTORIES;
/**
* The different enchanting table inventories for different versions
*/
private static final EnumMap<Version, Class<? extends EnchantingTableInventory>> ENCHANTING_TABLE_INVENTORIES;
/**
* The different grindstone inventories for different versions
*/
private static final EnumMap<Version, Class<? extends GrindstoneInventory>> GRINDSTONE_INVENTORIES;
/**
* The different merchant inventories for different versions
*/
private static final EnumMap<Version, Class<? extends MerchantInventory>> MERCHANT_INVENTORIES;
/**
* The different smithing table inventories for different versions
*/
private static final EnumMap<Version, Class<? extends SmithingTableInventory>> SMITHING_TABLE_INVENTORIES;
/**
* The different stonecutter inventories for different versions
*/
private static final EnumMap<Version, Class<? extends StonecutterInventory>> STONECUTTER_INVENTORIES;
/**
* Gets a new anvil inventory for the specified version of the specified inventory holder.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the anvil inventory
* @since 0.8.0
*/
@NotNull
@Contract(pure = true)
public static AnvilInventory newAnvilInventory(@NotNull Version version, @NotNull InventoryHolder inventoryHolder) {
try {
return ANVIL_INVENTORIES.get(version).getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new beacon inventory for the specified version of the specified inventory holder.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the beacon inventory
* @since 0.8.0
*/
@NotNull
@Contract(pure = true)
public static BeaconInventory newBeaconInventory(@NotNull Version version,
@NotNull InventoryHolder inventoryHolder) {
try {
return BEACON_INVENTORIES.get(version).getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new cartography table inventory for the specified version of the specified inventory holder.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the cartography table inventory
* @since 0.8.0
*/
@NotNull
@Contract(pure = true)
public static CartographyTableInventory newCartographyTableInventory(@NotNull Version version,
@NotNull InventoryHolder inventoryHolder) {
try {
Class<? extends CartographyTableInventory> clazz = CARTOGRAPHY_TABLE_INVENTORIES.get(version);
return clazz.getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new enchanting table inventory for the specified version of the specified inventory holder.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the enchanting table inventory
* @since 0.8.0
*/
@NotNull
@Contract(pure = true)
public static EnchantingTableInventory newEnchantingTableInventory(@NotNull Version version,
@NotNull InventoryHolder inventoryHolder) {
try {
Class<? extends EnchantingTableInventory> clazz = ENCHANTING_TABLE_INVENTORIES.get(version);
return clazz.getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new grindstone inventory for the specified version of the specified inventory holder.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the grindstone inventory
* @since 0.8.0
*/
@NotNull
@Contract(pure = true)
public static GrindstoneInventory newGrindstoneInventory(@NotNull Version version,
@NotNull InventoryHolder inventoryHolder) {
try {
Class<? extends GrindstoneInventory> clazz = GRINDSTONE_INVENTORIES.get(version);
return clazz.getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new merchant inventory for the specified version.
*
* @param version the version to get the inventory of
* @return the merchant inventory
* @since 0.10.1
*/
@NotNull
@Contract(pure = true)
public static MerchantInventory newMerchantInventory(@NotNull Version version) {
try {
return MERCHANT_INVENTORIES.get(version).getConstructor().newInstance();
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new smithing table inventory for the specified version of the specified inventory holder. If a smithing
* table is requested for a version that does not have smithing tables, an {@link UnsupportedVersionException} is
* thrown.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the smithing table inventory
* @since 0.8.0
* @throws UnsupportedVersionException when a smithing table is requested on a version without smithing tables
*/
@NotNull
@Contract(pure = true)
public static SmithingTableInventory newSmithingTableInventory(@NotNull Version version,
@NotNull InventoryHolder inventoryHolder) {
if (version == Version.V1_14 || version == Version.V1_15) {
throw new UnsupportedVersionException("Smithing tables didn't exist in version " + version);
}
try {
Class<? extends SmithingTableInventory> clazz = SMITHING_TABLE_INVENTORIES.get(version);
return clazz.getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
/**
* Gets a new stonecutter inventory for the specified version of the specified inventory holder.
*
* @param version the version to get the inventory of
* @param inventoryHolder the inventory holder
* @return the stonecutter inventory
* @since 0.8.0
*/
@NotNull
@Contract(pure = true)
public static StonecutterInventory newStonecutterInventory(@NotNull Version version,
@NotNull InventoryHolder inventoryHolder) {
try {
Class<? extends StonecutterInventory> clazz = STONECUTTER_INVENTORIES.get(version);
return clazz.getConstructor(InventoryHolder.class).newInstance(inventoryHolder);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException |
NoSuchMethodException exception) {
throw new IllegalStateException(exception);
}
}
static {
ANVIL_INVENTORIES = new EnumMap<>(Version.class);
ANVIL_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.AnvilInventoryImpl.class);
BEACON_INVENTORIES = new EnumMap<>(Version.class);
BEACON_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.BeaconInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES = new EnumMap<>(Version.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.CartographyTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES = new EnumMap<>(Version.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.EnchantingTableInventoryImpl.class);
GRINDSTONE_INVENTORIES = new EnumMap<>(Version.class);
GRINDSTONE_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.GrindstoneInventoryImpl.class);
MERCHANT_INVENTORIES = new EnumMap<>(Version.class);
MERCHANT_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.MerchantInventoryImpl.class);
SMITHING_TABLE_INVENTORIES = new EnumMap<>(Version.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.SmithingTableInventoryImpl.class);
STONECUTTER_INVENTORIES = new EnumMap<>(Version.class);
STONECUTTER_INVENTORIES.put(Version.V1_14,
com.github.stefvanschie.inventoryframework.nms.v1_14.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_15,
com.github.stefvanschie.inventoryframework.nms.v1_15.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_16_1,
com.github.stefvanschie.inventoryframework.nms.v1_16_1.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_16_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_16_2_3.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_16_4_5,
com.github.stefvanschie.inventoryframework.nms.v1_16_4_5.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_17_0,
com.github.stefvanschie.inventoryframework.nms.v1_17_0.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_17_1,
com.github.stefvanschie.inventoryframework.nms.v1_17_1.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_18_0,
com.github.stefvanschie.inventoryframework.nms.v1_18_0.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_18_1,
com.github.stefvanschie.inventoryframework.nms.v1_18_1.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_18_2,
com.github.stefvanschie.inventoryframework.nms.v1_18_2.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_19,
com.github.stefvanschie.inventoryframework.nms.v1_19.StonecutterInventoryImpl.class);
}
}