程序包 | 说明 |
---|---|
org.bukkit.potion |
代表每种
药水 属性和操作的类的集合. |
限定符和类型 | 方法和说明 |
---|---|
static PotionType |
PotionType.getByDamageValue(int damage)
已过时。
Non-functional
|
static PotionType |
PotionType.getByEffect(PotionEffectType effectType)
已过时。
Misleading
|
PotionType |
PotionData.getType()
Gets the type of the potion, Type matches up with each kind of craftable
potion
|
PotionType |
Potion.getType()
已过时。
Returns the
PotionType of this potion. |
static PotionType |
PotionType.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PotionType[] |
PotionType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Collection<PotionEffect> |
PotionBrewer.getEffects(PotionType type,
boolean upgraded,
boolean extended)
Returns a collection of
PotionEffect that would be applied from
a potion with the given type. |
void |
Potion.setType(PotionType type)
已过时。
Sets the
PotionType 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 using
Potion.Potion(PotionType) with Potion.splash() . |
Potion(PotionType type,
int level,
boolean splash,
boolean extended)
已过时。
In favour of using
Potion.Potion(PotionType) with Potion.extend() and possibly Potion.splash() . |
PotionData(PotionType type) |
PotionData(PotionType type,
boolean extended,
boolean upgraded)
Instantiates a final PotionData object to contain information about a
Potion
|