Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions paper-api/src/main/java/org/bukkit/Material.java
Original file line number Diff line number Diff line change
Expand Up @@ -3554,10 +3554,11 @@ public Multimap<Attribute, AttributeModifier> 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();
}
Expand Down
4 changes: 2 additions & 2 deletions paper-api/src/main/java/org/bukkit/inventory/ItemType.java
Original file line number Diff line number Diff line change
Expand Up @@ -3279,8 +3279,8 @@ private static <M extends ItemType> 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
<!-- * @deprecated use #getCreativeCategories() -->
* @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();
Expand Down
Loading