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