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
Methods in io.papermc.paper.datacomponent.item that return Consumable.BuilderModifier and TypeMethodDescriptionConsumable.Builder.addEffect
(ConsumeEffect effect) Adds a singleConsumeEffect
to the consumable item being built.Consumable.Builder.addEffects
(List<ConsumeEffect> effects) Adds multipleConsumeEffect
instances to the consumable item being built.Consumable.Builder.animation
(ItemUseAnimation animation) Sets the hand animation used when a player consumes the item.static Consumable.Builder
Consumable.consumable()
Consumable.Builder.consumeSeconds
(@org.checkerframework.checker.index.qual.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.