public final void spawnBlockParticles(Level level, int x, int y, int z, int side,
                                          ParticleManager particleManager) {
        float offset = 0.1F;
        float var8 = x + random.nextFloat() * (minX - maxX - offset * 2F) + offset + maxX;
        float var9 = y + random.nextFloat() * (minY - maxY - offset * 2F) + offset + maxY;
        float var10 = z + random.nextFloat() * (minZ - maxZ - offset * 2F) + offset + maxZ;
        if (side == 0) {
            var9 = y + maxY - offset;
        }

        if (side == 1) {
            var9 = y + minY + offset;
        }

        if (side == 2) {
            var10 = z + maxZ - offset;
        }

        if (side == 3) {
            var10 = z + minZ + offset;
        }

        if (side == 4) {
            var8 = x + maxX - offset;
        }

        if (side == 5) {
            var8 = x + minX + offset;
        }

        particleManager.spawnParticle(new TerrainParticle(
                level, var8, var9, var10, 0F, 0F, 0F, this).setPower(0.2F).scale(0.6F));
    }