Skip to content

Commit

Permalink
Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/…
Browse files Browse the repository at this point in the history
…v1/FabricItem.java

Co-authored-by: Juuz <[email protected]>
  • Loading branch information
Phoupraw and Juuxel authored Nov 6, 2023
1 parent 57b1715 commit 46b05b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ default ItemStack getRecipeRemainder(ItemStack stack) {
* Note that simple food component can also be set via {@link Item.Settings#food(FoodComponent)}.
* If you want to get a food component for a stack, is <b>recommended</b> to use the stack version of this method: {@link FabricItemStack#getFoodComponent()}.
*
* @return this item's {@link FoodComponent}, or {@code null} if none was set.
* @return this item's {@link FoodComponent}, or {@code null} if none was set
*/
default @Nullable FoodComponent getFoodComponent(ItemStack stack) {
return ((Item) this).getFoodComponent();
Expand Down

0 comments on commit 46b05b4

Please sign in to comment.