# 枚举的使用
org.bukkit.Sound

使用Sound的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.damage
Classes concerning damage types and sources applicable to living entities.
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.

- ## org.bukkit中Sound的使用

  类型参数类型为Sound的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final Registry<Sound>`
  Registry.`SOUNDS`
  Sound keys.
  返回Sound的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Sound`
  SoundGroup.`getBreakSound()`
  Gets the corresponding breaking sound for this group.
  `@NotNull Sound`
  SoundGroup.`getFallSound()`
  Gets the corresponding fall sound for this group.
  `@NotNull Sound`
  SoundGroup.`getHitSound()`
  Gets the corresponding hit sound for this group.
  `@NotNull Sound`
  SoundGroup.`getPlaceSound()`
  Gets the corresponding place sound for this group.
  `@Nullable Sound`
  Instrument.`getSound()`
  Gets the sound associated with this instrument.
  `@NotNull Sound`
  SoundGroup.`getStepSound()`
  Gets the corresponding step sound for this group.
  `static Sound`
  Sound.`valueOf(String name)`
  返回带有指定名称的该类型的枚举常量。
  `static Sound[]`
  Sound.`values()`
  按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
  参数类型为Sound的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull Sound sound, float volume, float pitch)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Location location, @NotNull Sound sound, float volume, float pitch)`
  在世界中指定的位置播放一个声音。
  `void`
  World.`playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a Sound at the provided Location in the World.
  `void`
  World.`playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a Sound at the provided Location in the World.

- ## org.bukkit.damage中Sound的使用

  返回Sound的org.bukkit.damage中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Sound`
  DamageEffect.`getSound()`
  Get the `Sound` played for this `DamageEffect`.

- ## org.bukkit.entity中Sound的使用

  返回Sound的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Sound`
  Mob.`getAmbientSound()`
  Get the `Sound` this mob makes while ambiently existing.
  `@NotNull Sound`
  Raider.`getCelebrationSound()`
  Get the `Sound` this entity will play when celebrating.
  `@Nullable Sound`
  LivingEntity.`getDeathSound()`
  获取此实体在死亡时发出的 `Sound`。
  `@NotNull Sound`
  LivingEntity.`getDrinkingSound(@NotNull ItemStack itemStack)`
  获取此实体饮用给定 `ItemStack` 时发出的 `Sound`。
  `@NotNull Sound`
  LivingEntity.`getEatingSound(@NotNull ItemStack itemStack)`
  获取此实体食用给定 `ItemStack` 时发出的 `Sound`。
  `@NotNull Sound`
  LivingEntity.`getFallDamageSound(int fallHeight)`
  获取此实体从给定高度（以方块为单位）坠落时发出的 `Sound`。
  `@NotNull Sound`
  LivingEntity.`getFallDamageSoundBig()`
  获取此实体从大高度坠落时发出的 `Sound`。
  `@NotNull Sound`
  LivingEntity.`getFallDamageSoundSmall()`
  获取此实体从小高度坠落时发出的 `Sound`。
  `@Nullable Sound`
  LivingEntity.`getHurtSound()`
  获取此实体在受伤时发出的 `Sound`。
  `@NotNull Sound`
  Entity.`getSwimHighSpeedSplashSound()`
  Get the `Sound` this entity makes when splashing in water at high speeds.
  `@NotNull Sound`
  Entity.`getSwimSound()`
  Get the `Sound` this entity makes while swimming.
  `@NotNull Sound`
  Entity.`getSwimSplashSound()`
  Get the `Sound` this entity makes when splashing in water.
  参数类型为Sound的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull Sound sound, float volume, float pitch)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Location location, @NotNull Sound sound, float volume, float pitch)`
  向玩家在某个位置播放一个声音.
  `void`
  Player.`playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)`
  向玩家在指定位置播放声音.
  `void`
  Player.`playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a sound for a player at the location.
  `void`
  Player.`stopSound(@NotNull Sound sound)`
  停止播放指定的声音.
  `void`
  Player.`stopSound(@NotNull Sound sound, @Nullable SoundCategory category)`
  停止播放指定的声音.