Uses of Class
org.bukkit.potion.PotionEffect
Package
Description
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes to represent various
potion
properties and manipulation.-
Uses of PotionEffect in com.destroystokyo.paper.event.block
Modifier and TypeMethodDescriptionBeaconEffectEvent.getEffect()
Gets the potion effect being applied.Modifier and TypeMethodDescriptionvoid
BeaconEffectEvent.setEffect
(PotionEffect effect) Sets the potion effect that will be applied.ModifierConstructorDescriptionBeaconEffectEvent
(Block block, PotionEffect effect, Player player, boolean primary) -
Uses of PotionEffect in org.bukkit.block
Modifier and TypeMethodDescriptionBeacon.getPrimaryEffect()
Returns the primary effect set on the beaconBeacon.getSecondaryEffect()
Returns the secondary effect set on the beacon. -
Uses of PotionEffect in org.bukkit.entity
Modifier and TypeMethodDescriptionLivingEntity.getPotionEffect
(@NotNull PotionEffectType type) Returns the activePotionEffect
of the specified type.Modifier and TypeMethodDescriptionLivingEntity.getActivePotionEffects()
Returns all currently activePotionEffect
s on the living entity.AreaEffectCloud.getCustomEffects()
Gets an immutable list containing all custom potion effects applied to this cloud.Arrow.getCustomEffects()
Gets an immutable list containing all custom potion effects applied to this arrow.ThrownPotion.getEffects()
Returns the effects that are applied by this potion.MushroomCow.getEffectsForNextStew()
Gets an immutable list containing all custom potion effects applied to the next suspicious stew received from milking thisMushroomCow
.Modifier and TypeMethodDescriptionboolean
AreaEffectCloud.addCustomEffect
(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this cloud.boolean
Arrow.addCustomEffect
(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this arrow.boolean
MushroomCow.addEffectToNextStew
(@NotNull PotionEffect effect, boolean overwrite) Deprecated, for removal: This API element is subject to removal in a future version.boolean
LivingEntity.addPotionEffect
(@NotNull PotionEffect effect) Adds the givenPotionEffect
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.void
Player.sendPotionEffectChange
(@NotNull LivingEntity entity, @NotNull PotionEffect effect) Change a potion effect for the target entity.Modifier and TypeMethodDescriptionboolean
LivingEntity.addPotionEffects
(@NotNull Collection<PotionEffect> effects) Attempts to add all of the givenPotionEffect
to the living entity. -
Uses of PotionEffect in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityPotionEffectEvent.getNewEffect()
Gets new potion effect of the changed type to be applied.EntityPotionEffectEvent.getOldEffect()
Gets the old potion effect of the changed type, which will be removed.ModifierConstructorDescriptionEntityPotionEffectEvent
(@NotNull LivingEntity livingEntity, @Nullable PotionEffect oldEffect, @Nullable PotionEffect newEffect, @NotNull EntityPotionEffectEvent.Cause cause, @NotNull EntityPotionEffectEvent.Action action, boolean override) -
Uses of PotionEffect in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionPotionMeta.getCustomEffects()
Gets an immutable list containing all custom potion effects applied to this potion.SuspiciousStewMeta.getCustomEffects()
Gets an immutable list containing all custom potion effects applied to this suspicious stew.Modifier and TypeMethodDescriptionboolean
PotionMeta.addCustomEffect
(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this potion.boolean
SuspiciousStewMeta.addCustomEffect
(@NotNull PotionEffect effect, boolean overwrite) Deprecated.useSuspiciousStewMeta.addCustomEffect(io.papermc.paper.potion.SuspiciousEffectEntry, boolean)
as PotionEffect suggests that all attributes are used. -
Uses of PotionEffect in org.bukkit.potion
Modifier and TypeMethodDescriptiondefault @NotNull PotionEffect
PotionBrewer.createEffect
(@NotNull PotionEffectType potion, int duration, int amplifier) Deprecated, for removal: This API element is subject to removal in a future version.usePotionEffectType.createEffect(int, int)
instead.abstract @NotNull PotionEffect
PotionEffectType.createEffect
(int duration, int amplifier) Creates a PotionEffect from this PotionEffectType, applying duration modifiers and checks.PotionEffect.getHiddenPotionEffect()
Returns the PotionEffect that will become active after the current PotionEffect has run out.PotionEffect.withAmbient
(boolean ambient) PotionEffect.withAmplifier
(int amplifier) PotionEffect.withDuration
(int duration) PotionEffect.withIcon
(boolean icon) PotionEffect.withParticles
(boolean particles) PotionEffect.withType
(@NotNull PotionEffectType type) Modifier and TypeMethodDescriptionPotionBrewer.getEffects
(@NotNull PotionType type, boolean upgraded, boolean extended) Deprecated, for removal: This API element is subject to removal in a future version.Upgraded / extended potions are now their ownPotionType
usePotionType.getPotionEffects()
insteaddefault @NotNull Collection
<PotionEffect> PotionBrewer.getEffectsFromDamage
(int damage) Deprecated, for removal: This API element is subject to removal in a future version.Non-FunctionalPotionType.getPotionEffects()
PotionType.InternalPotionData.getPotionEffects()
Deprecated.Modifier and TypeMethodDescriptionboolean
PotionEffect.isShorterThan
(@NotNull PotionEffect other) Returns whether or not this potion effect has a shorter duration than the provided potion effect.
MushroomCow.addEffectToNextStew(io.papermc.paper.potion.SuspiciousEffectEntry, boolean)
as PotionEffect suggests that all attributes are used.