Package org.bukkit.potion
Class PotionEffectTypeWrapper
java.lang.Object
org.bukkit.potion.PotionEffectType
org.bukkit.potion.PotionEffectTypeWrapper
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
,Translatable
,Keyed
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, CONFUSION, DAMAGE_RESISTANCE, DARKNESS, DOLPHINS_GRACE, FAST_DIGGING, FIRE_RESISTANCE, GLOWING, HARM, HEAL, HEALTH_BOOST, HERO_OF_THE_VILLAGE, HUNGER, INCREASE_DAMAGE, INVISIBILITY, JUMP, LEVITATION, LUCK, NIGHT_VISION, POISON, REGENERATION, SATURATION, SLOW, SLOW_DIGGING, SLOW_FALLING, SPEED, UNLUCK, WATER_BREATHING, WEAKNESS, 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, getDurationModifier, getId, getName, values
-
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
-