getDPS

public static double getDPS(@Nullable() ItemStack itemStack)

Calculates the Elite DPS of an item aka EDPS. This is the damage per second dealt to Elites, which may or may not reflect the DPS dealt to other entities.

Return

The EDPS of the ItemStack. Defaults to 4 as that is the unarmed DPS!

Parameters

itemStack

ItemStack to analyze. Should be an {@ItemStack} with a GENERIC_ATTACK_SPEED and GENERIC_ATTACK_DAMAGE {@Attribute} but will handle any {@ItemStack}


public static double getDPS(Double attackSpeed, Double damage)

Calculates the DPS of any item

Return

DPS value

Parameters

attackSpeed

Attack speed from item attribute

damage

Damage from attribute