﻿/*	 public void onUpdate() {
	    	super.onUpdate();
	    	if(this.onGround || this.isInWater()){
	    		this.setIsFlying(false); //Updating entity's logic, so the particles are only spawned for the "flying"-boolean true
	    	}
	    	
	    	
		    	if(worldObj.isRemote){     // or !worldObj.isRemote
		    		EntityFX particle = new EntityPortalFX(this.worldObj, this.posX, posY, this.posZ, 1.0F, 2.0F, 1.0F); // actually, these three lines are repeated six times in a for loop,
				particle.setRBGColorF(colorsR[i], colorsG[i], colorsB[i]); // to change colors and position. I simplified it a little here.
				Mod.proxy.addParticleEffect(particle);   // This method does nothing on server side and is only overridden by client
		    	
	    		
	    	}
	@SideOnly(Side.CLIENT)
	private void spawnParticle() {
	  final Minecraft minecraft = Minecraft.getMinecraft();
	  if (minecraft.gameSettings.particleSetting != 2) {
	    final EntityFX entityFX = new EntityFireworkSparkFX(worldObj, posX, posY + 1D, posZ,
	                                                        rand.nextGaussian() * 0.15D,
	                                                        -motionY * 0.5D,
	                                                        rand.nextGaussian() * 0.15D,
	                                                        minecraft.effectRenderer);
	    entityFX.setRBGColorF(rand.nextFloat(), rand.nextFloat(), rand.nextFloat());
	    minecraft.effectRenderer.addEffect(entityFX);
	  }
	}*/