类 PotionData
java.lang.Object
org.bukkit.potion.PotionData
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
构造器概要
构造器说明PotionData
(@NotNull PotionType type) 已过时, 待删除: 此 API 元素将从以后的版本中删除。PotionData
(@NotNull PotionType type, boolean extended, boolean upgraded) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Instantiates a final PotionData object to contain information about a Potion -
方法概要
修饰符和类型方法说明boolean
已过时, 待删除: 此 API 元素将从以后的版本中删除。getType()
已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the type of the potion, Type matches up with each kind of craftable potionint
hashCode()
已过时, 待删除: 此 API 元素将从以后的版本中删除。boolean
已过时, 待删除: 此 API 元素将从以后的版本中删除。Checks if the potion is in an extended state.boolean
已过时, 待删除: 此 API 元素将从以后的版本中删除。Checks if the potion is in an upgraded state.
-
构造器详细资料
-
PotionData
已过时, 待删除: 此 API 元素将从以后的版本中删除。Instantiates a final PotionData object to contain information about a Potion- 参数:
type
- the type of the Potionextended
- whether the potion is extended PotionType#isExtendable() must be trueupgraded
- whether the potion is upgraded PotionType#isUpgradable() must be true
-
PotionData
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
方法详细资料
-
getType
已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the type of the potion, Type matches up with each kind of craftable potion- 返回:
- the potion type
-
isUpgraded
public boolean isUpgraded()已过时, 待删除: 此 API 元素将从以后的版本中删除。Checks if the potion is in an upgraded state. This refers to whether or not the potion is Tier 2, such as Potion of Fire Resistance II.- 返回:
- true if the potion is upgraded;
-
isExtended
public boolean isExtended()已过时, 待删除: 此 API 元素将从以后的版本中删除。Checks if the potion is in an extended state. This refers to the extended duration potions- 返回:
- true if the potion is extended
-
hashCode
public int hashCode()已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
equals
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
PotionType
use them instead.