Package org.bukkit.potion
Class PotionEffectTypeWrapper
- java.lang.Object
- 
- org.bukkit.potion.PotionEffectType
- 
- org.bukkit.potion.PotionEffectTypeWrapper
 
 
- 
 public class PotionEffectTypeWrapper extends PotionEffectType 
- 
- 
Field Summary- 
Fields inherited from class org.bukkit.potion.PotionEffectTypeABSORPTION, BAD_OMEN, BLINDNESS, CONDUIT_POWER, CONFUSION, DAMAGE_RESISTANCE, 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 Modifier Constructor Description protectedPotionEffectTypeWrapper(int id)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor()Returns the color of this effect type.doublegetDurationModifier()Returns the duration modifier applied to effects of this type.StringgetName()Returns the name of this effect type.PotionEffectTypegetType()Get the potion type bound to this wrapper.booleanisInstant()Returns whether the effect of this type happens once, immediately.- 
Methods inherited from class org.bukkit.potion.PotionEffectTypecreateEffect, equals, getById, getByName, getId, hashCode, registerPotionEffectType, stopAcceptingRegistrations, toString, values
 
- 
 
- 
- 
- 
Method Detail- 
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
 
 - 
getName@NotNull public String getName() Description copied from class:PotionEffectTypeReturns the name of this effect type.- Specified by:
- getNamein class- PotionEffectType
- Returns:
- The name of this effect type
 
 - 
getType@NotNull public PotionEffectType getType() Get 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
 
 - 
getColor@NotNull public Color getColor() Description copied from class:PotionEffectTypeReturns the color of this effect type.- Specified by:
- getColorin class- PotionEffectType
- Returns:
- the color
 
 
- 
 
-