aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/ChunkMesh.java')
-rw-r--r--src/main/java/makamys/neodymium/renderer/ChunkMesh.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
index 8aedc4d..f2482ef 100644
--- a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
+++ b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
@@ -72,7 +72,7 @@ public class ChunkMesh extends Mesh {
private static int totalOriginalQuadCount = 0;
private static int totalSimplifiedQuadCount = 0;
- public static CullableMeshCollection fromTessellator(int pass, WorldRenderer wr, Tessellator t) {
+ public static ChunkMesh fromTessellator(int pass, WorldRenderer wr, Tessellator t) {
if(t.vertexCount % 4 != 0) {
System.out.println("Error: Vertex count is not a multiple of 4");
return null;
@@ -132,7 +132,7 @@ public class ChunkMesh extends Mesh {
//System.out.println("simplified quads " + totalOriginalQuadCount + " -> " + totalSimplifiedQuadCount + " (ratio: " + ((float)totalSimplifiedQuadCount / (float)totalOriginalQuadCount) + ") totalMergeCountByPlane: " + Arrays.toString(totalMergeCountByPlane));
if(quadCount > 0) {
- return new CullableMeshCollection(
+ return new ChunkMesh(
(int)(xOffset / 16), (int)(yOffset / 16), (int)(zOffset / 16),
new ChunkMesh.Flags(t.hasTexture, t.hasBrightness, t.hasColor, t.hasNormals),
quadCount, quads, pass);
@@ -296,7 +296,7 @@ public class ChunkMesh extends Mesh {
//Tessellator.endSave();
}
- static List<CullableMeshCollection> getChunkMesh(int theX, int theY, int theZ) {
+ static List<ChunkMesh> getChunkMesh(int theX, int theY, int theZ) {
WorldRenderer wr = new WorldRenderer(Minecraft.getMinecraft().theWorld, new ArrayList<TileEntity>(), theX * 16, theY * 16, theZ * 16, 100000);
wr.isWaitingOnOcclusionQuery = false;