calculateItemLevel

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

Calculates the item level of any given {@ItemStack} based on stats. This ignores any stored level and always calculates from item attributes.

Return

Calculated item level

Parameters

itemStack

ItemStack to analyze