private void sendDeathParticles() {
   ReikaPacketHelper.sendPositionPacket(
       ChromatiCraft.packetChannel,
       ChromaPackets.LIGHTNINGDIE.ordinal(),
       this,
       this.calcRenderColor(),
       new DimensionTarget(worldObj));
 }
 private void die() {
   // particle effect
   if (worldObj.isRemote) {
     this.doDeathParticles(worldObj, posX, posY, posZ, this.getRenderColor());
   } else {
     ReikaPacketHelper.sendDataPacket(
         ChromatiCraft.packetChannel,
         ChromaPackets.LIGHTNINGDIE.ordinal(),
         new PacketTarget.RadiusTarget(this, 32),
         this.calcRenderColor());
   }
   this.setDead();
 }