use of net.geforcemods.securitycraft.network.packets.PacketCSpawnLightning in project SecurityCraft by Geforce132.
the class WorldUtils method spawnLightning.
public static void spawnLightning(World world, double x, double y, double z) {
EntityLightningBolt lightning = new EntityLightningBolt(world, x, y, z);
world.addWeatherEffect(lightning);
if (!world.isRemote) {
mod_SecurityCraft.network.sendToAll(new PacketCSpawnLightning(x, y, z));
}
}
Aggregations