Disable .blend export for 1.7.10
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend;
|
||||
|
||||
import com.replaymod.render.blend.data.DMaterial;
|
||||
@@ -263,3 +264,4 @@ public class BlendMeshBuilder
|
||||
return mesh;
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -2,12 +2,14 @@ package com.replaymod.render.blend;
|
||||
|
||||
import com.replaymod.render.blend.data.DScene;
|
||||
import com.replaymod.render.blend.data.Serializer;
|
||||
//#if MC>=10800
|
||||
import com.replaymod.render.blend.exporters.ChunkExporter;
|
||||
import com.replaymod.render.blend.exporters.EntityExporter;
|
||||
import com.replaymod.render.blend.exporters.ItemExporter;
|
||||
import com.replaymod.render.blend.exporters.ParticlesExporter;
|
||||
import com.replaymod.render.blend.exporters.RenderState;
|
||||
import com.replaymod.render.blend.exporters.TileEntityExporter;
|
||||
//#endif
|
||||
import net.minecraft.crash.CrashReport;
|
||||
import net.minecraft.crash.CrashReportCategory;
|
||||
import net.minecraft.util.ReportedException;
|
||||
@@ -48,6 +50,7 @@ public class BlendState implements Exporter {
|
||||
this.blenderFile = BlenderFactory.newBlenderFile(file);
|
||||
this.factory = new BlenderFactory(blenderFile);
|
||||
|
||||
//#if MC>=10800
|
||||
RenderState renderState = new RenderState(this);
|
||||
register(renderState);
|
||||
register(new ChunkExporter());
|
||||
@@ -55,6 +58,7 @@ public class BlendState implements Exporter {
|
||||
register(new TileEntityExporter(renderState));
|
||||
register(new ParticlesExporter(renderState));
|
||||
register(new ItemExporter(renderState));
|
||||
//#endif
|
||||
}
|
||||
|
||||
public void register(Exporter exporter) {
|
||||
|
||||
@@ -19,12 +19,6 @@ import org.cakelab.blender.nio.CPointer;
|
||||
import org.lwjgl.util.vector.Vector2f;
|
||||
import org.lwjgl.util.vector.Vector3f;
|
||||
|
||||
//#if MC>=10904
|
||||
import net.minecraft.util.math.Vec3i;
|
||||
//#else
|
||||
//$$ import net.minecraft.util.Vec3i;
|
||||
//#endif
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -197,7 +191,7 @@ public class DMesh {
|
||||
|
||||
public static class Vertex {
|
||||
public Vector3f pos;
|
||||
public Vec3i norm = Vec3i.NULL_VECTOR;
|
||||
public short normX, normY, normZ;
|
||||
|
||||
public Vertex(float x, float y, float z) {
|
||||
this.pos = new Vector3f(x, y, z);
|
||||
@@ -209,9 +203,9 @@ public class DMesh {
|
||||
pos.set(1, this.pos.y);
|
||||
pos.set(2, this.pos.z);
|
||||
CArrayFacade<Short> norm = mVert.getNo();
|
||||
norm.set(0, (short) this.norm.getX());
|
||||
norm.set(1, (short) this.norm.getY());
|
||||
norm.set(2, (short) this.norm.getZ());
|
||||
norm.set(0, this.normX);
|
||||
norm.set(1, this.normY);
|
||||
norm.set(2, this.normZ);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendMeshBuilder;
|
||||
@@ -173,3 +174,4 @@ public class ChunkExporter implements Exporter {
|
||||
|
||||
private static final int STRIDE = 28;
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -81,3 +82,4 @@ public class EntityExporter implements Exporter {
|
||||
renderState.pop();
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendMeshBuilder;
|
||||
@@ -133,3 +134,4 @@ public class ItemExporter implements Exporter {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendMeshBuilder;
|
||||
@@ -104,3 +105,4 @@ public class ModelRendererExporter implements Exporter {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendMeshBuilder;
|
||||
@@ -168,3 +169,4 @@ public class ParticlesExporter implements Exporter {
|
||||
particleObjectsSeen = new IdentityHashMap<>();
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -141,3 +142,4 @@ public class RenderState implements Exporter {
|
||||
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.exporters;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -106,3 +107,4 @@ public class TileEntityExporter implements Exporter {
|
||||
tileEntityObjectsSeen = new IdentityHashMap<>();
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -29,3 +30,4 @@ public abstract class MixinChunkRenderWorker {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -53,3 +54,4 @@ public abstract class MixinEffectRenderer {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -63,3 +64,4 @@ public abstract class MixinModelRenderer {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -66,3 +67,4 @@ public abstract class MixinRenderGlobal {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -32,3 +33,4 @@ public abstract class MixinRenderItem {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -48,3 +49,4 @@ public abstract class MixinRenderManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//#if MC>=10800
|
||||
package com.replaymod.render.blend.mixin;
|
||||
|
||||
import com.replaymod.render.blend.BlendState;
|
||||
@@ -43,3 +44,4 @@ public abstract class MixinTileEntityRendererDispatcher {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
|
||||
Reference in New Issue
Block a user