枚举的使用
org.bukkit.SoundCategory
使用SoundCategory的程序包
-
org.bukkit中SoundCategory的使用
返回SoundCategory的org.bukkit中的方法修饰符和类型方法说明static SoundCategory返回带有指定名称的该类型的枚举常量。static SoundCategory[]SoundCategory.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为SoundCategory的org.bukkit中的方法修饰符和类型方法说明voidWorld.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the location of the provided entity in the World.voidWorld.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a Sound at the location of the provided entity in the World.voidWorld.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.voidWorld.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.voidWorld.playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World.voidWorld.playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a Sound at the provided Location in the World.voidWorld.playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World.voidWorld.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.entity中SoundCategory的使用
参数类型为SoundCategory的org.bukkit.entity中的方法修饰符和类型方法说明voidPlayer.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) Play a sound for a player at the location of the entity.voidPlayer.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location of the entity.voidPlayer.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.voidPlayer.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.voidPlayer.playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) 向玩家在指定位置播放声音.voidPlayer.playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) Play a sound for a player at the location.voidPlayer.playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) 向玩家在指定位置播放声音.voidPlayer.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.voidPlayer.stopSound(@NotNull String sound, @Nullable SoundCategory category) 停止播放指定的声音.voidPlayer.stopSound(@NotNull SoundCategory category) Stop the specified sound category from playing.voidPlayer.stopSound(@NotNull Sound sound, @Nullable SoundCategory category) 停止播放指定的声音.