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
potion
properties and manipulation. |
Modifier and Type | Method and Description |
---|---|
@NotNull PotionEffect |
BeaconEffectEvent.getEffect()
Gets the potion effect being applied.
|
Modifier and Type | Method and Description |
---|---|
void |
BeaconEffectEvent.setEffect(@NotNull PotionEffect effect)
Sets the potion effect that will be applied.
|
Constructor and Description |
---|
BeaconEffectEvent(@NotNull Block block,
@NotNull PotionEffect effect,
@NotNull Player player,
boolean primary) |
Modifier and Type | Method and Description |
---|---|
@Nullable PotionEffect |
Beacon.getPrimaryEffect()
Returns the primary effect set on the beacon
|
@Nullable PotionEffect |
Beacon.getSecondaryEffect()
Returns the secondary effect set on the beacon.
|
Modifier and Type | Method and Description |
---|---|
@Nullable PotionEffect |
LivingEntity.getPotionEffect(@NotNull PotionEffectType type)
Returns the active
PotionEffect of the specified type. |
Modifier and Type | Method and Description |
---|---|
boolean |
Arrow.addCustomEffect(@NotNull PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this arrow.
|
boolean |
AreaEffectCloud.addCustomEffect(@NotNull PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this cloud.
|
boolean |
LivingEntity.addPotionEffect(@NotNull PotionEffect effect)
Adds the given
PotionEffect to the living entity. |
boolean |
LivingEntity.addPotionEffect(@NotNull PotionEffect effect,
boolean force)
Deprecated.
no need to force since multiple effects of the same type are
now supported.
|
Modifier and Type | Method and Description |
---|---|
@Nullable PotionEffect |
EntityPotionEffectEvent.getNewEffect()
Gets new potion effect of the changed type to be applied.
|
@Nullable PotionEffect |
EntityPotionEffectEvent.getOldEffect()
Gets the old potion effect of the changed type, which will be removed.
|
Constructor and Description |
---|
EntityPotionEffectEvent(@NotNull LivingEntity livingEntity,
@Nullable PotionEffect oldEffect,
@Nullable PotionEffect newEffect,
@NotNull EntityPotionEffectEvent.Cause cause,
@NotNull EntityPotionEffectEvent.Action action,
boolean override) |
EntityPotionEffectEvent(@NotNull LivingEntity livingEntity,
@Nullable PotionEffect oldEffect,
@Nullable PotionEffect newEffect,
@NotNull EntityPotionEffectEvent.Cause cause,
@NotNull EntityPotionEffectEvent.Action action,
boolean override) |
Modifier and Type | Method and Description |
---|---|
boolean |
PotionMeta.addCustomEffect(@NotNull PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this potion.
|
boolean |
SuspiciousStewMeta.addCustomEffect(@NotNull PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this suspicious stew.
|
Modifier and Type | Method and Description |
---|---|
@NotNull PotionEffect |
PotionEffectType.createEffect(int duration,
int amplifier)
Creates a PotionEffect from this PotionEffectType, applying duration
modifiers and checks.
|
@NotNull PotionEffect |
PotionBrewer.createEffect(@NotNull PotionEffectType potion,
int duration,
int amplifier)
Creates a
PotionEffect from the given PotionEffectType ,
applying duration modifiers and checks. |
@NotNull PotionEffect |
PotionEffect.withAmbient(boolean ambient) |
@NotNull PotionEffect |
PotionEffect.withAmplifier(int amplifier) |
@NotNull PotionEffect |
PotionEffect.withDuration(int duration) |
@NotNull PotionEffect |
PotionEffect.withIcon(boolean icon) |
@NotNull PotionEffect |
PotionEffect.withParticles(boolean particles) |
@NotNull PotionEffect |
PotionEffect.withType(@NotNull PotionEffectType type) |
Copyright © 2021. All rights reserved.