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.PotionEffectType
ABSORPTION, BLINDNESS, CONFUSION, DAMAGE_RESISTANCE, FAST_DIGGING, FIRE_RESISTANCE, HARM, HEAL, HEALTH_BOOST, HUNGER, INCREASE_DAMAGE, INVISIBILITY, JUMP, NIGHT_VISION, POISON, REGENERATION, SATURATION, SLOW, SLOW_DIGGING, SPEED, WATER_BREATHING, WEAKNESS, WITHER -
Constructor Summary
Constructors Modifier Constructor Description protectedPotionEffectTypeWrapper(int id) -
Method Summary
Modifier and Type Method Description doublegetDurationModifier()Returns the duration modifier applied to effects of this type.java.lang.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.PotionEffectType
createEffect, equals, getById, getByName, getId, hashCode, registerPotionEffectType, stopAcceptingRegistrations, toString, values
-
Constructor Details
-
PotionEffectTypeWrapper
protected PotionEffectTypeWrapper(int id)
-
-
Method Details
-
getDurationModifier
public double getDurationModifier()Description copied from class:PotionEffectTypeReturns the duration modifier applied to effects of this type.- Specified by:
getDurationModifierin classPotionEffectType- Returns:
- duration modifier
-
getName
public java.lang.String getName()Description copied from class:PotionEffectTypeReturns the name of this effect type.- Specified by:
getNamein classPotionEffectType- Returns:
- The name of this effect type
-
getType
Get the potion type bound to this wrapper.- Returns:
- The potion effect type
-
isInstant
public boolean isInstant()Description copied from class:PotionEffectTypeReturns whether the effect of this type happens once, immediately.- Specified by:
isInstantin classPotionEffectType- Returns:
- whether this type is normally instant
-