ElectricItemUtils.drainPlayerEnergy(player, energyConsumption);
double red = ModuleManager.computeModularProperty(itemStack, RED);
double green = ModuleManager.computeModularProperty(itemStack, GREEN);
double blue = ModuleManager.computeModularProperty(itemStack, BLUE);
EntityLuxCapacitor luxCapacitor = new EntityLuxCapacitor(world, player, red, green, blue);
world.spawnEntityInWorld(luxCapacitor);
}
}
}