java.lang.Object
org.cloudburstmc.api.entity.Attribute
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected floatprotected floatstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected floatprotected floatstatic final intprotected Stringstatic final intprotected boolean -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeaddAttribute(int id, String name, float minValue, float maxValue, float defaultValue) static AttributeaddAttribute(int id, String name, float minValue, float maxValue, float defaultValue, boolean shouldSend) clone()static AttributegetAttribute(int id) static AttributegetAttributeByName(String name) floatintgetId()floatfloatgetName()floatgetValue()static voidinit()booleansetDefaultValue(float defaultValue) setMaxValue(float maxValue) setMinValue(float minValue) setValue(float value) setValue(float value, boolean fit)
-
Field Details
-
ABSORPTION
public static final int ABSORPTION- See Also:
-
SATURATION
public static final int SATURATION- See Also:
-
EXHAUSTION
public static final int EXHAUSTION- See Also:
-
KNOCKBACK_RESISTANCE
public static final int KNOCKBACK_RESISTANCE- See Also:
-
MAX_HEALTH
public static final int MAX_HEALTH- See Also:
-
MOVEMENT_SPEED
public static final int MOVEMENT_SPEED- See Also:
-
FOLLOW_RANGE
public static final int FOLLOW_RANGE- See Also:
-
MAX_HUNGER
public static final int MAX_HUNGER- See Also:
-
FOOD
public static final int FOOD- See Also:
-
ATTACK_DAMAGE
public static final int ATTACK_DAMAGE- See Also:
-
EXPERIENCE_LEVEL
public static final int EXPERIENCE_LEVEL- See Also:
-
EXPERIENCE
public static final int EXPERIENCE- See Also:
-
LUCK
public static final int LUCK- See Also:
-
attributes
-
minValue
protected float minValue -
maxValue
protected float maxValue -
defaultValue
protected float defaultValue -
currentValue
protected float currentValue -
name
-
shouldSend
protected boolean shouldSend
-
-
Method Details
-
init
public static void init() -
addAttribute
-
addAttribute
-
getAttribute
-
getAttributeByName
- Parameters:
name- name- Returns:
- null|Attribute
-
getMinValue
public float getMinValue() -
setMinValue
-
getMaxValue
public float getMaxValue() -
setMaxValue
-
getDefaultValue
public float getDefaultValue() -
setDefaultValue
-
getValue
public float getValue() -
setValue
-
setValue
-
getName
-
getId
public int getId() -
isSyncable
public boolean isSyncable() -
clone
-