Search in sources :

Example 1 with PacketCSpawnLightning

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));
    }
}
Also used : PacketCSpawnLightning(net.geforcemods.securitycraft.network.packets.PacketCSpawnLightning) EntityLightningBolt(net.minecraft.entity.effect.EntityLightningBolt)

Aggregations

PacketCSpawnLightning (net.geforcemods.securitycraft.network.packets.PacketCSpawnLightning)1 EntityLightningBolt (net.minecraft.entity.effect.EntityLightningBolt)1