@NotThreadSafe public class EntityAttribute extends Object implements NBTSerializable
Modifier and Type | Class and Description |
---|---|
static class |
EntityAttribute.Modifier |
Modifier and Type | Field and Description |
---|---|
protected List<EntityAttribute.Modifier> |
modifiers |
protected String |
name |
protected double |
value |
Modifier | Constructor and Description |
---|---|
protected |
EntityAttribute() |
Modifier and Type | Method and Description |
---|---|
void |
addModifier(EntityAttribute.Modifier modifier) |
List<EntityAttribute.Modifier> |
modifiers() |
String |
name() |
void |
removeModifier(int index) |
void |
setModifier(int index,
EntityAttribute.Modifier modifier) |
void |
setValue(double value) |
double |
value() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
protected double value
protected List<EntityAttribute.Modifier> modifiers
protected EntityAttribute()
public double value()
public List<EntityAttribute.Modifier> modifiers()
public void setValue(double value)
public void addModifier(EntityAttribute.Modifier modifier)
public void removeModifier(int index)
public void setModifier(int index, EntityAttribute.Modifier modifier)
Copyright © 2016. All rights reserved.