Uses of Class
org.bukkit.potion.PotionEffect
Packages that use 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
Methods in com.destroystokyo.paper.event.block that return PotionEffectModifier and TypeMethodDescriptionBeaconEffectEvent.getEffect()Gets the potion effect being applied.Methods in com.destroystokyo.paper.event.block with parameters of type PotionEffectModifier and TypeMethodDescriptionvoidBeaconEffectEvent.setEffect(PotionEffect effect) Sets the potion effect that will be applied.Constructors in com.destroystokyo.paper.event.block with parameters of type PotionEffectModifierConstructorDescriptionBeaconEffectEvent(Block beacon, PotionEffect effect, Player player, boolean primary) -
Uses of PotionEffect in io.papermc.paper.datacomponent.item
Methods in io.papermc.paper.datacomponent.item that return types with arguments of type PotionEffectModifier and TypeMethodDescription@Unmodifiable List<PotionEffect> PotionContents.allEffects()All effects that this component applies.@Unmodifiable List<PotionEffect> PotionContents.customEffects()Additional list of effect instances that this item should apply.Methods in io.papermc.paper.datacomponent.item with parameters of type PotionEffectModifier and TypeMethodDescriptionPotionContents.Builder.addCustomEffect(PotionEffect effect) Adds a custom effect instance to this builder.Method parameters in io.papermc.paper.datacomponent.item with type arguments of type PotionEffectModifier and TypeMethodDescriptionPotionContents.Builder.addCustomEffects(List<PotionEffect> effects) Adds custom effect instances to this builder. -
Uses of PotionEffect in io.papermc.paper.datacomponent.item.consumable
Methods in io.papermc.paper.datacomponent.item.consumable that return types with arguments of type PotionEffectModifier and TypeMethodDescriptionConsumeEffect.ApplyStatusEffects.effects()Potion effect instances to grant.Method parameters in io.papermc.paper.datacomponent.item.consumable with type arguments of type PotionEffectModifier and TypeMethodDescriptionConsumeEffect.applyStatusEffects(List<PotionEffect> effects, float probability) Creates a consume effect that gives potion effects on consumption. -
Uses of PotionEffect in org.bukkit.block
Methods in org.bukkit.block that return PotionEffectModifier and TypeMethodDescription@Nullable PotionEffectBeacon.getPrimaryEffect()Returns the primary effect set on the beacon@Nullable PotionEffectBeacon.getSecondaryEffect()Returns the secondary effect set on the beacon. -
Uses of PotionEffect in org.bukkit.entity
Methods in org.bukkit.entity that return PotionEffectModifier and TypeMethodDescription@Nullable PotionEffectLivingEntity.getPotionEffect(@NotNull PotionEffectType type) Returns the activePotionEffectof the specified type.Methods in org.bukkit.entity that return types with arguments of type PotionEffectModifier and TypeMethodDescription@NotNull Collection<PotionEffect> LivingEntity.getActivePotionEffects()Returns all currently activePotionEffects on the living entity.@NotNull List<PotionEffect> AreaEffectCloud.getCustomEffects()Gets an immutable list containing all custom potion effects applied to this cloud.@NotNull List<PotionEffect> Arrow.getCustomEffects()Gets an immutable list containing all custom potion effects applied to this arrow.@NotNull Collection<PotionEffect> ThrownPotion.getEffects()Returns the effects that are applied by this potion.@NotNull List<PotionEffect> MushroomCow.getEffectsForNextStew()Gets an immutable list containing all custom potion effects applied to the next suspicious stew received from milking thisMushroomCow.Methods in org.bukkit.entity with parameters of type PotionEffectModifier and TypeMethodDescriptionbooleanAreaEffectCloud.addCustomEffect(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this cloud.booleanArrow.addCustomEffect(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this arrow.booleanMushroomCow.addEffectToNextStew(@NotNull PotionEffect effect, boolean overwrite) Deprecated, for removal: This API element is subject to removal in a future version.default booleanLivingEntity.addPotionEffect(@NotNull PotionEffect effect) Adds the givenPotionEffectto the living entity.booleanLivingEntity.addPotionEffect(@NotNull PotionEffect effect, boolean force) Deprecated.no need to force since multiple effects of the same type are now supported.voidPlayer.sendPotionEffectChange(LivingEntity entity, PotionEffect effect) Change a potion effect for the target entity.Method parameters in org.bukkit.entity with type arguments of type PotionEffectModifier and TypeMethodDescriptionbooleanLivingEntity.addPotionEffects(@NotNull Collection<PotionEffect> effects) Attempts to add all of the givenPotionEffectto the living entity. -
Uses of PotionEffect in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return PotionEffectModifier and TypeMethodDescription@Nullable PotionEffectEntityPotionEffectEvent.getNewEffect()Gets new potion effect of the changed type to be applied.@Nullable PotionEffectEntityPotionEffectEvent.getOldEffect()Gets the old potion effect of the changed type, which will be removed.Constructors in org.bukkit.event.entity with parameters of type PotionEffectModifierConstructorDescriptionEntityPotionEffectEvent(@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
Methods in org.bukkit.inventory.meta that return types with arguments of type PotionEffectModifier and TypeMethodDescription@NotNull @Unmodifiable List<PotionEffect> PotionMeta.getAllEffects()All effects that this potion meta holds.@NotNull List<PotionEffect> PotionMeta.getCustomEffects()Gets an immutable list containing all custom potion effects applied to this potion.@NotNull List<PotionEffect> SuspiciousStewMeta.getCustomEffects()Gets an immutable list containing all custom potion effects applied to this suspicious stew.Methods in org.bukkit.inventory.meta with parameters of type PotionEffectModifier and TypeMethodDescriptionbooleanPotionMeta.addCustomEffect(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this potion.booleanSuspiciousStewMeta.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
Methods in org.bukkit.potion that return PotionEffectModifier and TypeMethodDescriptiondefault @NotNull PotionEffectPotionBrewer.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 PotionEffectPotionEffectType.createEffect(int duration, int amplifier) Creates a PotionEffect from this PotionEffectType, applying duration modifiers and checks.@Nullable PotionEffectPotionEffect.getHiddenPotionEffect()Returns the PotionEffect that will become active after the current PotionEffect has run out.@NotNull PotionEffectPotionEffect.withAmbient(boolean ambient) @NotNull PotionEffectPotionEffect.withAmplifier(int amplifier) @NotNull PotionEffectPotionEffect.withDuration(int duration) @NotNull PotionEffectPotionEffect.withIcon(boolean icon) @NotNull PotionEffectPotionEffect.withParticles(boolean particles) @NotNull PotionEffectPotionEffect.withType(@NotNull PotionEffectType type) Methods in org.bukkit.potion that return types with arguments of type PotionEffectModifier and TypeMethodDescription@NotNull Collection<PotionEffect> PotionBrewer.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 ownPotionTypeusePotionType.getPotionEffects()insteaddefault @NotNull Collection<PotionEffect> PotionBrewer.getEffectsFromDamage(int damage) Deprecated, for removal: This API element is subject to removal in a future version.Non-Functional@NotNull List<PotionEffect> PotionType.getPotionEffects()PotionType.InternalPotionData.getPotionEffects()Deprecated, for removal: This API element is subject to removal in a future version.Methods in org.bukkit.potion with parameters of type PotionEffectModifier and TypeMethodDescriptionbooleanPotionEffect.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.