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_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 |
applyModifiersToAttributeInstance(IAttributeInstance instance,
NBTTagCompound compound) |
static AttributeModifier |
readAttributeModifierFromNBT(NBTTagCompound compound) |
static void |
setAttributeModifiers(AbstractAttributeMap map,
NBTTagList list) |
private static NBTTagCompound |
writeAttributeInstanceToNBT(IAttributeInstance instance) |
static NBTTagCompound |
writeAttributeModifierToNBT(AttributeModifier modifier) |
static NBTTagList |
writeBaseAttributeMapToNBT(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_SPEED
public static final IAttribute ARMOR
public static final IAttribute ARMOR_TOUGHNESS
public static final IAttribute LUCK
public static NBTTagList writeBaseAttributeMapToNBT(AbstractAttributeMap map)
private static NBTTagCompound writeAttributeInstanceToNBT(IAttributeInstance instance)
public static NBTTagCompound writeAttributeModifierToNBT(AttributeModifier modifier)
public static void setAttributeModifiers(AbstractAttributeMap map, NBTTagList list)
private static void applyModifiersToAttributeInstance(IAttributeInstance instance, NBTTagCompound compound)
@Nullable public static AttributeModifier readAttributeModifierFromNBT(NBTTagCompound compound)