public class PotionEffectTypeWrapper extends PotionEffectType
ABSORPTION, BLINDNESS, CONFUSION, DAMAGE_RESISTANCE, FAST_DIGGING, FIRE_RESISTANCE, GLOWING, HARM, HEAL, HEALTH_BOOST, HUNGER, INCREASE_DAMAGE, INVISIBILITY, JUMP, LEVITATION, LUCK, NIGHT_VISION, POISON, REGENERATION, SATURATION, SLOW, SLOW_DIGGING, SPEED, UNLUCK, WATER_BREATHING, WEAKNESS, WITHER
Modifier | Constructor | Description |
---|---|---|
protected |
PotionEffectTypeWrapper(int id) |
Modifier and Type | Method | Description |
---|---|---|
Color |
getColor() |
Returns the color of this effect type.
|
double |
getDurationModifier() |
Returns the duration modifier applied to effects of this type.
|
java.lang.String |
getName() |
Returns the name of this effect type.
|
PotionEffectType |
getType() |
Get the potion type bound to this wrapper.
|
boolean |
isInstant() |
Returns whether the effect of this type happens once, immediately.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createEffect, equals, getById, getByName, getId, hashCode, registerPotionEffectType, stopAcceptingRegistrations, toString, values
public double getDurationModifier()
PotionEffectType
getDurationModifier
in class PotionEffectType
public java.lang.String getName()
PotionEffectType
getName
in class PotionEffectType
public PotionEffectType getType()
public boolean isInstant()
PotionEffectType
isInstant
in class PotionEffectType
public Color getColor()
PotionEffectType
getColor
in class PotionEffectType
Copyright © 2018. All rights reserved.