Interface Consumable.Builder
- All Superinterfaces:
DataComponentBuilder<Consumable>
- Enclosing interface:
Consumable
@Experimental
@NonExtendable
public static interface Consumable.Builder
extends DataComponentBuilder<Consumable>
Builder for
Consumable
.-
Method Summary
Modifier and TypeMethodDescriptionaddEffect
(ConsumeEffect effect) addEffects
(List<ConsumeEffect> effects) animation
(ItemUseAnimation animation) consumeSeconds
(@org.checkerframework.checker.index.qual.NonNegative float consumeSeconds) hasConsumeParticles
(boolean hasConsumeParticles) Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
consumeSeconds
@Contract(value="_ -> this", mutates="this") Consumable.Builder consumeSeconds(@org.checkerframework.checker.index.qual.NonNegative float consumeSeconds) -
animation
@Contract(value="_ -> this", mutates="this") Consumable.Builder animation(ItemUseAnimation animation) -
sound
-
hasConsumeParticles
@Contract(value="_ -> this", mutates="this") Consumable.Builder hasConsumeParticles(boolean hasConsumeParticles) -
addEffect
-
addEffects
@Contract(value="_ -> this", mutates="this") Consumable.Builder addEffects(List<ConsumeEffect> effects)
-