aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation
diff options
context:
space:
mode:
authorLéa Gris <lea.gris@noiraude.net>2022-10-03 21:53:50 +0200
committerGitHub <noreply@github.com>2022-10-03 21:53:50 +0200
commit0121112e5ea9c72050957af2c2ad4aecd9d70270 (patch)
tree60ce9a75d20a6d24023a636ec454d214f6bb0696 /src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation
parentef2dd18e2aaf27615e2aec3ab476f64596befc72 (diff)
downloadGT5-Unofficial-0121112e5ea9c72050957af2c2ad4aecd9d70270.tar.gz
GT5-Unofficial-0121112e5ea9c72050957af2c2ad4aecd9d70270.tar.bz2
GT5-Unofficial-0121112e5ea9c72050957af2c2ad4aecd9d70270.zip
ref(texture_api): update to the texture api (#386)
* ref(textures): replace deprecated texture objects with api * :spotlessapply
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricInventoryManager.java26
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java10
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java10
4 files changed, 28 insertions, 28 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
index 79400b68e6..6cdd391c49 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricAutoWorkbench.java
@@ -9,7 +9,7 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicTank;
import gregtech.api.objects.GT_ItemStack;
-import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;
@@ -836,13 +836,13 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
public ITexture[] getFront(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay)
+ TextureFactory.of(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay)
};
}
public ITexture[] getBack(final byte aColor) {
return new ITexture[] {
- Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1], new GT_RenderedTexture(BlockIcons.OVERLAY_PIPE)
+ Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1], TextureFactory.of(BlockIcons.OVERLAY_PIPE)
};
}
@@ -855,14 +855,14 @@ public class GT_MetaTileEntity_ElectricAutoWorkbench extends GT_MetaTileEntity_B
public ITexture[] getTop(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay)
+ TextureFactory.of(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay)
};
}
public ITexture[] getSides(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay)
+ TextureFactory.of(TexturesGtBlock.Casing_Adv_Workbench_Crafting_Overlay)
};
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricInventoryManager.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricInventoryManager.java
index ebce1fcec6..be4eb1d4b8 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricInventoryManager.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_ElectricInventoryManager.java
@@ -7,7 +7,7 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_TieredMachineBlock;
import gregtech.api.objects.GT_ItemStack;
-import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Utility;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.gui.automation.GT_Container_ElectricInventoryManager;
@@ -520,84 +520,84 @@ public class GT_MetaTileEntity_ElectricInventoryManager extends GT_MetaTileEntit
public ITexture[] getBottom(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Red)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Red)
};
}
public ITexture[] getTop(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Green)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Green)
};
}
public ITexture[] getNegativeZ(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Blue)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Blue)
};
}
public ITexture[] getPositiveZ(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Cyan)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Cyan)
};
}
public ITexture[] getNegativeX(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Purple)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Purple)
};
}
public ITexture[] getPositiveX(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Yellow)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Yellow)
};
}
public ITexture[] getBottomRedstone(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Red_Redstone)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Red_Redstone)
};
}
public ITexture[] getTopRedstone(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Green_Redstone)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Green_Redstone)
};
}
public ITexture[] getNegativeZRedstone(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Blue_Redstone)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Blue_Redstone)
};
}
public ITexture[] getPositiveZRedstone(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Cyan_Redstone)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Cyan_Redstone)
};
}
public ITexture[] getNegativeXRedstone(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Purple_Redstone)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Purple_Redstone)
};
}
public ITexture[] getPositiveXRedstone(final byte aColor) {
return new ITexture[] {
Textures.BlockIcons.MACHINE_CASINGS[mTier][aColor + 1],
- new GT_RenderedTexture(TexturesGtBlock.Casing_InventoryManagaer_Yellow_Redstone)
+ TextureFactory.of(TexturesGtBlock.Casing_InventoryManagaer_Yellow_Redstone)
};
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
index b990e3c55e..53886c1cac 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
@@ -9,7 +9,7 @@ import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicTank;
-import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Config;
import gregtech.api.util.GT_Utility;
import gtPlusPlus.api.objects.Logger;
@@ -683,12 +683,12 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
final boolean aRedstone) {
return aSide == aFacing
? new ITexture[] {
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency)
+ TextureFactory.of(TexturesGtBlock.Casing_Machine_Dimensional),
+ TextureFactory.of(TexturesGtBlock.Casing_Machine_Screen_Frequency)
}
: new ITexture[] {
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(Textures.BlockIcons.VOID)
+ TextureFactory.of(TexturesGtBlock.Casing_Machine_Dimensional),
+ TextureFactory.of(Textures.BlockIcons.VOID)
};
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
index 5d2a9ae009..cd4379b488 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
@@ -5,7 +5,7 @@ import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicTank;
-import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Config;
import gregtech.api.util.GT_Utility;
import gtPlusPlus.core.lib.CORE;
@@ -551,12 +551,12 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
final boolean aRedstone) {
return aSide == aFacing
? new ITexture[] {
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Screen_Frequency)
+ TextureFactory.of(TexturesGtBlock.Casing_Machine_Dimensional),
+ TextureFactory.of(TexturesGtBlock.Casing_Machine_Screen_Frequency)
}
: new ITexture[] {
- new GT_RenderedTexture(TexturesGtBlock.Casing_Machine_Dimensional),
- new GT_RenderedTexture(Textures.BlockIcons.VOID)
+ TextureFactory.of(TexturesGtBlock.Casing_Machine_Dimensional),
+ TextureFactory.of(Textures.BlockIcons.VOID)
};
}