From 00c357d2487274782e89e7f69e8bd3f976f25b8e Mon Sep 17 00:00:00 2001 From: Doc Date: Sun, 8 Mar 2026 10:34:07 -0300 Subject: [PATCH] Add missing deprecation for Material#getCreativeCategory --- paper-api/src/main/java/org/bukkit/Material.java | 7 ++++--- paper-api/src/main/java/org/bukkit/inventory/ItemType.java | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/Material.java b/paper-api/src/main/java/org/bukkit/Material.java index 8e663e2edc0f..4c8381655e19 100644 --- a/paper-api/src/main/java/org/bukkit/Material.java +++ b/paper-api/src/main/java/org/bukkit/Material.java @@ -3554,10 +3554,11 @@ public Multimap getDefaultAttributeModifiers(@NotN /** * Get the {@link CreativeCategory} to which this material belongs. * - * @return the creative category. null if does not belong to a category + * @return the creative category. null if it does not belong to a category + * @deprecated items can belong to multiple creative categories */ - @Nullable - public CreativeCategory getCreativeCategory() { + @Deprecated(since = "1.20.6", forRemoval = true) + public @Nullable CreativeCategory getCreativeCategory() { ItemType type = asItemType(); return type == null ? null : type.getCreativeCategory(); } diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemType.java b/paper-api/src/main/java/org/bukkit/inventory/ItemType.java index d1a5e35ccc6e..108e5547191e 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemType.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemType.java @@ -3279,8 +3279,8 @@ private static M getItemType(@KeyPattern.Value final String /** * Get the {@link CreativeCategory} to which this item type belongs. * - * @return the creative category. null if does not belong to a category - + * @return the creative category. null if it does not belong to a category + * @deprecated items can belong to multiple creative categories */ @Deprecated(since = "1.20.6", forRemoval = true) @Nullable CreativeCategory getCreativeCategory();