org.bukkit.potion
Class PotionEffectTypeWrapper
java.lang.Object
org.bukkit.potion.PotionEffectType
org.bukkit.potion.PotionEffectTypeWrapper
public class PotionEffectTypeWrapper
- extends PotionEffectType
Fields inherited from class org.bukkit.potion.PotionEffectType |
BLINDNESS, CONFUSION, DAMAGE_RESISTANCE, FAST_DIGGING, FIRE_RESISTANCE, HARM, HEAL, HUNGER, INCREASE_DAMAGE, INVISIBILITY, JUMP, NIGHT_VISION, POISON, REGENERATION, SLOW, SLOW_DIGGING, SPEED, WATER_BREATHING, WEAKNESS, WITHER |
PotionEffectTypeWrapper
protected PotionEffectTypeWrapper(int id)
getDurationModifier
public double getDurationModifier()
- Description copied from class:
PotionEffectType
- Returns the duration modifier applied to effects of this type.
- Specified by:
getDurationModifier
in class PotionEffectType
- Returns:
- duration modifier
getName
public String getName()
- Description copied from class:
PotionEffectType
- Returns the name of this effect type.
- Specified by:
getName
in class PotionEffectType
- Returns:
- The name of this effect type
getType
public PotionEffectType getType()
- Get the potion type bound to this wrapper.
- Returns:
- The potion effect type
isInstant
public boolean isInstant()
- Description copied from class:
PotionEffectType
- Returns whether the effect of this type happens once, immediately.
- Specified by:
isInstant
in class PotionEffectType
- Returns:
- whether this type is normally instant
Copyright © 2013. All Rights Reserved.