diff options
author | GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> | 2022-12-31 21:54:10 +0000 |
---|---|---|
committer | GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> | 2022-12-31 21:54:10 +0000 |
commit | 61eca9a41399ce9986121de252862f8e9c016ce1 (patch) | |
tree | 644de12c6c964a80d8ec7b88c38e7eaa50dd6a6d | |
parent | 8d25b7729d148cd189596e1eb650065f10e2a0db (diff) | |
download | GT5-Unofficial-61eca9a41399ce9986121de252862f8e9c016ce1.tar.gz GT5-Unofficial-61eca9a41399ce9986121de252862f8e9c016ce1.tar.bz2 GT5-Unofficial-61eca9a41399ce9986121de252862f8e9c016ce1.zip |
Test
-rw-r--r-- | src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java | 60 |
1 files changed, 26 insertions, 34 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java index f6fd1cde80..5733305bd1 100644 --- a/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java +++ b/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java @@ -70,7 +70,7 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer { GL11.glPushMatrix(); GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5); - renderBlockInWorld(sBlockCasingsTT, 0, 6, 0); + renderBlockInWorld(sBlockCasingsTT, 0, 6, 0, 15); // renderBlockInWorld(Blocks.bedrock, 0, 0+6, 0); // renderBlockInWorld(Blocks.brick_block, 0, 0+12, 0); @@ -185,10 +185,7 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer { } - -// private final RenderBlocks renderBlocksInstance = new RenderBlocks(); - - public void renderBlockInWorld(Block block, double x, double y, double z) { + public void renderBlockInWorld(Block block, double x, double y, double z, int meta) { Tessellator tes = Tessellator.instance; this.bindTexture(TextureMap.locationBlocksTexture); @@ -220,21 +217,19 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer { tes.startDrawingQuads(); - int meta = 15; - - IIcon texture = block.getIcon(4, meta); + IIcon texture = block.getIcon(0, meta); double minU = texture.getMinU(); double maxU = texture.getMaxU(); double minV = texture.getMinV(); double maxV = texture.getMaxV(); - tes.addVertexWithUV(X[0], Y[0], Z[0], maxU, maxV); - tes.addVertexWithUV(X[1], Y[1], Z[1], maxU, minV); - tes.addVertexWithUV(X[2], Y[2], Z[2], minU, minV); - tes.addVertexWithUV(X[3], Y[3], Z[3], minU, maxV); +// tes.addVertexWithUV(X[0], Y[0], Z[0], maxU, maxV); +// tes.addVertexWithUV(X[1], Y[1], Z[1], maxU, minV); +// tes.addVertexWithUV(X[2], Y[2], Z[2], minU, minV); +// tes.addVertexWithUV(X[3], Y[3], Z[3], minU, maxV); - texture = block.getIcon(5, meta); + texture = block.getIcon(1, meta); minU = texture.getMinU(); maxU = texture.getMaxU(); @@ -253,10 +248,10 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer { minV = texture.getMinV(); maxV = texture.getMaxV(); - tes.addVertexWithUV(X[4], Y[4], Z[4], maxU, maxV); - tes.addVertexWithUV(X[5], Y[5], Z[5], maxU, minV); - tes.addVertexWithUV(X[6], Y[6], Z[6], minU, minV); - tes.addVertexWithUV(X[7], Y[7], Z[7], minU, maxV); +// tes.addVertexWithUV(X[4], Y[4], Z[4], maxU, maxV); +// tes.addVertexWithUV(X[5], Y[5], Z[5], maxU, minV); +// tes.addVertexWithUV(X[6], Y[6], Z[6], minU, minV); +// tes.addVertexWithUV(X[7], Y[7], Z[7], minU, maxV); texture = block.getIcon(3, meta); @@ -265,37 +260,34 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer { minV = texture.getMinV(); maxV = texture.getMaxV(); - tes.addVertexWithUV(X[3], Y[3], Z[3], maxU, maxV); - tes.addVertexWithUV(X[2], Y[2], Z[2], maxU, minV); - tes.addVertexWithUV(X[5], Y[5], Z[5], minU, minV); - tes.addVertexWithUV(X[4], Y[4], Z[4], minU, maxV); +// tes.addVertexWithUV(X[3], Y[3], Z[3], maxU, maxV); +// tes.addVertexWithUV(X[2], Y[2], Z[2], maxU, minV); +// tes.addVertexWithUV(X[5], Y[5], Z[5], minU, minV); +// tes.addVertexWithUV(X[4], Y[4], Z[4], minU, maxV); - texture = block.getIcon(0, meta); + texture = block.getIcon(4, meta); minU = texture.getMinU(); maxU = texture.getMaxU(); minV = texture.getMinV(); maxV = texture.getMaxV(); - tes.addVertexWithUV(X[1], Y[1], Z[1], maxU, maxV); - tes.addVertexWithUV(X[6], Y[6], Z[6], maxU, minV); - tes.addVertexWithUV(X[5], Y[5], Z[5], minU, minV); - tes.addVertexWithUV(X[2], Y[2], Z[2], minU, maxV); +// tes.addVertexWithUV(X[1], Y[1], Z[1], maxU, maxV); +// tes.addVertexWithUV(X[6], Y[6], Z[6], maxU, minV); +// tes.addVertexWithUV(X[5], Y[5], Z[5], minU, minV); +// tes.addVertexWithUV(X[2], Y[2], Z[2], minU, maxV); - texture = block.getIcon(1, meta); + texture = block.getIcon(5, meta); minU = texture.getMinU(); maxU = texture.getMaxU(); minV = texture.getMinV(); maxV = texture.getMaxV(); - tes.addVertexWithUV(X[7], Y[7], Z[7], maxU, maxV); - tes.addVertexWithUV(X[0], Y[0], Z[0], maxU, minV); - tes.addVertexWithUV(X[3], Y[3], Z[3], minU, minV); - tes.addVertexWithUV(X[4], Y[4], Z[4], minU, maxV); - -// GL11.glRotatef((System.currentTimeMillis() / 32) % 360, 0F, 1F, 0F); - +// tes.addVertexWithUV(X[7], Y[7], Z[7], maxU, maxV); +// tes.addVertexWithUV(X[0], Y[0], Z[0], maxU, minV); +// tes.addVertexWithUV(X[3], Y[3], Z[3], minU, minV); +// tes.addVertexWithUV(X[4], Y[4], Z[4], minU, maxV); tes.draw(); // ---------------------------------------------- |