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:
  • Method Details

    • consumable

      @Contract(value="-> new", pure=true) static Consumable.Builder consumable()
      Since:
      1.21.3
    • consumeSeconds

      @Contract(pure=true) @NonNegative float consumeSeconds()
      Since:
      1.21.3
    • animation

      @Contract(pure=true) ItemUseAnimation 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

      @Contract(pure=true) @Unmodifiable List<ConsumeEffect> consumeEffects()
      Since:
      1.21.3