Interface ConsumablePlaySound

All Superinterfaces:
ConfigurationSerializable, ConsumableEffect

public interface ConsumablePlaySound extends ConsumableEffect
Represent a sound played when an item is consumed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the sound to play on completion of the item's consumption.
    void
    setSound(Sound sound)
    Sets the sound to play on completion of the item's consumption.

    Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable

    serialize
  • Method Details

    • getSound

      @Nullable Sound getSound()
      Gets the sound to play on completion of the item's consumption.
      Returns:
      the sound
    • setSound

      void setSound(@Nullable Sound sound)
      Sets the sound to play on completion of the item's consumption.
      Parameters:
      sound - sound