Uses of Enum
org.bukkit.potion.PotionType
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes to represent various
potion
properties and manipulation.-
Uses of PotionType in org.bukkit
Modifier and TypeFieldDescriptionstatic final Registry<PotionType>
Registry.POTION
Server potions. -
Uses of PotionType in org.bukkit.entity
Modifier and TypeMethodDescriptionAreaEffectCloud.getBasePotionType()
Returns the potion type about the base potionArrow.getBasePotionType()
Returns the potion type about the base potionModifier and TypeMethodDescriptionvoid
AreaEffectCloud.setBasePotionType
(PotionType type) Sets the underlying potion typevoid
Arrow.setBasePotionType
(PotionType type) Sets the underlying potion type -
Uses of PotionType in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionPotionMeta.getBasePotionType()
Returns the potion type about the base potionModifier and TypeMethodDescriptionvoid
PotionMeta.setBasePotionType
(PotionType type) Sets the underlying potion type -
Uses of PotionType in org.bukkit.potion
Modifier and TypeMethodDescriptionstatic PotionType
PotionType.getByEffect
(PotionEffectType effectType) Deprecated.MisleadingPotion.getType()
Deprecated.Returns thePotionType
of this potion.PotionData.getType()
Deprecated.Gets the type of the potion, Type matches up with each kind of craftable potionstatic PotionType
Returns the enum constant of this type with the specified name.static PotionType[]
PotionType.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionPotionBrewer.getEffects
(PotionType type, boolean upgraded, boolean extended) Deprecated.Upgraded / extended potions are now their ownPotionType
usegetPotionEffects()
insteadvoid
Potion.setType
(PotionType type) Deprecated.Sets thePotionType
of this potion.ModifierConstructorDescriptionPotion
(PotionType type) Deprecated.Construct a new potion of the given type.Potion
(PotionType type, int level) Deprecated.Create a new potion of the given type and level.Potion
(PotionType type, int level, boolean splash) Deprecated.In favour of usingPotion(PotionType)
withPotion.splash()
.Potion
(PotionType type, int level, boolean splash, boolean extended) Deprecated.PotionData
(PotionType type) Deprecated.PotionData
(PotionType type, boolean extended, boolean upgraded) Deprecated.Instantiates a final PotionData object to contain information about a Potion