aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2023-01-31 02:23:25 +0800
committerGitHub <noreply@github.com>2023-01-30 19:23:25 +0100
commit9285806d9e089b183caf9985718cee115ec75396 (patch)
tree697cb793cfb08f26d07829d4ca2e350cdfe4564b /src/main/java/gregtech/api/util
parentdf5f9d448647d5ccf9eb774a244319e54021ede0 (diff)
downloadGT5-Unofficial-9285806d9e089b183caf9985718cee115ec75396.tar.gz
GT5-Unofficial-9285806d9e089b183caf9985718cee115ec75396.tar.bz2
GT5-Unofficial-9285806d9e089b183caf9985718cee115ec75396.zip
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 <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/LightingHelper.java27
1 files changed, 27 insertions, 0 deletions
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
@@ -313,6 +313,33 @@ public class LightingHelper {
}
/**
+ * @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}.
* <p>
* This is a consolidated <code>method</code> that sets side shading