程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
限定符和类型 | 方法和说明 |
---|---|
static SoundCategory |
SoundCategory.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SoundCategory[] |
SoundCategory.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
void |
World.playSound(Location location,
Sound sound,
SoundCategory category,
float volume,
float pitch)
Play a Sound at the provided Location in the World.
|
void |
World.playSound(Location location,
java.lang.String sound,
SoundCategory category,
float volume,
float pitch)
Play a Sound at the provided Location in the World.
|
限定符和类型 | 方法和说明 |
---|---|
void |
Player.playSound(Location location,
Sound sound,
SoundCategory category,
float volume,
float pitch)
Play a sound for a player at the location.
|
void |
Player.playSound(Location location,
java.lang.String sound,
SoundCategory category,
float volume,
float pitch)
Play a sound for a player at the location.
|
void |
Player.stopSound(Sound sound,
SoundCategory category)
Stop the specified sound from playing.
|
void |
Player.stopSound(java.lang.String sound,
SoundCategory category)
Stop the specified sound from playing.
|