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/api/util/LightingHelper.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/main/java/gregtech/api/util') diff --git a/src/main/java/gregtech/api/util/LightingHelper.java b/src/main/java/gregtech/api/util/LightingHelper.java index 7bffbfd00d..5aa9000bf2 100644 --- a/src/main/java/gregtech/api/util/LightingHelper.java +++ b/src/main/java/gregtech/api/util/LightingHelper.java @@ -312,6 +312,33 @@ public class LightingHelper { return ao1 > ao2 ? ao1 - diff : ao1 + diff; } + /** + * @see #setupLightingXNeg(Block, int, int, int) + * @see #setupLightingYNeg(Block, int, int, int) + * @see #setupLightingZNeg(Block, int, int, int) + * @see #setupLightingXPos(Block, int, int, int) + * @see #setupLightingYPos(Block, int, int, int) + * @see #setupLightingZPos(Block, int, int, int) + */ + public LightingHelper setupLighting(Block block, int x, int y, int z, byte facing) { + switch (facing) { + case 0: + return setupLightingYNeg(block, x, y, z); + case 1: + return setupLightingYPos(block, x, y, z); + case 2: + return setupLightingZNeg(block, x, y, z); + case 3: + return setupLightingZPos(block, x, y, z); + case 4: + return setupLightingXNeg(block, x, y, z); + case 5: + return setupLightingXPos(block, x, y, z); + default: + throw new IllegalArgumentException("Unknown side: " + facing); + } + } + /** * Sets up lighting for the West face and returns the {@link LightingHelper}. *

-- cgit