-
成员变量 修饰符和类 成员变量描述 static int
ABSORPTION
protected boolean
ambient
protected int
amplifier
protected boolean
bad
static int
BLINDNESS
protected int
color
static int
CONDUIT_POWER
static int
CONFUSION
static int
DAMAGE_RESISTANCE
protected int
duration
protected static Effect[]
effects
static int
FATAL_POISON
static int
FATIGUE
static int
FIRE_RESISTANCE
static int
HARMING
static int
HASTE
static int
HEALING
static int
HEALTH_BOOST
static int
HUNGER
protected int
id
static int
INVISIBILITY
static int
JUMP
static int
LEVITATION
static int
MINING_FATIGUE
protected String
name
static int
NAUSEA
static int
NIGHT_VISION
static int
POISON
static int
REGENERATION
static int
SATURATION
protected boolean
show
static int
SLOW_FALLING
static int
SLOWNESS
static int
SPEED
static int
STRENGTH
static int
SWIFTNESS
static int
WATER_BREATHING
static int
WEAKNESS
static int
WITHER
-
构造函数 构造函数描述 Effect(int id, String name, int r, int g, int b)
Effect(int id, String name, int r, int g, int b, boolean isBad)
-
All Methods Static Methods Instance Methods Concrete Methods 修饰符和类 成员函数描述 void
add(Entity entity)
void
applyEffect(Entity entity)
boolean
canTick()
Effect
clone()
int
getAmplifier()
int[]
getColor()
int
getDuration()
static Effect
getEffect(int id)
static Effect
getEffectByName(String name)
int
getId()
String
getName()
static void
init()
boolean
isAmbient()
boolean
isBad()
boolean
isVisible()
void
remove(Entity entity)
Effect
setAmbient(boolean ambient)
Effect
setAmplifier(int amplifier)
void
setColor(int r, int g, int b)
Effect
setDuration(int ticks)
Effect
setVisible(boolean visible)