aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/objects/GT_MultiTexture.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2022-02-04 14:50:55 -0800
committerGitHub <noreply@github.com>2022-02-04 23:50:55 +0100
commit2f85ea82f372efd8fae5ebff6c9f0bb81f2f63aa (patch)
treefbe5420120647fdad382f8b63a1515bff82576e8 /src/main/java/gregtech/api/objects/GT_MultiTexture.java
parentf77315eb88b266bfa4079cad2f60fbc533b83617 (diff)
downloadGT5-Unofficial-2f85ea82f372efd8fae5ebff6c9f0bb81f2f63aa.tar.gz
GT5-Unofficial-2f85ea82f372efd8fae5ebff6c9f0bb81f2f63aa.tar.bz2
GT5-Unofficial-2f85ea82f372efd8fae5ebff6c9f0bb81f2f63aa.zip
Texture Shenanigans (#915)
* Texture Shenanigans - Get rid of all the TODOs and run everything through the new Texture API in a backwards compatible way. * allow bw runclient to run * Add obf name Co-authored-by: bombcar <github@bombcar.com>
Diffstat (limited to 'src/main/java/gregtech/api/objects/GT_MultiTexture.java')
-rw-r--r--src/main/java/gregtech/api/objects/GT_MultiTexture.java46
1 files changed, 3 insertions, 43 deletions
diff --git a/src/main/java/gregtech/api/objects/GT_MultiTexture.java b/src/main/java/gregtech/api/objects/GT_MultiTexture.java
index 9d664b4dfb..51ab7615b4 100644
--- a/src/main/java/gregtech/api/objects/GT_MultiTexture.java
+++ b/src/main/java/gregtech/api/objects/GT_MultiTexture.java
@@ -1,8 +1,6 @@
package gregtech.api.objects;
import gregtech.api.interfaces.ITexture;
-import net.minecraft.block.Block;
-import net.minecraft.client.renderer.RenderBlocks;
/**
* <p>Lets Multiple ITextures Render overlay over each other.<</p>
@@ -10,51 +8,13 @@ import net.minecraft.client.renderer.RenderBlocks;
* @deprecated Replaced by the {@link gregtech.api.render.TextureFactory} API.
*/
@Deprecated
-public class GT_MultiTexture implements ITexture {
- private final ITexture[] mTextures;
-
+public class GT_MultiTexture extends gregtech.common.render.GT_MultiTexture implements ITexture {
public GT_MultiTexture(ITexture... aTextures) {
- mTextures = aTextures;
- }
-
- @Override
- public void renderXPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) {
- for (ITexture tTexture : mTextures)
- if (tTexture != null && tTexture.isValidTexture()) tTexture.renderXPos(aRenderer, aBlock, aX, aY, aZ);
- }
-
- @Override
- public void renderXNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) {
- for (ITexture tTexture : mTextures)
- if (tTexture != null && tTexture.isValidTexture()) tTexture.renderXNeg(aRenderer, aBlock, aX, aY, aZ);
- }
-
- @Override
- public void renderYPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) {
- for (ITexture tTexture : mTextures)
- if (tTexture != null && tTexture.isValidTexture()) tTexture.renderYPos(aRenderer, aBlock, aX, aY, aZ);
- }
-
- @Override
- public void renderYNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) {
- for (ITexture tTexture : mTextures)
- if (tTexture != null && tTexture.isValidTexture()) tTexture.renderYNeg(aRenderer, aBlock, aX, aY, aZ);
- }
-
- @Override
- public void renderZPos(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) {
- for (ITexture tTexture : mTextures)
- if (tTexture != null && tTexture.isValidTexture()) tTexture.renderZPos(aRenderer, aBlock, aX, aY, aZ);
- }
-
- @Override
- public void renderZNeg(RenderBlocks aRenderer, Block aBlock, int aX, int aY, int aZ) {
- for (ITexture tTexture : mTextures)
- if (tTexture != null && tTexture.isValidTexture()) tTexture.renderZNeg(aRenderer, aBlock, aX, aY, aZ);
+ super(aTextures);
}
@Override
- public boolean isValidTexture() {
+ public boolean isOldTexture() {
return true;
}
}