Uses of Class
org.bukkit.potion.PotionEffectType
Package
Description
The root package of the Bukkit API, contains generalized API classes.
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
.Package for
InventoryView
child interfaces that
house further usability for InventoryView
.Classes to represent various
potion
properties and manipulation.-
Uses of PotionEffectType in io.papermc.paper.datacomponent.item.consumable
Modifier and TypeMethodDescriptionConsumeEffect.RemoveStatusEffects.removeEffects()
Potion effects to removeModifier and TypeMethodDescriptionConsumeEffect.removeEffects
(RegistryKeySet<PotionEffectType> key) Creates a consume effect that gives status effects on consumption. -
Uses of PotionEffectType in io.papermc.paper.event.player
Modifier and TypeMethodDescriptionPlayerChangeBeaconEffectEvent.getPrimary()
PlayerChangeBeaconEffectEvent.getSecondary()
Modifier and TypeMethodDescriptionvoid
PlayerChangeBeaconEffectEvent.setPrimary
(@Nullable PotionEffectType primary) Sets the primary effectvoid
PlayerChangeBeaconEffectEvent.setSecondary
(@Nullable PotionEffectType secondary) Sets the secondary effectModifierConstructorDescriptionPlayerChangeBeaconEffectEvent
(Player player, @Nullable PotionEffectType primary, @Nullable PotionEffectType secondary, Block beacon) -
Uses of PotionEffectType in io.papermc.paper.potion
Modifier and TypeMethodDescriptionstatic SuspiciousEffectEntry
SuspiciousEffectEntry.create
(PotionEffectType effectType, int duration) Creates a new instance of SuspiciousEffectEntry. -
Uses of PotionEffectType in io.papermc.paper.registry
Modifier and TypeFieldDescriptionstatic final RegistryKey
<PotionEffectType> RegistryKey.MOB_EFFECT
Built-in registry for potion effect types (mob effects). -
Uses of PotionEffectType in io.papermc.paper.registry.keys
Modifier and TypeFieldDescriptionstatic final TypedKey
<PotionEffectType> MobEffectKeys.ABSORPTION
minecraft:absorption
static final TypedKey
<PotionEffectType> MobEffectKeys.BAD_OMEN
minecraft:bad_omen
static final TypedKey
<PotionEffectType> MobEffectKeys.BLINDNESS
minecraft:blindness
static final TypedKey
<PotionEffectType> MobEffectKeys.CONDUIT_POWER
minecraft:conduit_power
static final TypedKey
<PotionEffectType> MobEffectKeys.DARKNESS
minecraft:darkness
static final TypedKey
<PotionEffectType> MobEffectKeys.DOLPHINS_GRACE
minecraft:dolphins_grace
static final TypedKey
<PotionEffectType> MobEffectKeys.FIRE_RESISTANCE
minecraft:fire_resistance
static final TypedKey
<PotionEffectType> MobEffectKeys.GLOWING
minecraft:glowing
static final TypedKey
<PotionEffectType> MobEffectKeys.HASTE
minecraft:haste
static final TypedKey
<PotionEffectType> MobEffectKeys.HEALTH_BOOST
minecraft:health_boost
static final TypedKey
<PotionEffectType> MobEffectKeys.HERO_OF_THE_VILLAGE
minecraft:hero_of_the_village
static final TypedKey
<PotionEffectType> MobEffectKeys.HUNGER
minecraft:hunger
static final TypedKey
<PotionEffectType> MobEffectKeys.INFESTED
minecraft:infested
static final TypedKey
<PotionEffectType> MobEffectKeys.INSTANT_DAMAGE
minecraft:instant_damage
static final TypedKey
<PotionEffectType> MobEffectKeys.INSTANT_HEALTH
minecraft:instant_health
static final TypedKey
<PotionEffectType> MobEffectKeys.INVISIBILITY
minecraft:invisibility
static final TypedKey
<PotionEffectType> MobEffectKeys.JUMP_BOOST
minecraft:jump_boost
static final TypedKey
<PotionEffectType> MobEffectKeys.LEVITATION
minecraft:levitation
static final TypedKey
<PotionEffectType> MobEffectKeys.LUCK
minecraft:luck
static final TypedKey
<PotionEffectType> MobEffectKeys.MINING_FATIGUE
minecraft:mining_fatigue
static final TypedKey
<PotionEffectType> MobEffectKeys.NAUSEA
minecraft:nausea
static final TypedKey
<PotionEffectType> MobEffectKeys.NIGHT_VISION
minecraft:night_vision
static final TypedKey
<PotionEffectType> MobEffectKeys.OOZING
minecraft:oozing
static final TypedKey
<PotionEffectType> MobEffectKeys.POISON
minecraft:poison
static final TypedKey
<PotionEffectType> MobEffectKeys.RAID_OMEN
minecraft:raid_omen
static final TypedKey
<PotionEffectType> MobEffectKeys.REGENERATION
minecraft:regeneration
static final TypedKey
<PotionEffectType> MobEffectKeys.RESISTANCE
minecraft:resistance
static final TypedKey
<PotionEffectType> MobEffectKeys.SATURATION
minecraft:saturation
static final TypedKey
<PotionEffectType> MobEffectKeys.SLOW_FALLING
minecraft:slow_falling
static final TypedKey
<PotionEffectType> MobEffectKeys.SLOWNESS
minecraft:slowness
static final TypedKey
<PotionEffectType> MobEffectKeys.SPEED
minecraft:speed
static final TypedKey
<PotionEffectType> MobEffectKeys.STRENGTH
minecraft:strength
static final TypedKey
<PotionEffectType> MobEffectKeys.TRIAL_OMEN
minecraft:trial_omen
static final TypedKey
<PotionEffectType> MobEffectKeys.UNLUCK
minecraft:unluck
static final TypedKey
<PotionEffectType> MobEffectKeys.WATER_BREATHING
minecraft:water_breathing
static final TypedKey
<PotionEffectType> MobEffectKeys.WEAKNESS
minecraft:weakness
static final TypedKey
<PotionEffectType> MobEffectKeys.WEAVING
minecraft:weaving
static final TypedKey
<PotionEffectType> MobEffectKeys.WIND_CHARGED
minecraft:wind_charged
static final TypedKey
<PotionEffectType> MobEffectKeys.WITHER
minecraft:wither
-
Uses of PotionEffectType in org.bukkit
Modifier and TypeFieldDescriptionstatic final Registry
<PotionEffectType> Registry.EFFECT
Server mob effects.static final Registry
<PotionEffectType> Registry.POTION_EFFECT_TYPE
Potion effect types. -
Uses of PotionEffectType in org.bukkit.block
Modifier and TypeMethodDescriptionvoid
Beacon.setPrimaryEffect
(@Nullable PotionEffectType effect) Set the primary effect on this beacon, or null to clear.void
Beacon.setSecondaryEffect
(@Nullable PotionEffectType effect) Set the secondary effect on this beacon, or null to clear. -
Uses of PotionEffectType in org.bukkit.entity
Modifier and TypeMethodDescriptiondefault PotionEffectType
MushroomCow.getStewEffectType()
Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionLivingEntity.getPotionEffect
(@NotNull PotionEffectType type) Returns the activePotionEffect
of the specified type.boolean
AreaEffectCloud.hasCustomEffect
(@Nullable PotionEffectType type) Checks for a specific custom potion effect type on this cloud.boolean
Arrow.hasCustomEffect
(@Nullable PotionEffectType type) Checks for a specific custom potion effect type on this arrow.boolean
MushroomCow.hasEffectForNextStew
(@NotNull PotionEffectType type) Checks for a specific custom potion effect type to be applied to the next suspicious stew received from milking thisMushroomCow
.boolean
LivingEntity.hasPotionEffect
(@NotNull PotionEffectType type) Returns whether the living entity already has an existing effect of the givenPotionEffectType
applied to it.boolean
AreaEffectCloud.removeCustomEffect
(@NotNull PotionEffectType type) Removes a custom potion effect from this cloud.boolean
Arrow.removeCustomEffect
(@NotNull PotionEffectType type) Removes a custom potion effect from this arrow.boolean
MushroomCow.removeEffectFromNextStew
(@NotNull PotionEffectType type) Removes a custom potion effect from being applied to the next suspicious stew received from milking thisMushroomCow
.void
LivingEntity.removePotionEffect
(@NotNull PotionEffectType type) Removes any effects present of the givenPotionEffectType
.void
Player.sendPotionEffectChangeRemove
(@NotNull LivingEntity entity, @NotNull PotionEffectType type) Remove a potion effect for the target entity.default void
MushroomCow.setStewEffect
(PotionEffectType type) Deprecated, for removal: This API element is subject to removal in a future version.Mushroom cows can now hold multiple effects, useMushroomCow.setStewEffects(java.util.List)
-
Uses of PotionEffectType in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityPotionEffectEvent.getModifiedType()
Gets the modified potion effect type. -
Uses of PotionEffectType in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionboolean
PotionMeta.hasCustomEffect
(@NotNull PotionEffectType type) Checks for a specific custom potion effect type on this potion.boolean
SuspiciousStewMeta.hasCustomEffect
(@NotNull PotionEffectType type) Checks for a specific custom potion effect type on this suspicious stew.boolean
PotionMeta.removeCustomEffect
(@NotNull PotionEffectType type) Removes a custom potion effect from this potion.boolean
SuspiciousStewMeta.removeCustomEffect
(@NotNull PotionEffectType type) Removes a custom potion effect from this suspicious stew.boolean
PotionMeta.setMainEffect
(@NotNull PotionEffectType type) Deprecated. -
Uses of PotionEffectType in org.bukkit.inventory.view
Modifier and TypeMethodDescriptionBeaconView.getPrimaryEffect()
Gets the primary effect of the beacon.BeaconView.getSecondaryEffect()
Gets the secondary effect of the beacon.Modifier and TypeMethodDescriptionvoid
BeaconView.setPrimaryEffect
(@Nullable PotionEffectType effect) Sets the primary effect of the beacon, or null to clearvoid
BeaconView.setSecondaryEffect
(@Nullable PotionEffectType effect) Sets the secondary effect on this beacon, or null to clear. -
Uses of PotionEffectType in org.bukkit.potion
Modifier and TypeClassDescriptionclass
Deprecated.only for backwards compatibility, PotionEffectTypeWrapper is no longer used.Modifier and TypeFieldDescriptionstatic final PotionEffectType
PotionEffectType.ABSORPTION
Increases the maximum health of an entity with health that cannot be regenerated, but is refilled every 30 seconds.static final PotionEffectType
PotionEffectType.BAD_OMEN
Triggers an ominous event when the player enters a village or trial chambers.
oof.static final PotionEffectType
PotionEffectType.BLINDNESS
Blinds an entity.static final PotionEffectType
PotionEffectType.CONDUIT_POWER
Effects granted by a nearby conduit.static final PotionEffectType
PotionEffectType.DARKNESS
Causes the player's vision to dim occasionally.static final PotionEffectType
PotionEffectType.DOLPHINS_GRACE
Increses underwater movement speed.
Squee'ek uh'k kk'kkkk squeek eee'eek.static final PotionEffectType
PotionEffectType.FIRE_RESISTANCE
Stops fire damage.static final PotionEffectType
PotionEffectType.GLOWING
Outlines the entity so that it can be seen from afar.static final PotionEffectType
PotionEffectType.HASTE
Increases dig speed.static final PotionEffectType
PotionEffectType.HEALTH_BOOST
Increases the maximum health of an entity.static final PotionEffectType
PotionEffectType.HERO_OF_THE_VILLAGE
Reduces the cost of villager trades.
\o/.static final PotionEffectType
PotionEffectType.HUNGER
Increases hunger.static final PotionEffectType
PotionEffectType.INFESTED
Chance of spawning silverfish when hurt.static final PotionEffectType
PotionEffectType.INSTANT_DAMAGE
Hurts an entity.static final PotionEffectType
PotionEffectType.INSTANT_HEALTH
Heals an entity.static final PotionEffectType
PotionEffectType.INVISIBILITY
Grants invisibility.static final PotionEffectType
PotionEffectType.JUMP_BOOST
Increases jump height.static final PotionEffectType
PotionEffectType.LEVITATION
Causes the entity to float into the air.static final PotionEffectType
PotionEffectType.LUCK
Loot table luck.static final PotionEffectType
PotionEffectType.MINING_FATIGUE
Decreases dig speed.static final PotionEffectType
PotionEffectType.NAUSEA
Warps vision on the client.static final PotionEffectType
PotionEffectType.NIGHT_VISION
Allows an entity to see in the dark.static final PotionEffectType
PotionEffectType.OOZING
Causes slimes to spawn upon death.static final PotionEffectType
PotionEffectType.POISON
Deals damage to an entity over time.static final PotionEffectType
PotionEffectType.RAID_OMEN
Triggers a raid when a player enters a village.static final PotionEffectType
PotionEffectType.REGENERATION
Regenerates health.static final PotionEffectType
PotionEffectType.RESISTANCE
Decreases damage dealt to an entity.static final PotionEffectType
PotionEffectType.SATURATION
Increases the food level of an entity each tick.static final PotionEffectType
PotionEffectType.SLOW_FALLING
Slows entity fall rate.static final PotionEffectType
PotionEffectType.SLOWNESS
Decreases movement speed.static final PotionEffectType
PotionEffectType.SPEED
Increases movement speed.static final PotionEffectType
PotionEffectType.STRENGTH
Increases damage dealt.static final PotionEffectType
PotionEffectType.TRIAL_OMEN
Causes trial spawners to become ominous.static final PotionEffectType
PotionEffectType.UNLUCK
Loot table unluck.static final PotionEffectType
PotionEffectType.WATER_BREATHING
Allows breathing underwater.static final PotionEffectType
PotionEffectType.WEAKNESS
Decreases damage dealt by an entity.static final PotionEffectType
PotionEffectType.WEAVING
Creates cobwebs upon death.static final PotionEffectType
PotionEffectType.WIND_CHARGED
Emits a wind burst upon death.static final PotionEffectType
PotionEffectType.WITHER
Deals damage to an entity over time and gives the health to the shooter.Modifier and TypeMethodDescriptionstatic @Nullable PotionEffectType
PotionEffectType.getById
(int id) Gets the effect type specified by the unique id.static @Nullable PotionEffectType
PotionEffectType.getByKey
(@Nullable NamespacedKey key) Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.static @Nullable PotionEffectType
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.PotionType.getEffectType()
Deprecated.Potions can have multiple effects usePotionType.getPotionEffects()
PotionType.InternalPotionData.getEffectType()
Deprecated.PotionEffect.getType()
Returns thePotionEffectType
of this effect.PotionEffectTypeWrapper.getType()
Deprecated.Get the potion type bound to this wrapper.static @NotNull PotionEffectType[]
PotionEffectType.values()
Deprecated.useIterable.iterator()
.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.usecreateEffect(int, int)
instead.static @Nullable PotionType
PotionType.getByEffect
(@Nullable PotionEffectType effectType) Deprecated.MisleadingPotionEffect.withType
(@NotNull PotionEffectType type) ModifierConstructorDescriptionPotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier) Creates a potion effect.PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier, boolean ambient) Creates a potion effect.PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles) Creates a potion effect with no defined color.PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles, boolean icon) Creates a potion effect.
MushroomCow.getStewEffects()