| Modifier and Type | Field and Description |
|---|---|
static int |
ABSORPTION |
static int |
ATTACK_DAMAGE |
protected static Map<Integer,Attribute> |
attributes |
protected float |
currentValue |
protected float |
defaultValue |
static int |
EXHAUSTION |
static int |
EXPERIENCE |
static int |
EXPERIENCE_LEVEL |
static int |
FOLLOW_RANGE |
static int |
FOOD |
static int |
KNOCKBACK_RESISTANCE |
static int |
LUCK |
static int |
MAX_HEALTH |
static int |
MAX_HUNGER |
protected float |
maxValue |
protected float |
minValue |
static int |
MOVEMENT_SPEED |
protected String |
name |
static int |
SATURATION |
protected boolean |
shouldSend |
| Modifier and Type | Method and Description |
|---|---|
static Attribute |
addAttribute(int id,
String name,
float minValue,
float maxValue,
float defaultValue) |
static Attribute |
addAttribute(int id,
String name,
float minValue,
float maxValue,
float defaultValue,
boolean shouldSend) |
Attribute |
clone() |
static Attribute |
getAttribute(int id) |
static Attribute |
getAttributeByName(String name) |
float |
getDefaultValue() |
int |
getId() |
float |
getMaxValue() |
float |
getMinValue() |
String |
getName() |
float |
getValue() |
static void |
init() |
boolean |
isSyncable() |
Attribute |
setDefaultValue(float defaultValue) |
Attribute |
setMaxValue(float maxValue) |
Attribute |
setMinValue(float minValue) |
Attribute |
setValue(float value) |
Attribute |
setValue(float value,
boolean fit) |
public static final int ABSORPTION
public static final int SATURATION
public static final int EXHAUSTION
public static final int KNOCKBACK_RESISTANCE
public static final int MAX_HEALTH
public static final int MOVEMENT_SPEED
public static final int FOLLOW_RANGE
public static final int MAX_HUNGER
public static final int FOOD
public static final int ATTACK_DAMAGE
public static final int EXPERIENCE_LEVEL
public static final int EXPERIENCE
public static final int LUCK
protected float minValue
protected float maxValue
protected float defaultValue
protected float currentValue
protected String name
protected boolean shouldSend
public static void init()
public static Attribute addAttribute(int id, String name, float minValue, float maxValue, float defaultValue)
public static Attribute addAttribute(int id, String name, float minValue, float maxValue, float defaultValue, boolean shouldSend)
public static Attribute getAttribute(int id)
public static Attribute getAttributeByName(String name)
name - namepublic float getMinValue()
public Attribute setMinValue(float minValue)
public float getMaxValue()
public Attribute setMaxValue(float maxValue)
public float getDefaultValue()
public Attribute setDefaultValue(float defaultValue)
public float getValue()
public Attribute setValue(float value)
public Attribute setValue(float value, boolean fit)
public String getName()
public int getId()
public boolean isSyncable()
Copyright © 2021. All rights reserved.