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);
}
Aggregations