diff options
author | Bass <tudurap.com@gmail.com> | 2019-07-23 16:10:57 +0100 |
---|---|---|
committer | Bass <tudurap.com@gmail.com> | 2019-07-23 16:10:57 +0100 |
commit | 03a58064455f8a2786ad8ce9ce3ef5bf9a96bcbd (patch) | |
tree | 5fdb384ddbe32113c87e48d240818c5c7bfcd3cf /src/main/java | |
parent | 2584daaeea58842b059b8fd5c5df71620709cda1 (diff) | |
download | GT5-Unofficial-03a58064455f8a2786ad8ce9ce3ef5bf9a96bcbd.tar.gz GT5-Unofficial-03a58064455f8a2786ad8ce9ce3ef5bf9a96bcbd.tar.bz2 GT5-Unofficial-03a58064455f8a2786ad8ce9ce3ef5bf9a96bcbd.zip |
Tesla Cover Textures (untested)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/github/technus/tectech/loader/thing/CoverLoader.java | 12 | ||||
-rw-r--r-- | src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/src/main/java/com/github/technus/tectech/loader/thing/CoverLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/CoverLoader.java index e71489339e..067cb0f4a0 100644 --- a/src/main/java/com/github/technus/tectech/loader/thing/CoverLoader.java +++ b/src/main/java/com/github/technus/tectech/loader/thing/CoverLoader.java @@ -1,19 +1,21 @@ package com.github.technus.tectech.loader.thing; import com.github.technus.tectech.TecTech; - import com.github.technus.tectech.thing.cover.GT_Cover_TM_TeslaCoil; import com.github.technus.tectech.thing.cover.GT_Cover_TM_TeslaCoil_Ultimate; import com.github.technus.tectech.thing.item.TeslaCoilCover; import com.github.technus.tectech.thing.item.TeslaCoilCoverUltimate; import gregtech.api.GregTech_API; -import gregtech.api.enums.Textures; -import gregtech.api.objects.GT_RenderedTexture; import net.minecraft.item.ItemStack; + +import static com.github.technus.tectech.thing.metaTileEntity.Textures.TESLA_COVER_TEXTURES; + public class CoverLoader implements Runnable { public void run(){ - GregTech_API.registerCover(new ItemStack(TeslaCoilCover.INSTANCE, 1), new GT_RenderedTexture(Textures.BlockIcons.VENT_NORMAL), new GT_Cover_TM_TeslaCoil()); - GregTech_API.registerCover(new ItemStack(TeslaCoilCoverUltimate.INSTANCE, 1), new GT_RenderedTexture(Textures.BlockIcons.VENT_ADVANCED), new GT_Cover_TM_TeslaCoil_Ultimate()); + //GregTech_API.registerCover(new ItemStack(TeslaCoilCover.INSTANCE, 1), new GT_RenderedTexture(Textures.BlockIcons.VENT_NORMAL), new GT_Cover_TM_TeslaCoil()); + //GregTech_API.registerCover(new ItemStack(TeslaCoilCoverUltimate.INSTANCE, 1), new GT_RenderedTexture(Textures.BlockIcons.VENT_ADVANCED), new GT_Cover_TM_TeslaCoil_Ultimate()); + GregTech_API.registerCover(new ItemStack(TeslaCoilCover.INSTANCE, 1), TESLA_COVER_TEXTURES[0], new GT_Cover_TM_TeslaCoil()); + GregTech_API.registerCover(new ItemStack(TeslaCoilCoverUltimate.INSTANCE, 1), TESLA_COVER_TEXTURES[1], new GT_Cover_TM_TeslaCoil_Ultimate()); TecTech.LOGGER.info("Cover functionality registered"); } } diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java index d77749d130..ea4a3dcb79 100644 --- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java +++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/Textures.java @@ -33,6 +33,9 @@ public class Textures { private static final IIconContainer MACHINE_OPV_BOTTOM = new CustomIcon("iconsets/MACHINE_OPV_BOTTOM"); private static final IIconContainer MACHINE_MAXV_BOTTOM = new CustomIcon("iconsets/MACHINE_MAXV_BOTTOM"); + private static final IIconContainer TESLA_COVER_ICON = new CustomIcon("iconsets/TESLA_COVER"); + private static final IIconContainer TESLA_COVER_ULTIMATE_ICON = new CustomIcon("iconsets/TESLA_COVER_ULT"); + public static IIconContainer[] MACHINECASINGS_SIDE_TT = new IIconContainer[]{ MACHINE_8V_SIDE, MACHINE_LV_SIDE, MACHINE_MV_SIDE, MACHINE_HV_SIDE, MACHINE_EV_SIDE, MACHINE_IV_SIDE, MACHINE_LuV_SIDE, MACHINE_ZPM_SIDE, @@ -189,6 +192,11 @@ public class Textures { public static ITexture[][] MACHINE_CASINGS_TT = new ITexture[16][17]; + public static ITexture[] TESLA_COVER_TEXTURES = new ITexture[]{ + new GT_RenderedTexture(TESLA_COVER_ICON), + new GT_RenderedTexture(TESLA_COVER_ULTIMATE_ICON) + }; + public Textures(){ for (byte i = 0; i < MACHINE_CASINGS_TT.length; i++) { for (byte j = 0; j < MACHINE_CASINGS_TT[i].length; j++) { |