EliteItemManager

public class EliteItemManager

Constructors

Link copied to clipboard
public void EliteItemManager()

Properties

Link copied to clipboard
public final static double DAMAGE_ENCHANTMENT_PERCENT_PER_LEVEL

Functions

Link copied to clipboard
public static double calculateEliteBonus(ItemStack itemStack, int level)
This returns how much elite damage an item would give, based on a level.
Link copied to clipboard
public static double calculateItemLevel(@Nullable() ItemStack itemStack)
Calculates the item level of any given {@ItemStack} based on stats.
Link copied to clipboard
public static double getArmorLevel(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static double getArrowEliteDamage(@Nullable() Projectile projectile)
Link copied to clipboard
public static double getAttackSpeed(@Nullable() ItemStack itemStack)
Gets the GENERIC_ATTACK_SPEED {@Attribute} from any item - for players assuming a default {@Player} attack speed!
Link copied to clipboard
public static double getBaseDamage(ItemStack itemStack)
Gets either the "real" damage of an {@ItemStack} based on the material attributes and further attribute modifications.
Link copied to clipboard
public static double getBonusEliteDefense(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static double getDPS(@Nullable() ItemStack itemStack)
Calculates the Elite DPS of an item aka EDPS.
public static double getDPS(Double attackSpeed, Double damage)
Calculates the DPS of any item
Link copied to clipboard
public static double getEliteDamageEnchantmentMultiplier(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static double getEliteDamageFromEliteAttributes(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static double getEliteDamageFromEnchantments(@Nullable() ItemStack itemStack)
Calculates the EliteMobs Sharpness/Power damage bonus.
Link copied to clipboard
public static double getEliteDefense(@Nullable() ItemStack itemStack)
Calculates the elite protection value.
Link copied to clipboard
public static double getEliteMobsSpecificDamage(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static double getItemLevel(@Nullable() ItemStack itemStack)
Gets the item level of any given {@ItemStack}.
Link copied to clipboard
public static int getRoundedItemLevel(@Nullable() ItemStack itemStack)
Link copied to clipboard
@Nullable()
public static Player getSoulboundPlayer(@NotNull() ItemMeta itemMeta)
Gets the Player to whom the item meta is linked.
Link copied to clipboard
public static double getTotalDPS(@Nullable() ItemStack itemStack)
Calculates the total DPS.
Link copied to clipboard
public static double getWeaponLevel(@Nullable() ItemStack itemStack)
Calculates the item level of a weapon.
Link copied to clipboard
@Nullable()
public static boolean hasSoulbindEnchantment(@NotNull() ItemMeta itemMeta)
Returns whether an item meta has the soulbind enchantment
Link copied to clipboard
public static void initializeEliteLevel(@Nullable() ItemStack itemStack, int level)
Sets level metadata during construction; the caller renders lore after completing the item.
Link copied to clipboard
public static boolean isArmor(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static boolean isEliteMobsItem(ItemStack itemStack)
Checks if an item is an EliteMobs item
Link copied to clipboard
public static boolean isOnLastDamage(@Nullable() ItemStack itemStack)
Returns true if the ItemStack is an elite item that is one durability point away from breaking.
Link copied to clipboard
public static boolean isWeapon(@Nullable() ItemStack itemStack)
public static boolean isWeapon(@Nullable() ItemStack itemStack, boolean magicWeapon)
Link copied to clipboard
public static void registerEliteItem(@Nullable() ItemStack itemStack)
Link copied to clipboard
public static void setEliteLevel(@Nullable() ItemStack itemStack, int level)
public static void setEliteLevel(@Nullable() ItemStack itemStack, int level, boolean onlyArmorOrWeapons)
Link copied to clipboard
public static void tagArrow(@Nullable() Projectile projectile)

public static void tagArrow(@Nullable() Projectile projectile, @Nullable() ItemStack weapon)
Tags a projectile from the exact weapon snapshot that launched it.