Uses of Enum Class
org.bukkit.potion.PotionType
Packages that use PotionType
-
Uses of PotionType in org.bukkit.potion
Methods in org.bukkit.potion that return PotionTypeModifier and TypeMethodDescriptionstatic @Nullable PotionType
PotionType.getByEffect
(@Nullable PotionEffectType effectType) Deprecated.MisleadingPotion.getType()
Deprecated.Returns thePotionType
of this potion.PotionData.getType()
Gets the type of the potion, Type matches up with each kind of craftable potionstatic PotionType
Returns the enum constant of this class with the specified name.static PotionType[]
PotionType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.bukkit.potion with parameters of type PotionTypeModifier and TypeMethodDescriptionPotionBrewer.getEffects
(@NotNull PotionType type, boolean upgraded, boolean extended) Returns a collection ofPotionEffect
that would be applied from a potion with the given type.void
Potion.setType
(@NotNull PotionType type) Deprecated.Sets thePotionType
of this potion.Constructors in org.bukkit.potion with parameters of type PotionTypeModifierConstructorDescriptionPotion
(@NotNull PotionType type) Deprecated.Construct a new potion of the given type.Potion
(@NotNull PotionType type, int level) Deprecated.Create a new potion of the given type and level.Potion
(@NotNull PotionType type, int level, boolean splash) Deprecated.In favour of usingPotion(PotionType)
withPotion.splash()
.Potion
(@NotNull PotionType type, int level, boolean splash, boolean extended) Deprecated.PotionData
(@NotNull PotionType type) PotionData
(@NotNull PotionType type, boolean extended, boolean upgraded) Instantiates a final PotionData object to contain information about a Potion