枚举的使用
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) 在世界中指定实体的位置播放一个声音.voidWorld.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) 在世界中指定实体的位置播放一个声音.voidWorld.playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) 在世界中指定实体的位置播放一个声音.voidWorld.playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) 在世界中指定实体的位置播放一个声音.voidWorld.playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) 在世界中指定的位置播放一个声音.voidWorld.playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) 在世界中指定的位置播放一个声音.voidWorld.playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) 在世界中指定的位置播放一个声音.voidWorld.playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) 在世界中指定的位置播放一个声音. -
org.bukkit.entity中SoundCategory的使用
参数类型为SoundCategory的org.bukkit.entity中的方法修饰符和类型方法说明voidPlayer.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch) 在实体所在位置为玩家播放声音.voidPlayer.playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed) 在实体所在位置为玩家播放声音.voidPlayer.playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch) 在实体所在位置为玩家播放声音.voidPlayer.playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed) 在实体所在位置为玩家播放声音.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) 在指定位置为玩家播放声音.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) 在指定位置为玩家播放声音.voidPlayer.stopSound(@NotNull String sound, @Nullable SoundCategory category) 停止播放指定的声音.voidPlayer.stopSound(@NotNull SoundCategory category) 停止播放指定分类的声音.voidPlayer.stopSound(@NotNull Sound sound, @Nullable SoundCategory category) 停止播放指定的声音.