枚举的使用
org.bukkit.SoundCategory
使用SoundCategory的程序包
-
org.bukkit中SoundCategory的使用
返回SoundCategory的org.bukkit中的方法修饰符和类型方法说明static SoundCategory返回带有指定名称的该类型的枚举常量。static SoundCategory[]SoundCategory.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为SoundCategory的org.bukkit中的方法修饰符和类型方法说明voidWorld.playSound(Location location, String sound, SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World.voidWorld.playSound(Location location, Sound sound, SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World. -
org.bukkit.entity中SoundCategory的使用
参数类型为SoundCategory的org.bukkit.entity中的方法修饰符和类型方法说明voidPlayer.playSound(Location location, String sound, SoundCategory category, float volume, float pitch) Play a sound for a player at the location.voidPlayer.playSound(Location location, Sound sound, SoundCategory category, float volume, float pitch) Play a sound for a player at the location.voidPlayer.stopSound(String sound, SoundCategory category) Stop the specified sound from playing.voidPlayer.stopSound(Sound sound, SoundCategory category) Stop the specified sound from playing.