枚举的使用
org.bukkit.Instrument
使用Instrument的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
与部分方块或方块集有关的特定的 BlockData 类.
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.-
org.bukkit中Instrument的使用
返回Instrument的org.bukkit中的方法修饰符和类型方法说明static @Nullable InstrumentInstrument.getByType(byte type) 已过时。不安全的参数static Instrument返回带有指定名称的该类型的枚举常量。static Instrument[]Instrument.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为Instrument的org.bukkit中的方法 -
org.bukkit.block.data.type中Instrument的使用
参数类型为Instrument的org.bukkit.block.data.type中的方法 -
org.bukkit.entity中Instrument的使用
参数类型为Instrument的org.bukkit.entity中的方法 -
org.bukkit.event.block中Instrument的使用
参数类型为Instrument的org.bukkit.event.block中的方法修饰符和类型方法说明voidNotePlayEvent.setInstrument(@NotNull Instrument instrument) 已过时。在较新版本的Minecraft(1.13及以上)无效参数类型为Instrument的org.bukkit.event.block中的构造器