/** Returns the actual attack speed */ public static float getActualAttackSpeed(ItemStack stack) { float speed = getAttackSpeedStat(stack); if(!stack.isEmpty() && stack.getItem() instanceof ToolCore) { speed *= ((ToolCore) stack.getItem()).attackSpeed(); } return speed; }