aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java
diff options
context:
space:
mode:
authorLéa Gris <lea.gris@noiraude.net>2022-09-01 13:17:27 +0200
committerGitHub <noreply@github.com>2022-09-01 13:17:27 +0200
commitb1ac2dc90ec6847e5a328fb12a3ece3b670df33c (patch)
treeff74c772afc2239939f37d307fa026deef6edb5b /src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java
parent8a6973f2bddfb0a1485422725745c1078b1ea49e (diff)
downloadGT5-Unofficial-b1ac2dc90ec6847e5a328fb12a3ece3b670df33c.tar.gz
GT5-Unofficial-b1ac2dc90ec6847e5a328fb12a3ece3b670df33c.tar.bz2
GT5-Unofficial-b1ac2dc90ec6847e5a328fb12a3ece3b670df33c.zip
impl(covers): functional covers uses machine casing (#1317)
* impl(covers): functional covers uses machine casing - Functional covers now will let see the casing, when placed on machines. - When placed on pipes or frames, they continue to use their own tiered casing as they used to. * impr(cover): restore backward compat interface to cover registgration Registering covers with the old interface works again. Legacy cover registration just produce covers that renders the old way without transparency over machine casing. Removed the useless GT_Cover_Cased class and added the feature to the GT_CoverBehavior class, maintaining the old constructor alongside the new constructor with an overlay texture. * impr(covers): deprecate old constructors Delete totally redundant and unused EnergyOnly cover Keeps other unused covers as TODO reimplementation tasks * impr(covers): fludStorageMonitor overlay - Re-add FluidStorageMonitor fluid-texture overlay - Allow light-emitting fluids to render as glow texture. * impr(covers): Expand foreground texture support to GT_Cover_FacadeBase * spotlessapply
Diffstat (limited to 'src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java
index d4ec0a82d6..31a542a924 100644
--- a/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java
+++ b/src/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java
@@ -1,5 +1,6 @@
package gregtech.common.covers;
+import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.interfaces.tileentity.IMachineProgress;
import gregtech.api.util.GT_CoverBehavior;
@@ -7,7 +8,12 @@ import gregtech.api.util.GT_Utility;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.fluids.Fluid;
+@SuppressWarnings("unused") // TODO: Consider re-registering this
public class GT_Cover_RedstoneSignalizer extends GT_CoverBehavior {
+ GT_Cover_RedstoneSignalizer(ITexture coverTexture) {
+ super(coverTexture);
+ }
+
@Override
public boolean isRedstoneSensitive(
byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer) {