枚举的使用
org.bukkit.potion.PotionType
-
org.bukkit.potion中PotionType的使用
修饰符和类型方法说明static @Nullable PotionType
PotionType.getByEffect
(@Nullable PotionEffectType effectType) 已过时。有误导性Potion.getType()
已过时。返回此药水的种类.PotionData.getType()
获取此药水的种类, 对应每种可合成药水.static PotionType
返回带有指定名称的该类型的枚举常量。static PotionType[]
PotionType.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明PotionBrewer.getEffects
(@NotNull PotionType type, boolean upgraded, boolean extended) 返回从指定药水种类中可应用的效果的列表.void
Potion.setType
(@NotNull PotionType type) 已过时。设置药水的种类.限定符构造器说明Potion
(@NotNull PotionType type) 已过时。根据指定药水种类创建新药水.Potion
(@NotNull PotionType type, int level) 已过时。根据指定药水种类和级别创建新药水.Potion
(@NotNull PotionType type, int level, boolean splash) 已过时。赞成使用Potion(PotionType)
并调用Potion.splash()
.Potion
(@NotNull PotionType type, int level, boolean splash, boolean extended) 已过时。PotionData
(@NotNull PotionType type) PotionData
(@NotNull PotionType type, boolean extended, boolean upgraded) 实例化一个不可变的PotionData对象.