fun build(@Nullable quadConsumer: Consumer<UnpackedBakedQuad.Builder?>?): List<BakedQuad>? { val quads: MutableList<BakedQuad> = ArrayList<BakedQuad>(this.vertices.size() / 4) if (this.vertices.size() % 4 !== 0) throw RuntimeException("Invalid number of vertices") var i = 0 while (i < this.vertices.size()) { val vert1: sun.security.provider.certpath.Vertex = this.vertices.get(i) val vert2: sun.security.provider.certpath.Vertex = this.vertices.get(i + 1)
Builds the quads . Specify a consumer to modify the quads