if (!world.isRemote) {
double energyConsumption = ModuleManager.computeModularProperty(itemStack, BLADE_ENERGY);
if (ElectricItemUtils.getPlayerEnergy(player) > energyConsumption) {
ElectricItemUtils.drainPlayerEnergy(player, energyConsumption);
EntitySpinningBlade blade = new EntitySpinningBlade(world, player);
world.spawnEntityInWorld(blade);
}
}
}