aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/tectech/loader/thing/CoverLoader.java
blob: d5c203e91df8db53140f9149d90c015eaa6eddb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package tectech.loader.thing;

import net.minecraft.item.ItemStack;

import gregtech.api.GregTechAPI;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.IIconContainer;
import gregtech.api.objects.GTRenderedTexture;
import tectech.TecTech;
import tectech.thing.cover.CoverEnderFluidLink;
import tectech.thing.cover.CoverPowerPassUpgrade;
import tectech.thing.cover.CoverTeslaCoil;
import tectech.thing.cover.CoverTeslaCoilUltimate;
import tectech.thing.item.ItemEnderFluidLinkCover;
import tectech.thing.item.ItemPowerPassUpgradeCover;
import tectech.thing.item.ItemTeslaCoilCover;

public class CoverLoader implements Runnable {

    public void run() {
        final IIconContainer TESLA_OVERLAY = new Textures.BlockIcons.CustomIcon("iconsets/TESLA_OVERLAY");
        final IIconContainer TESLA_OVERLAY_ULTIMATE = new Textures.BlockIcons.CustomIcon(
            "iconsets/TESLA_OVERLAY_ULTIMATE");
        final IIconContainer ENDERFLUIDLINK_OVERLAY = new Textures.BlockIcons.CustomIcon(
            "iconsets/ENDERFLUIDLINK_OVERLAY");
        final IIconContainer POWERPASSUPGRADE_OVERLAY = new Textures.BlockIcons.CustomIcon(
            "iconsets/POWERPASSUPGRADE_OVERLAY");

        GregTechAPI.registerCover(
            new ItemStack(ItemTeslaCoilCover.INSTANCE, 1, 0),
            new GTRenderedTexture(TESLA_OVERLAY),
            new CoverTeslaCoil());
        GregTechAPI.registerCover(
            new ItemStack(ItemTeslaCoilCover.INSTANCE, 1, 1),
            new GTRenderedTexture(TESLA_OVERLAY_ULTIMATE),
            new CoverTeslaCoilUltimate());
        GregTechAPI.registerCover(
            new ItemStack(ItemEnderFluidLinkCover.INSTANCE, 1, 0),
            new GTRenderedTexture(ENDERFLUIDLINK_OVERLAY),
            new CoverEnderFluidLink());
        GregTechAPI.registerCover(
            new ItemStack(ItemPowerPassUpgradeCover.INSTANCE, 1, 0),
            new GTRenderedTexture(POWERPASSUPGRADE_OVERLAY),
            new CoverPowerPassUpgrade());
        TecTech.LOGGER.info("Cover functionality registered");
    }
}