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| 限定符 | 构造器和说明 |
|---|---|
protected |
PotionEffectTypeWrapper(int id) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
createEffect, equals, getById, getByName, getId, hashCode, registerPotionEffectType, stopAcceptingRegistrations, toString, valuespublic double getDurationModifier()
PotionEffectTypegetDurationModifier 在类中 PotionEffectTypepublic java.lang.String getName()
PotionEffectTypegetName 在类中 PotionEffectTypepublic PotionEffectType getType()
public boolean isInstant()
PotionEffectTypeisInstant 在类中 PotionEffectTypepublic Color getColor()
PotionEffectTypegetColor 在类中 PotionEffectType