Package org.bukkit.potion
Class PotionEffectTypeWrapper
java.lang.Object
org.bukkit.potion.PotionEffectType
org.bukkit.potion.PotionEffectTypeWrapper
- All Implemented Interfaces:
FeatureDependant
,Keyed
,Translatable
,Keyed
,Translatable
Deprecated.
only for backwards compatibility, PotionEffectTypeWrapper is no longer used.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.potion.PotionEffectType
PotionEffectType.Category
-
Field Summary
Fields inherited from class org.bukkit.potion.PotionEffectType
ABSORPTION, BAD_OMEN, BLINDNESS, CONDUIT_POWER, DARKNESS, DOLPHINS_GRACE, FIRE_RESISTANCE, GLOWING, HASTE, HEALTH_BOOST, HERO_OF_THE_VILLAGE, HUNGER, INFESTED, INSTANT_DAMAGE, INSTANT_HEALTH, INVISIBILITY, JUMP_BOOST, LEVITATION, LUCK, MINING_FATIGUE, NAUSEA, NIGHT_VISION, OOZING, POISON, RAID_OMEN, REGENERATION, RESISTANCE, SATURATION, SLOW_FALLING, SLOWNESS, SPEED, STRENGTH, TRIAL_OMEN, UNLUCK, WATER_BREATHING, WEAKNESS, WEAVING, WIND_CHARGED, WITHER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getAttributeModifierAmount
(Attribute attribute, int effectAmplifier) Deprecated.Gets the true modifier amount based on the effect amplifier.getColor()
Deprecated.Returns the color of this effect type.Deprecated.Gets the effect attributes in an immutable map.Deprecated.Gets the category of this effectgetKey()
Deprecated.Return the namespaced identifier for this object.getType()
Deprecated.Get the potion type bound to this wrapper.boolean
Deprecated.Returns whether the effect of this type happens once, immediately.Deprecated.Gets the translation key.Methods inherited from class org.bukkit.potion.PotionEffectType
createEffect, getById, getByKey, getByName, getCategory, getDurationModifier, getId, getName, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.papermc.paper.world.flag.FeatureDependant
requiredFeatures
Methods inherited from interface org.bukkit.Translatable
getTranslationKey
-
Constructor Details
-
PotionEffectTypeWrapper
protected PotionEffectTypeWrapper()Deprecated.
-
-
Method Details
-
getType
Deprecated.Get the potion type bound to this wrapper.- Returns:
- The potion effect type
-
isInstant
public boolean isInstant()Deprecated.Description copied from class:PotionEffectType
Returns whether the effect of this type happens once, immediately.- Specified by:
isInstant
in classPotionEffectType
- Returns:
- whether this type is normally instant
-
getColor
Deprecated.Description copied from class:PotionEffectType
Returns the color of this effect type.- Specified by:
getColor
in classPotionEffectType
- Returns:
- the color
-
getKey
Deprecated.Description copied from interface:Keyed
Return the namespaced identifier for this object.- Returns:
- this object's key
-
getEffectAttributes
Deprecated.Description copied from class:PotionEffectType
Gets the effect attributes in an immutable map.- Specified by:
getEffectAttributes
in classPotionEffectType
- Returns:
- the attribute map
-
getAttributeModifierAmount
Deprecated.Description copied from class:PotionEffectType
Gets the true modifier amount based on the effect amplifier.- Specified by:
getAttributeModifierAmount
in classPotionEffectType
- Parameters:
attribute
- the attributeeffectAmplifier
- the effect amplifier (0 indexed)- Returns:
- the modifier amount
-
getEffectCategory
Deprecated.Description copied from class:PotionEffectType
Gets the category of this effect- Specified by:
getEffectCategory
in classPotionEffectType
- Returns:
- the category
-
translationKey
Deprecated.Description copied from interface:net.kyori.adventure.translation.Translatable
Gets the translation key.- Returns:
- the translation key
-