getEffectiveWeaponLevel

public static double getEffectiveWeaponLevel(ItemStack item)

Returns the effective weapon level for a given item.

Elite weapons use their stored item level. Non-weapons return 0.

Return

The effective weapon level (0 if null, air, or non-weapon)

Parameters

item

The weapon item (may be null)