@@ -336,6 +336,85 @@ index c799ac46dbe257d470d3b236cf55b41240f5fda8..d61855b83da0776fe910dee8cde184c7
336
336
}
337
337
338
338
// Paper start - Add villager reputation API
339
+ diff --git a/src/main/java/org/bukkit/inventory/CreativeCategory.java b/src/main/java/org/bukkit/inventory/CreativeCategory.java
340
+ index 5bd252c0ae3b09fe141d131360c67bb9bfbf5422..0ac1f47d1bea37630d1bb011e52eff90d7a31b41 100644
341
+ --- a/src/main/java/org/bukkit/inventory/CreativeCategory.java
342
+ +++ b/src/main/java/org/bukkit/inventory/CreativeCategory.java
343
+ @@ -3,51 +3,64 @@ package org.bukkit.inventory;
344
+ /**
345
+ * Represents a category in the creative inventory.
346
+ */
347
+ - public enum CreativeCategory {
348
+ + public enum CreativeCategory implements net.kyori.adventure.translation.Translatable { // Paper
349
+
350
+ /**
351
+ * An assortment of building blocks including dirt, bricks, planks, ores
352
+ * slabs, etc.
353
+ */
354
+ - BUILDING_BLOCKS,
355
+ + BUILDING_BLOCKS("buildingBlocks"), // Paper
356
+ /**
357
+ * Blocks and items typically used for decorative purposes including
358
+ * candles, saplings, flora, fauna, fences, walls, carpets, etc.
359
+ */
360
+ - DECORATIONS,
361
+ + DECORATIONS("decorations"), // Paper
362
+ /**
363
+ * Blocks used and associated with redstone contraptions including buttons,
364
+ * levers, pressure plates, redstone components, pistons, etc.
365
+ */
366
+ - REDSTONE,
367
+ + REDSTONE("redstone"), // Paper
368
+ /**
369
+ * Items pertaining to transportation including minecarts, rails, boats,
370
+ * elytra, etc.
371
+ */
372
+ - TRANSPORTATION,
373
+ + TRANSPORTATION("transportation"), // Paper
374
+ /**
375
+ * Miscellaneous items and blocks that do not fit into other categories
376
+ * including gems, dyes, spawn eggs, discs, banner patterns, etc.
377
+ */
378
+ - MISC,
379
+ + MISC("misc"), // Paper
380
+ /**
381
+ * Food items consumable by the player including meats, berries, edible
382
+ * drops from creatures, etc.
383
+ */
384
+ - FOOD,
385
+ + FOOD("food"), // Paper
386
+ /**
387
+ * Equipment items meant for general utility including pickaxes, axes, hoes,
388
+ * flint and steel, and useful enchantment books for said tools.
389
+ */
390
+ - TOOLS,
391
+ + TOOLS("tools"), // Paper
392
+ /**
393
+ * Equipment items meant for combat including armor, swords, bows, tipped
394
+ * arrows, and useful enchantment books for said equipment.
395
+ */
396
+ - COMBAT,
397
+ + COMBAT("combat"), // Paper
398
+ /**
399
+ * All items related to brewing and potions including all types of potions,
400
+ * their variants, and ingredients to brew them.
401
+ */
402
+ - BREWING;
403
+ + BREWING("brewing"); // Paper
404
+ + // Paper start
405
+ + private final String translationKey;
406
+ +
407
+ + CreativeCategory(String translationKey) {
408
+ + this.translationKey = "itemGroup." + translationKey;
409
+ + }
410
+ +
411
+ + @Override
412
+ + public @org.jetbrains.annotations.NotNull String translationKey() {
413
+ + return this.translationKey;
414
+ + }
415
+ + // Paper start
416
+ +
417
+ }
339
418
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java
340
419
index f0ba7ba369aad67f6af0f946dc52b3e1c8958b15..d13cedfab28a4de469bbc3f6b141922979628333 100644
341
420
--- a/src/main/java/org/bukkit/inventory/ItemStack.java
0 commit comments