Search in sources :

Example 6 with PacketExplode

use of com.teamwizardry.wizardry.common.network.PacketExplode in project Wizardry by TeamWizardry.

the class EntitySpellProjectile method goBoom.

private void goBoom(SpellData data) {
    motionX = 0;
    motionY = 0;
    motionZ = 0;
    if (spellRing.getChildRing() != null) {
        spellRing.getChildRing().runSpellRing(data);
    }
    PacketHandler.NETWORK.sendToAllAround(new PacketExplode(getPositionVector(), new Color(getDataManager().get(DATA_COLOR)), new Color(getDataManager().get(DATA_COLOR2)), 0.3, 0.3, RandUtil.nextInt(30, 50), 10, 25, true), new NetworkRegistry.TargetPoint(world.provider.getDimension(), posX, posY, posZ, 512));
    setDead();
    world.removeEntity(this);
}
Also used : PacketExplode(com.teamwizardry.wizardry.common.network.PacketExplode) NetworkRegistry(net.minecraftforge.fml.common.network.NetworkRegistry)

Aggregations

PacketExplode (com.teamwizardry.wizardry.common.network.PacketExplode)6 NetworkRegistry (net.minecraftforge.fml.common.network.NetworkRegistry)6 Vec3d (net.minecraft.util.math.Vec3d)5 ItemStack (net.minecraft.item.ItemStack)4 EntityItem (net.minecraft.entity.item.EntityItem)3 BlockPos (net.minecraft.util.math.BlockPos)3 Lists (com.google.common.collect.Lists)2 Multimap (com.google.common.collect.Multimap)2 Sets (com.google.common.collect.Sets)2 JsonArray (com.google.gson.JsonArray)2 JsonElement (com.google.gson.JsonElement)2 JsonObject (com.google.gson.JsonObject)2 JsonParser (com.google.gson.JsonParser)2 PacketHandler (com.teamwizardry.librarianlib.features.network.PacketHandler)2 Wizardry (com.teamwizardry.wizardry.Wizardry)2 CapManager (com.teamwizardry.wizardry.api.capability.CapManager)2 PosUtils (com.teamwizardry.wizardry.api.util.PosUtils)2 RandUtil (com.teamwizardry.wizardry.api.util.RandUtil)2 LibParticles (com.teamwizardry.wizardry.client.fx.LibParticles)2 ModFluids (com.teamwizardry.wizardry.common.block.fluid.ModFluids)2