Consumable
Allows items to be consumed.
Parameters
The nutrition that consuming the item provides.
The saturation that consuming the item provides.
Whether the item can always be eaten, even if the player is not hungry.
The time it takes to consume the item in ticks.
The item that remains after consuming the item.
The possible effects that consuming the item can apply.
The animation that is played when consuming the item.
The sound that is played when consuming the item.
Whether particles are spawned when consuming the item.
Constructors
Properties
The base data components that every item with this ItemBehavior has.
Whether the item can always be eaten, even if the player is not hungry.
The time it takes to consume the item in ticks.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
The possible effects that consuming the item can apply.
The saturation that consuming the item provides.
The vanilla material properties that an item with this ItemBehavior requires.
Functions
Creates a string representation of this ItemBehavior and its data in itemStack.