Package | Description |
---|---|
org.bukkit.potion |
Classes to represent various
potion
properties and manipulation. |
Modifier and Type | Method and Description |
---|---|
static PotionType |
PotionType.getByEffect(PotionEffectType effectType)
Deprecated.
Misleading
|
PotionType |
PotionData.getType()
Gets the type of the potion, Type matches up with each kind of craftable
potion
|
PotionType |
Potion.getType()
Deprecated.
Returns the
PotionType of this potion. |
static PotionType |
PotionType.valueOf(String name)
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 Type | Method and Description |
---|---|
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)
Deprecated.
Sets the
PotionType of this potion. |
Constructor and Description |
---|
Potion(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 using
Potion(PotionType) with Potion.splash() . |
Potion(PotionType type,
int level,
boolean splash,
boolean extended)
Deprecated.
In favour of using
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
|
Copyright © 2022. All rights reserved.