public void notifyPlayerOfProgression(EntityPlayer ep, ProgressElement p) { if (ep.worldObj.isRemote) { ChromaOverlays.instance.addProgressionNote(p); ReikaSoundHelper.playClientSound(ChromaSounds.GAINPROGRESS, ep, 1, 1); } else if (ep instanceof EntityPlayerMP) { ReikaPacketHelper.sendDataPacket( ChromatiCraft.packetChannel, ChromaPackets.PROGRESSNOTE.ordinal(), (EntityPlayerMP) ep, this.getID(p)); if (ChromaOptions.PROGRESSNOTIFY.getState()) { if (ChromaOptions.PROGRESSNOTIFY_SELF.getState()) ChromaAux.notifyServerPlayers(ep, p); else ChromaAux.notifyServerPlayersExcept(ep, p); } } }
void attackEntity(EntityLivingBase e) { ChromaSounds.DISCHARGE.playSoundAtBlock(this); ChromaAux.doPylonAttack(e, 5, true); PotionEffect eff = CrystalPotionController.getEffectFromColor(color, 200, 2); if (eff != null) { e.addPotionEffect(eff); } }