diff options
author | Léa Gris <lea.gris@noiraude.net> | 2022-09-01 13:17:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 13:17:27 +0200 |
commit | b1ac2dc90ec6847e5a328fb12a3ece3b670df33c (patch) | |
tree | ff74c772afc2239939f37d307fa026deef6edb5b /src/main/java/gregtech/common/covers/GT_Cover_Lens.java | |
parent | 8a6973f2bddfb0a1485422725745c1078b1ea49e (diff) | |
download | GT5-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_Lens.java')
-rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_Lens.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_Lens.java b/src/main/java/gregtech/common/covers/GT_Cover_Lens.java index 735959e15c..b8675bf1c2 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_Lens.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_Lens.java @@ -1,12 +1,22 @@ package gregtech.common.covers; +import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.ICoverable; import gregtech.api.util.GT_CoverBehavior; public class GT_Cover_Lens extends GT_CoverBehavior { private final byte mColor; + /** + * @deprecated use {@link #GT_Cover_Lens(byte aColor, ITexture coverTexture)} instead. + */ + @Deprecated public GT_Cover_Lens(byte aColor) { + this(aColor, null); + } + + public GT_Cover_Lens(byte aColor, ITexture coverTexture) { + super(coverTexture); this.mColor = aColor; } |