Package net.fabricmc.fabric.api.item.v1
Interface FabricItemStack
public interface FabricItemStack
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable FoodComponent
Stack-aware version ofItem.getFoodComponent()
.default ItemStack
Return a leftover item for use in recipes.
-
Method Details
-
getRecipeRemainder
Return a leftover item for use in recipes.See
FabricItem.getRecipeRemainder(ItemStack)
for a more in depth description.Stack-aware version of
Item.getRecipeRemainder()
.- Returns:
- the leftover item
-
getFoodComponent
Stack-aware version ofItem.getFoodComponent()
. SeeFabricItem.getFoodComponent(ItemStack)
for a more in depth description.- Returns:
- this item stack's
FoodComponent
, ornull
if none was set
-