public static class Attributes.AttributeType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Attributes.AttributeType |
ARMOR |
static Attributes.AttributeType |
ARMOR_TOUGHNESS |
static Attributes.AttributeType |
GENERIC_ATTACK_DAMAGE |
static Attributes.AttributeType |
GENERIC_ATTACK_SPEED |
static Attributes.AttributeType |
GENERIC_FOLLOW_RANGE |
static Attributes.AttributeType |
GENERIC_KNOCKBACK_RESISTANCE |
static Attributes.AttributeType |
GENERIC_LUCK |
static Attributes.AttributeType |
GENERIC_MAX_HEALTH |
static Attributes.AttributeType |
GENERIC_MOVEMENT_SPEED |
static Attributes.AttributeType |
HORSE_JUMP_STRENGTH |
static Attributes.AttributeType |
ZOMBIE_SPAWN_REINFORCEMENTS |
Constructor and Description |
---|
AttributeType(java.lang.String minecraftId,
double baseValue)
Construct a new attribute type.
|
Modifier and Type | Method and Description |
---|---|
static Attributes.AttributeType |
fromId(java.lang.String minecraftId)
Retrieve the attribute type associated with a given ID.
|
double |
getBaseValue() |
java.lang.String |
getMinecraftId()
Retrieve the associated minecraft ID.
|
Attributes.AttributeType |
register()
Register the type in the central registry.
|
static java.lang.Iterable<Attributes.AttributeType> |
values()
Retrieve every registered attribute type.
|
public static final Attributes.AttributeType GENERIC_MAX_HEALTH
public static final Attributes.AttributeType GENERIC_FOLLOW_RANGE
public static final Attributes.AttributeType GENERIC_ATTACK_DAMAGE
public static final Attributes.AttributeType GENERIC_ATTACK_SPEED
public static final Attributes.AttributeType GENERIC_MOVEMENT_SPEED
public static final Attributes.AttributeType GENERIC_KNOCKBACK_RESISTANCE
public static final Attributes.AttributeType ARMOR
public static final Attributes.AttributeType ARMOR_TOUGHNESS
public static final Attributes.AttributeType GENERIC_LUCK
public static final Attributes.AttributeType HORSE_JUMP_STRENGTH
public static final Attributes.AttributeType ZOMBIE_SPAWN_REINFORCEMENTS
public AttributeType(java.lang.String minecraftId, double baseValue)
Remember to register()
the type.
minecraftId
- - the ID of the type.public java.lang.String getMinecraftId()
public double getBaseValue()
public Attributes.AttributeType register()
public static Attributes.AttributeType fromId(java.lang.String minecraftId)
minecraftId
- The ID to search for.public static java.lang.Iterable<Attributes.AttributeType> values()