Uses of Interface
io.papermc.paper.datacomponent.item.Consumable.Builder
Packages that use Consumable.Builder
-
Uses of Consumable.Builder in io.papermc.paper.datacomponent.item
Subinterfaces with type arguments of type Consumable.Builder in io.papermc.paper.datacomponent.itemModifier and TypeInterfaceDescriptioninterfaceHolds the properties for this item for when it is consumed.Methods in io.papermc.paper.datacomponent.item that return Consumable.BuilderModifier and TypeMethodDescriptionConsumable.Builder.addEffect(ConsumeEffect effect) Adds a singleConsumeEffectto the consumable item being built.Consumable.Builder.addEffects(List<ConsumeEffect> effects) Adds multipleConsumeEffectinstances to the consumable item being built.Consumable.Builder.animation(ItemUseAnimation animation) Sets the hand animation used when a player consumes the item.static Consumable.BuilderConsumable.consumable()Consumable.Builder.consumeSeconds(@NonNegative float consumeSeconds) Sets the amount of time (in seconds) it takes to consume the item.Consumable.Builder.effects(List<ConsumeEffect> effects) Sets the effects that occur when an item is consumed.Consumable.Builder.hasConsumeParticles(boolean hasConsumeParticles) Sets whether consuming the item results in particle effects.Sets the sound played when consuming the item.