public class SharedMonsterAttributes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static IAttribute |
ARMOR |
static IAttribute |
ARMOR_TOUGHNESS |
static IAttribute |
ATTACK_DAMAGE |
static IAttribute |
ATTACK_KNOCKBACK |
static IAttribute |
ATTACK_SPEED |
static IAttribute |
FLYING_SPEED |
static IAttribute |
FOLLOW_RANGE |
static IAttribute |
KNOCKBACK_RESISTANCE |
private static org.apache.logging.log4j.Logger |
LOGGER |
static IAttribute |
LUCK |
static IAttribute |
MAX_HEALTH |
static IAttribute |
MOVEMENT_SPEED |
Constructor and Description |
---|
SharedMonsterAttributes() |
Modifier and Type | Method and Description |
---|---|
private static void |
readAttribute(IAttributeInstance instance,
CompoundNBT compound) |
static AttributeModifier |
readAttributeModifier(CompoundNBT compound) |
static void |
readAttributes(AbstractAttributeMap map,
ListNBT list) |
private static CompoundNBT |
writeAttribute(IAttributeInstance instance) |
static CompoundNBT |
writeAttributeModifier(AttributeModifier modifier) |
static ListNBT |
writeAttributes(AbstractAttributeMap map) |
private static final org.apache.logging.log4j.Logger LOGGER
public static final IAttribute MAX_HEALTH
public static final IAttribute FOLLOW_RANGE
public static final IAttribute KNOCKBACK_RESISTANCE
public static final IAttribute MOVEMENT_SPEED
public static final IAttribute FLYING_SPEED
public static final IAttribute ATTACK_DAMAGE
public static final IAttribute ATTACK_KNOCKBACK
public static final IAttribute ATTACK_SPEED
public static final IAttribute ARMOR
public static final IAttribute ARMOR_TOUGHNESS
public static final IAttribute LUCK
public static ListNBT writeAttributes(AbstractAttributeMap map)
private static CompoundNBT writeAttribute(IAttributeInstance instance)
public static CompoundNBT writeAttributeModifier(AttributeModifier modifier)
public static void readAttributes(AbstractAttributeMap map, ListNBT list)
private static void readAttribute(IAttributeInstance instance, CompoundNBT compound)
@Nullable public static AttributeModifier readAttributeModifier(CompoundNBT compound)