Interface Consumable
- All Superinterfaces:
BuildableDataComponent<Consumable,Consumable.Builder>
@NullMarked
@Experimental
@NonExtendable
public interface Consumable
extends BuildableDataComponent<Consumable,Consumable.Builder>
Holds the properties for this item for when it is consumed.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Consumable.Builder@Unmodifiable List<ConsumeEffect> @org.checkerframework.checker.index.qual.NonNegative floatbooleannet.kyori.adventure.key.Keysound()Methods inherited from interface io.papermc.paper.datacomponent.BuildableDataComponent
toBuilder
-
Method Details
-
consumable
-
consumeSeconds
@Contract(pure=true) @org.checkerframework.checker.index.qual.NonNegative float consumeSeconds() -
animation
-
sound
@Contract(pure=true) net.kyori.adventure.key.Key sound() -
hasConsumeParticles
@Contract(pure=true) boolean hasConsumeParticles() -
consumeEffects
-