package com.infinityraider.agricraft.renderers.particles;

//heavily inspired by the OpenBlocks sprinkler
import com.infinityraider.agricraft.utility.BaseIcons;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class LiquidSprayFX extends AgriCraftFX {

    public LiquidSprayFX(World world, double x, double y, double z, float scale, float gravity, Vec3d vector) {
        super(world, x, y, z, scale, gravity, vector, new ResourceLocation("minecraft:textures/blocks/water_still.png"));
        this.particleMaxAge = 15;
        this.setSize(0.2f, 0.2f);
    }
}

@@ -154,16 +154,199 @@
 eIcons;%0A
+import net.minecraft.client.Minecraft;%0Aimport net.minecraft.client.renderer.VertexBuffer;%0Aimport net.minecraft.client.renderer.texture.TextureMap;%0Aimport net.minecraft.entity.Entity;%0A
 import n
@@ -932,11 +932,433 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public void renderParticle(VertexBuffer worldRenderer, Entity entity, float partialTicks, float f0, float f1, float f2, float f3, float f4) %7B%0A        Minecraft.getMinecraft().renderEngine.bindTexture(this.texture);%0A        super.renderParticle(worldRenderer, entity, partialTicks, f0, f1, f2, f3, f4);%0A        Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);%0A    %7D
 %0A%7D%0A

Replace texture after rendering sprinkler particle