diff options
6 files changed, 25 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++) { diff --git a/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER.png b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER.png Binary files differnew file mode 100644 index 0000000000..50c05f7a93 --- /dev/null +++ b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER.png diff --git a/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER.png.mcmeta b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER.png.mcmeta new file mode 100644 index 0000000000..97596ba817 --- /dev/null +++ b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER.png.mcmeta @@ -0,0 +1,5 @@ +{ + "animation":{ + "frametime":2 + } +}
\ No newline at end of file diff --git a/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER_ULT.png.mcmeta b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER_ULT.png.mcmeta new file mode 100644 index 0000000000..dfae8cae16 --- /dev/null +++ b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER_ULT.png.mcmeta @@ -0,0 +1,5 @@ +{ + "animation":{ + "frametime":1 + } +}
\ No newline at end of file diff --git a/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER_ULTI.png b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER_ULTI.png Binary files differnew file mode 100644 index 0000000000..5ce89b94aa --- /dev/null +++ b/src/main/resources/assets/gregtech/textures/blocks/TESLA_COVER_ULTI.png |