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();