use of mods.railcraft.client.particles.ParticleDrip in project Railcraft by Railcraft.
the class FluidTools method drip.
@SideOnly(Side.CLIENT)
public static void drip(World world, BlockPos pos, IBlockState state, Random rand, float particleRed, float particleGreen, float particleBlue) {
if (rand.nextInt(10) == 0 && world.isSideSolid(pos.down(), EnumFacing.UP) && !WorldPlugin.getBlockMaterial(world, pos.down(2)).blocksMovement()) {
double px = (double) ((float) pos.getX() + rand.nextFloat());
double py = (double) pos.getY() - 1.05D;
double pz = (double) ((float) pos.getZ() + rand.nextFloat());
Particle fx = new ParticleDrip(world, new Vec3d(px, py, pz), particleRed, particleGreen, particleBlue);
FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx);
}
}
Aggregations