package com.yolp900.itsjustacharm.client.particles; import com.yolp900.itsjustacharm.reference.LibParticles; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import java.util.Random; public class ParticleConstructionTableConstruction extends ModParticle { private static Random rand = new Random(); public ParticleConstructionTableConstruction(World world, double x, double y, double z, double size, double red, double green, double blue) { super(LibParticles.ConstructionTableConstruction, world, x, y, z, size, red, green, blue); } @Override public ResourceLocation getParticleTexture() { int i = rand.nextInt(4) + 1; return new ResourceLocation(LibParticles.ConstructionTableConstruction.getTexture().getResourceDomain(), LibParticles.ConstructionTableConstruction.getTexture().getResourcePath() + i); } }