程序包 org.bukkit

接口 SoundGroup


public interface SoundGroup
表示方块的声音组,当各种动作发生时播放(例如踩踏、破坏、击打等)。
  • 方法详细资料

    • getVolume

      float getVolume()
      获取这些声音的播放音量。 请注意,此音量并不总是代表客户端接收的实际音量。
      返回:
      音量。 原文: Get the volume these sounds are played at. Note that this volume does not always represent the actual volume received by the client.
    • getPitch

      float getPitch()
      获取这些声音的播放音高。 请注意,此音高并不总是代表客户端接收的实际音高。
      返回:
      音高。 原文: Gets the pitch these sounds are played at. Note that this pitch does not always represent the actual pitch received by the client.
    • getBreakSound

      @NotNull @NotNull Sound getBreakSound()
      获取此组对应的破坏声音。
      返回:
      破坏声音。 原文: Gets the corresponding breaking sound for this group.
    • getStepSound

      @NotNull @NotNull Sound getStepSound()
      获取此组对应的踩踏声音。
      返回:
      踩踏声音。 原文: Gets the corresponding step sound for this group.
    • getPlaceSound

      @NotNull @NotNull Sound getPlaceSound()
      获取此组对应的放置声音。
      返回:
      放置声音。 原文: Gets the corresponding place sound for this group.
    • getHitSound

      @NotNull @NotNull Sound getHitSound()
      获取此组对应的击打声音。
      返回:
      击打声音。 原文: Gets the corresponding hit sound for this group.
    • getFallSound

      @NotNull @NotNull Sound getFallSound()
      获取此组对应的摔落声音。
      返回:
      摔落声音。 原文: Gets the corresponding fall sound for this group.