From 9285806d9e089b183caf9985718cee115ec75396 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Tue, 31 Jan 2023 02:23:25 +0800 Subject: add back turbine wallsharing (#1699) * add back turbine wallsharing Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * use new texture from @Jimbno Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * remove unnecessary structure checks it turns out you cannot build 2 functional large turbine at these locations anyway, so why not? Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * spotless Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * update bs * use the original grey for empty texture these are slightly darker, and looks better Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> --------- Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Co-authored-by: Martin Robertz --- .../java/gregtech/common/render/GT_RenderUtil.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/main/java/gregtech/common/render/GT_RenderUtil.java') diff --git a/src/main/java/gregtech/common/render/GT_RenderUtil.java b/src/main/java/gregtech/common/render/GT_RenderUtil.java index ef0cae11ff..df490f4806 100644 --- a/src/main/java/gregtech/common/render/GT_RenderUtil.java +++ b/src/main/java/gregtech/common/render/GT_RenderUtil.java @@ -1,9 +1,36 @@ package gregtech.common.render; +import net.minecraft.block.Block; +import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.IIcon; public class GT_RenderUtil { + + public static void renderBlockIcon( + RenderBlocks aRenderer, Block aBlock, double aX, double aY, double aZ, IIcon aIcon, byte aSide) { + switch (aSide) { + case 0: + aRenderer.renderFaceYNeg(aBlock, aX, aY, aZ, aIcon); + return; + case 1: + aRenderer.renderFaceYPos(aBlock, aX, aY, aZ, aIcon); + return; + case 2: + aRenderer.renderFaceZNeg(aBlock, aX, aY, aZ, aIcon); + return; + case 3: + aRenderer.renderFaceZPos(aBlock, aX, aY, aZ, aIcon); + return; + case 4: + aRenderer.renderFaceXNeg(aBlock, aX, aY, aZ, aIcon); + return; + case 5: + aRenderer.renderFaceXPos(aBlock, aX, aY, aZ, aIcon); + return; + } + } + public static void renderItemIcon(IIcon icon, double size, double z, float nx, float ny, float nz) { renderItemIcon(icon, 0.0D, 0.0D, size, size, z, nx, ny, nz); } -- cgit