| Package | Description | 
|---|---|
| com.destroystokyo.paper.event.block | |
| org.bukkit.block | Classes used to manipulate the voxels in a  world,
 including special states. | 
| org.bukkit.entity | Interfaces for non-voxel objects that can exist in a  world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.entity | |
| 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  potionproperties and manipulation. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| PotionEffect | BeaconEffectEvent. getEffect() | Gets the potion effect being applied. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | BeaconEffectEvent. setEffect(PotionEffect effect) | Sets the potion effect that will be applied. | 
| Constructor | Description | 
|---|---|
| BeaconEffectEvent(Block block,
                 PotionEffect effect,
                 Player player,
                 boolean primary) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| PotionEffect | Beacon. getPrimaryEffect() | Returns the primary effect set on the beacon | 
| PotionEffect | Beacon. getSecondaryEffect() | Returns the secondary effect set on the beacon. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| PotionEffect | LivingEntity. getPotionEffect(PotionEffectType type) | Returns the active  PotionEffectof the specified type. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Collection<PotionEffect> | LivingEntity. getActivePotionEffects() | Returns all currently active  PotionEffects on the living
 entity. | 
| List<PotionEffect> | AreaEffectCloud. getCustomEffects() | Gets an immutable list containing all custom potion effects applied to
 this cloud. | 
| List<PotionEffect> | Arrow. getCustomEffects() | Gets an immutable list containing all custom potion effects applied to
 this arrow. | 
| Collection<PotionEffect> | ThrownPotion. getEffects() | Returns the effects that are applied by this potion. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | AreaEffectCloud. addCustomEffect(PotionEffect effect,
               boolean overwrite) | Adds a custom potion effect to this cloud. | 
| boolean | Arrow. addCustomEffect(PotionEffect effect,
               boolean overwrite) | Adds a custom potion effect to this arrow. | 
| boolean | LivingEntity. addPotionEffect(PotionEffect effect) | Adds the given  PotionEffectto the living entity. | 
| boolean | LivingEntity. addPotionEffect(PotionEffect effect,
               boolean force) | Adds the given  PotionEffectto the living entity. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | LivingEntity. addPotionEffects(Collection<PotionEffect> effects) | Attempts to add all of the given  PotionEffectto the living
 entity. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| PotionEffect | EntityPotionEffectEvent. getNewEffect() | Gets new potion effect of the changed type to be applied. | 
| PotionEffect | EntityPotionEffectEvent. getOldEffect() | Gets the old potion effect of the changed type, which will be removed. | 
| Constructor | Description | 
|---|---|
| EntityPotionEffectEvent(LivingEntity livingEntity,
                       PotionEffect oldEffect,
                       PotionEffect newEffect,
                       EntityPotionEffectEvent.Cause cause,
                       EntityPotionEffectEvent.Action action,
                       boolean override) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| List<PotionEffect> | PotionMeta. getCustomEffects() | Gets an immutable list containing all custom potion effects applied to
 this potion. | 
| List<PotionEffect> | SuspiciousStewMeta. getCustomEffects() | Gets an immutable list containing all custom potion effects applied to
 this suspicious stew. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | PotionMeta. addCustomEffect(PotionEffect effect,
               boolean overwrite) | Adds a custom potion effect to this potion. | 
| boolean | SuspiciousStewMeta. addCustomEffect(PotionEffect effect,
               boolean overwrite) | Adds a custom potion effect to this suspicious stew. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| PotionEffect | PotionBrewer. createEffect(PotionEffectType potion,
            int duration,
            int amplifier) | Creates a  PotionEffectfrom the givenPotionEffectType,
 applying duration modifiers and checks. | 
| PotionEffect | PotionEffectType. createEffect(int duration,
            int amplifier) | Creates a PotionEffect from this PotionEffectType, applying duration
 modifiers and checks. | 
| PotionEffect | PotionEffect. withAmbient(boolean ambient) | |
| PotionEffect | PotionEffect. withAmplifier(int amplifier) | |
| PotionEffect | PotionEffect. withDuration(int duration) | |
| PotionEffect | PotionEffect. withIcon(boolean icon) | |
| PotionEffect | PotionEffect. withParticles(boolean particles) | |
| PotionEffect | PotionEffect. withType(PotionEffectType type) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Collection<PotionEffect> | Potion. getEffects() | Deprecated. | 
| Collection<PotionEffect> | PotionBrewer. getEffects(PotionType type,
          boolean upgraded,
          boolean extended) | Returns a collection of  PotionEffectthat would be applied from
 a potion with the given type. | 
| Collection<PotionEffect> | PotionBrewer. getEffectsFromDamage(int damage) | Deprecated.
 Non-Functional | 
Copyright © 2020. All rights reserved.