Package org.bukkit.potion
Class PotionData
java.lang.Object
org.bukkit.potion.PotionData
Deprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor SummaryConstructorsConstructorDescriptionPotionData(PotionType type) Deprecated, for removal: This API element is subject to removal in a future version.PotionData(PotionType type, boolean extended, boolean upgraded) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a final PotionData object to contain information about a Potion
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.getType()Deprecated, for removal: This API element is subject to removal in a future version.Gets the type of the potion, Type matches up with each kind of craftable potioninthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if the potion is in an extended state.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if the potion is in an upgraded state.
- 
Constructor Details- 
PotionDataDeprecated, for removal: This API element is subject to removal in a future version.Instantiates a final PotionData object to contain information about a Potion- Parameters:
- type- the type of the Potion
- extended- whether the potion is extended PotionType#isExtendable() must be true
- upgraded- whether the potion is upgraded PotionType#isUpgradable() must be true
 
- 
PotionDataDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
getTypeDeprecated, for removal: This API element is subject to removal in a future version.Gets the type of the potion, Type matches up with each kind of craftable potion- Returns:
- the potion type
 
- 
isUpgradedpublic boolean isUpgraded()Deprecated, for removal: This API element is subject to removal in a future version.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.- Returns:
- true if the potion is upgraded;
 
- 
isExtendedpublic boolean isExtended()Deprecated, for removal: This API element is subject to removal in a future version.Checks if the potion is in an extended state. This refers to the extended duration potions- Returns:
- true if the potion is extended
 
- 
hashCodepublic int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
- 
equalsDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
PotionTypeuse them instead.