package com.minelittlepony.unicopia.particle.client;

import net.minecraft.client.particle.ParticleRain;
import net.minecraft.world.World;

public class ParticleRaindrops extends ParticleRain {

    public ParticleRaindrops(int id, World w, double x, double y, double z, double vX, double vY, double vZ, int... args) {
        this(w, x, y, z);
    }

    public ParticleRaindrops(World w, double x, double y, double z) {
        super(w, x, y, z);
        motionY = -0.1;
        particleMaxAge += 19;
    }

    public void onUpdate() {
        super.onUpdate();

        if (onGround) {
            motionX *= 0.30000001192092896D;
            motionY = Math.random() * 0.20000000298023224D + 0.10000000149011612D;
            motionZ *= 0.30000001192092896D;
        }
    }
}
