接口 ConsumablePlaySound

所有超级接口:
ConfigurationSerializable, ConsumableEffect

public interface ConsumablePlaySound extends ConsumableEffect
表示物品被消耗时播放的音效。
  • 方法详细资料

    • getSound

      获取物品消耗完成时播放的音效。

      原文:Gets the sound to play on completion of the item's consumption.

      返回:
      音效
    • setSound

      void setSound(@Nullable @Nullable Sound sound)
      设置物品消耗完成时播放的音效。

      原文:Sets the sound to play on completion of the item's consumption.

      参数:
      sound - 音效