Package | Description |
---|---|
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.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. |
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
PotionEffect of the specified type. |
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<PotionEffect> |
LivingEntity.getActivePotionEffects() |
Returns all currently active
PotionEffect s on the living
entity. |
java.util.List<PotionEffect> |
AreaEffectCloud.getCustomEffects() |
Gets an immutable list containing all custom potion effects applied to
this cloud.
|
java.util.List<PotionEffect> |
TippedArrow.getCustomEffects() |
Gets an immutable list containing all custom potion effects applied to
this arrow.
|
java.util.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 |
TippedArrow.addCustomEffect(PotionEffect effect,
boolean overwrite) |
Adds a custom potion effect to this arrow.
|
boolean |
LivingEntity.addPotionEffect(PotionEffect effect) |
Adds the given
PotionEffect to the living entity. |
boolean |
LivingEntity.addPotionEffect(PotionEffect effect,
boolean force) |
Adds the given
PotionEffect to the living entity. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
LivingEntity.addPotionEffects(java.util.Collection<PotionEffect> effects) |
Attempts to add all of the given
PotionEffect to the living
entity. |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<PotionEffect> |
PotionMeta.getCustomEffects() |
Gets an immutable list containing all custom potion effects applied to
this potion.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
PotionMeta.addCustomEffect(PotionEffect effect,
boolean overwrite) |
Adds a custom potion effect to this potion.
|
Modifier and Type | Method | Description |
---|---|---|
PotionEffect |
PotionBrewer.createEffect(PotionEffectType potion,
int duration,
int amplifier) |
Creates a
PotionEffect from the given PotionEffectType ,
applying duration modifiers and checks. |
PotionEffect |
PotionEffectType.createEffect(int duration,
int amplifier) |
Creates a PotionEffect from this PotionEffectType, applying duration
modifiers and checks.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<PotionEffect> |
Potion.getEffects() |
Deprecated.
|
java.util.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. |
java.util.Collection<PotionEffect> |
PotionBrewer.getEffectsFromDamage(int damage) |
Deprecated.
Non-Functional
|
Copyright © 2018. All rights reserved.