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

    • consumable

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

      @Contract(pure=true) @org.checkerframework.checker.index.qual.NonNegative float consumeSeconds()
    • animation

      @Contract(pure=true) ItemUseAnimation animation()
    • sound

      @Contract(pure=true) Key sound()
    • hasConsumeParticles

      @Contract(pure=true) boolean hasConsumeParticles()
    • consumeEffects

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