|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use PotionEffect | |
|---|---|
| org.bukkit.entity | Interfaces for non-voxel objects that can exist in a world, including all players, monsters, projectiles, etc. |
| org.bukkit.inventory.meta | The interfaces used when manipulating extra data can can be stored inside
item stacks. |
| org.bukkit.potion | Classes to represent various potion
properties and manipulation. |
| Uses of PotionEffect in org.bukkit.entity |
|---|
| Methods in org.bukkit.entity that return types with arguments of type PotionEffect | |
|---|---|
Collection<PotionEffect> |
LivingEntity.getActivePotionEffects()
Returns all currently active PotionEffects on this entity. |
Collection<PotionEffect> |
ThrownPotion.getEffects()
Returns the effects that are applied by this potion. |
| Methods in org.bukkit.entity with parameters of type PotionEffect | |
|---|---|
boolean |
LivingEntity.addPotionEffect(PotionEffect effect)
Adds the given PotionEffect to this entity. |
boolean |
LivingEntity.addPotionEffect(PotionEffect effect,
boolean force)
Adds the given PotionEffect to this entity. |
| Method parameters in org.bukkit.entity with type arguments of type PotionEffect | |
|---|---|
boolean |
LivingEntity.addPotionEffects(Collection<PotionEffect> effects)
Attempts to add all of the given PotionEffect to this entity. |
| Uses of PotionEffect in org.bukkit.inventory.meta |
|---|
| Methods in org.bukkit.inventory.meta that return types with arguments of type PotionEffect | |
|---|---|
List<PotionEffect> |
PotionMeta.getCustomEffects()
Gets an immutable list containing all custom potion effects applied to this potion. |
| Methods in org.bukkit.inventory.meta with parameters of type PotionEffect | |
|---|---|
boolean |
PotionMeta.addCustomEffect(PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this potion. |
| Uses of PotionEffect in org.bukkit.potion |
|---|
| Methods in org.bukkit.potion that return PotionEffect | |
|---|---|
PotionEffect |
PotionEffectType.createEffect(int duration,
int amplifier)
Creates a PotionEffect from this PotionEffectType, applying duration modifiers and checks. |
PotionEffect |
PotionBrewer.createEffect(PotionEffectType potion,
int duration,
int amplifier)
Creates a PotionEffect from the given PotionEffectType,
applying duration modifiers and checks. |
| Methods in org.bukkit.potion that return types with arguments of type PotionEffect | |
|---|---|
Collection<PotionEffect> |
Potion.getEffects()
Returns a collection of PotionEffects that this Potion
would confer upon a LivingEntity. |
Collection<PotionEffect> |
PotionBrewer.getEffectsFromDamage(int damage)
Returns a collection of PotionEffect that would be applied from a
potion with the given data value. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||