use of stevekung.mods.moreplanets.planets.diona.client.particle.ParticleInfectedPurloniteFlame in project MorePlanets by SteveKunG.
the class ClientProxyMP method spawnParticle.
@Override
public void spawnParticle(EnumParticleTypesMP type, double x, double y, double z, double motionX, double motionY, double motionZ, Object[] data) {
Minecraft mc = Minecraft.getMinecraft();
if (mc.getRenderViewEntity() != null && mc.effectRenderer != null && mc.world != null) {
int i = mc.gameSettings.particleSetting;
double d6 = mc.getRenderViewEntity().posX - x;
double d7 = mc.getRenderViewEntity().posY - y;
double d8 = mc.getRenderViewEntity().posZ - z;
double d9 = 16.0D;
if (i == 1 && mc.world.rand.nextInt(3) == 0) {
i = 2;
}
if (d6 * d6 + d7 * d7 + d8 * d8 > d9 * d9) {
return;
} else if (i > 1) {
return;
}
if (type == EnumParticleTypesMP.INFECTED_PURLONITE_FLAME) {
mc.effectRenderer.addEffect(new ParticleInfectedPurloniteFlame(mc.world, x, y, z));
} else if (type == EnumParticleTypesMP.CHEESE_MILK_DRIP) {
mc.effectRenderer.addEffect(new ParticleLiquidDrip(mc.world, x, y, z, ColorUtils.intToRGB(255, 236, 182, 210), false));
} else if (type == EnumParticleTypesMP.INFECTED_SPORE) {
mc.effectRenderer.addEffect(new ParticleInfectedSpore(mc.world, x, y, z, motionX, motionY, motionZ));
} else if (type == EnumParticleTypesMP.ALIEN_MINER_SPARK) {
mc.effectRenderer.addEffect(new ParticleAlienMinerSpark(mc.world, x, y, z, (float) data[0]));
} else if (type == EnumParticleTypesMP.INFECTED_GUARDIAN_APPEARANCE) {
mc.effectRenderer.addEffect(new ParticleInfectedGuardianAppearance(mc.world, x, y, z));
} else if (type == EnumParticleTypesMP.DARK_PORTAL) {
mc.effectRenderer.addEffect(new ParticleDarkPortal(mc.world, x, y, z, motionX, motionY, motionZ));
} else if (type == EnumParticleTypesMP.ALIEN_BERRY_LEAVES_SPARK) {
mc.effectRenderer.addEffect(new ParticleAlienBerryLeavesSpark(mc.world, x, y, z));
} else if (type == EnumParticleTypesMP.CUSTOM_BREAKING) {
mc.effectRenderer.addEffect(new ParticleBreakingMC(mc.world, x, y, z, (Item) data[0]));
} else if (type == EnumParticleTypesMP.CUSTOM_BREAKING_MOTION) {
mc.effectRenderer.addEffect(new ParticleBreakingMC(mc.world, x, y, z, motionX, motionY, motionZ, (Item) data[0]));
} else if (type == EnumParticleTypesMP.INFECTED_WATER_DRIP) {
mc.effectRenderer.addEffect(new ParticleLiquidDrip(mc.world, x, y, z, ColorUtils.intToRGB(133, 51, 31, 204), false));
} else if (type == EnumParticleTypesMP.INFECTED_PURLONITE_WATER_DRIP) {
mc.effectRenderer.addEffect(new ParticleLiquidDrip(mc.world, x, y, z, ColorUtils.intToRGB(133, 102, 194, 150), false));
} else if (type == EnumParticleTypesMP.INFECTED_PURLONITE_LAVA_DRIP) {
mc.effectRenderer.addEffect(new ParticleLiquidDrip(mc.world, x, y, z, ColorUtils.intToRGB(153, 127, 204, 255), true));
} else if (type == EnumParticleTypesMP.INFECTED_PURLONITE_LAVA) {
mc.effectRenderer.addEffect(new ParticleLavaMC(mc.world, x, y, z, "infected_purlonite_lava"));
} else if (type == EnumParticleTypesMP.NUCLEAR_WASTE_DRIP) {
mc.effectRenderer.addEffect(new ParticleLiquidDrip(mc.world, x, y, z, ColorUtils.intToRGB(145, 242, 88, 255), true));
} else if (type == EnumParticleTypesMP.PURIFY_WATER_DRIP) {
mc.effectRenderer.addEffect(new ParticleLiquidDrip(mc.world, x, y, z, ColorUtils.intToRGB(147, 209, 255, 130), false));
} else if (type == EnumParticleTypesMP.KOENTUS_METEOR_SMOKE) {
mc.effectRenderer.addEffect(new ParticleKoentusMeteor(mc.world, x, y, z));
} else if (type == EnumParticleTypesMP.CUSTOM_FALLING_DUST) {
mc.effectRenderer.addEffect(new ParticleFallingDustMP(mc.world, x, y, z, (int) data[0]));
} else if (type == EnumParticleTypesMP.GRAVITY_HARVESTER) {
mc.effectRenderer.addEffect(new ParticleGravityHarvester(mc.world, x, y, z, (boolean) data[0]));
} else if (type == EnumParticleTypesMP.INFECTED_RAIN) {
mc.effectRenderer.addEffect(new ParticleCustomRain(mc.world, x, y, z, "infected_rain"));
} else if (type == EnumParticleTypesMP.PURIFIED_RAIN) {
mc.effectRenderer.addEffect(new ParticleCustomRain(mc.world, x, y, z, "purified_rain"));
}
}
}
Aggregations