程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.block |
限定符和类型 | 方法和说明 |
---|---|
static Instrument |
Instrument.getByType(byte type)
已过时。
不安全的参数
|
static Instrument |
Instrument.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Instrument[] |
Instrument.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
NoteBlock.play(Instrument instrument,
Note note)
用任意乐器播放任意音符.
|
限定符和类型 | 方法和说明 |
---|---|
void |
Player.playNote(Location loc,
Instrument instrument,
Note note)
Play a note for a player at a location.
|
限定符和类型 | 方法和说明 |
---|---|
Instrument |
NotePlayEvent.getInstrument()
获取要播放的音符的乐器(
Instrument ). |
限定符和类型 | 方法和说明 |
---|---|
void |
NotePlayEvent.setInstrument(Instrument instrument)
设置播放音符用的乐器(
Instrument ). |
构造器和说明 |
---|
NotePlayEvent(Block block,
Instrument instrument,
Note note) |