枚举的使用
org.bukkit.potion.PotionType
使用PotionType的程序包
-
org.bukkit.potion中PotionType的使用
返回PotionType的org.bukkit.potion中的方法修饰符和类型方法说明static PotionTypePotionType.getByDamageValue(int damage) 已过时。Non-functionalstatic PotionTypePotionType.getByEffect(PotionEffectType effectType) 已过时。MisleadingPotion.getType()已过时。Returns thePotionTypeof this potion.PotionData.getType()Gets the type of the potion, Type matches up with each kind of craftable potionstatic PotionType返回带有指定名称的该类型的枚举常量。static PotionType[]PotionType.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为PotionType的org.bukkit.potion中的方法修饰符和类型方法说明PotionBrewer.getEffects(PotionType type, boolean upgraded, boolean extended) Returns a collection ofPotionEffectthat would be applied from a potion with the given type.voidPotion.setType(PotionType type) 已过时。Sets thePotionTypeof this potion.参数类型为PotionType的org.bukkit.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