AttributeUtil

public final class AttributeUtil

Functions

Link copied to clipboard
public final static EntityAttributeModifier attackDamage(Double totalAttackDamage)

Creates an EntityAttributeModifier, which changes the attack damage to totalAttackDamage after subtracting the player's base attack damage.

Link copied to clipboard
public final static EntityAttributeModifier attackSpeed(Double totalAttackSpeed)

Creates an EntityAttributeModifier, which changes the attack speed to totalAttackSpeed after subtracting the player's base attack speed.

Link copied to clipboard
public final static EntityAttributeModifier equipTime(Double totalEquipTime)

Creates an EntityAttributeModifier, which changes the attack speed to the reciprocal of totalEquipTime after subtracting the player's base attack speed.

Link copied to clipboard
public final static EntityAttributeModifier interactionRange(Double additionalRange)

Creates an EntityAttributeModifier, which increases the interaction range by additionalRange.