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
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.potion.PotionEffectTypePotionEffectType.Category
- 
Field SummaryFields inherited from class org.bukkit.potion.PotionEffectTypeABSORPTION, 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetAttributeModifierAmount(Attribute attribute, int effectAmplifier) Gets the true modifier amount based on the effect amplifier.getColor()Returns the color of this effect type.doubleReturns the duration modifier applied to effects of this type.Gets the effect attributes in an immutable map.Gets the category of this effectgetKey()Return the namespaced identifier for this object.getName()Returns the name of this effect type.getType()Get the potion type bound to this wrapper.booleanReturns whether the effect of this type happens once, immediately.Gets the translation key.Methods inherited from class org.bukkit.potion.PotionEffectTypecreateEffect, equals, getById, getByKey, getByName, getId, hashCode, registerPotionEffectType, stopAcceptingRegistrations, toString, values
- 
Constructor Details- 
PotionEffectTypeWrapper
 
- 
- 
Method Details- 
getDurationModifierpublic double getDurationModifier()Description copied from class:PotionEffectTypeReturns the duration modifier applied to effects of this type.- Specified by:
- getDurationModifierin class- PotionEffectType
- Returns:
- duration modifier
 
- 
getNameDescription copied from class:PotionEffectTypeReturns the name of this effect type.- Specified by:
- getNamein class- PotionEffectType
- Returns:
- The name of this effect type
 
- 
getTypeGet the potion type bound to this wrapper.- Returns:
- The potion effect type
 
- 
isInstantpublic boolean isInstant()Description copied from class:PotionEffectTypeReturns whether the effect of this type happens once, immediately.- Specified by:
- isInstantin class- PotionEffectType
- Returns:
- whether this type is normally instant
 
- 
getColorDescription copied from class:PotionEffectTypeReturns the color of this effect type.- Specified by:
- getColorin class- PotionEffectType
- Returns:
- the color
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.- Specified by:
- getKeyin interface- Keyed
- Overrides:
- getKeyin class- PotionEffectType
- Returns:
- this object's key
 
- 
getEffectAttributesDescription copied from class:PotionEffectTypeGets the effect attributes in an immutable map.- Specified by:
- getEffectAttributesin class- PotionEffectType
- Returns:
- the attribute map
 
- 
getAttributeModifierAmountDescription copied from class:PotionEffectTypeGets the true modifier amount based on the effect amplifier.- Specified by:
- getAttributeModifierAmountin class- PotionEffectType
- Parameters:
- attribute- the attribute
- effectAmplifier- the effect amplifier (0 indexed)
- Returns:
- the modifier amount
 
- 
getEffectCategoryDescription copied from class:PotionEffectTypeGets the category of this effect- Specified by:
- getEffectCategoryin class- PotionEffectType
- Returns:
- the category
 
- 
translationKeyDescription copied from interface:net.kyori.adventure.translation.TranslatableGets the translation key.- Returns:
- the translation key
 
 
-