枚举的使用
org.bukkit.potion.PotionType
-
org.bukkit.potion中PotionType的使用
修饰符和类型方法说明static PotionType
PotionType.getByDamageValue
(int damage) 已过时。Non-functionalstatic PotionType
PotionType.getByEffect
(PotionEffectType effectType) 已过时。MisleadingPotion.getType()
已过时。Returns thePotionType
of this potion.PotionData.getType()
Gets the type of the potion, Type matches up with each kind of craftable potionstatic PotionType
返回带有指定名称的该类型的枚举常量。static PotionType[]
PotionType.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明PotionBrewer.getEffects
(PotionType type, boolean upgraded, boolean extended) Returns a collection ofPotionEffect
that would be applied from a potion with the given type.void
Potion.setType
(PotionType type) 已过时。Sets thePotionType
of this potion.限定符构造器说明Potion
(PotionType type) 已过时。Construct a new potion of the given type.Potion
(PotionType type, int level) 已过时。Create a new potion of the given type and level.Potion
(PotionType type, int level, boolean splash) 已过时。In favour of usingPotion(PotionType)
withPotion.splash()
.Potion
(PotionType type, int level, boolean splash, boolean extended) 已过时。PotionData
(PotionType type) PotionData
(PotionType type, boolean extended, boolean upgraded) Instantiates a final PotionData object to contain information about a Potion