2013-12-27 23:59:59 +01:00
|
|
|
package appeng.client.texture;
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.client.renderer.texture.TextureMap;
|
2014-02-09 02:34:52 +01:00
|
|
|
import net.minecraft.util.IIcon;
|
2013-12-27 23:59:59 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
public enum ExtraTextures
|
|
|
|
{
|
|
|
|
BlockVibrationChamberFrontOn("BlockVibrationChamberFrontOn"),
|
|
|
|
|
|
|
|
OreQuartzStone("OreQuartzStone"),
|
|
|
|
|
|
|
|
MEChest("BlockMEChest"), BlockMEChestItems("BlockMEChestItems"),
|
|
|
|
|
|
|
|
BlockControllerPowered("BlockControllerPowered"), BlockControllerColumnPowered("BlockControllerColumnPowered"), BlockControllerColumn(
|
|
|
|
"BlockControllerColumn"), BlockControllerLights("BlockControllerLights"), BlockControllerColumnLights("BlockControllerColumnLights"), BlockControllerColumnConflict(
|
|
|
|
"BlockControllerColumnConflict"), BlockControllerConflict("BlockControllerConflict"), BlockControllerInsideA("BlockControllerInsideA"), BlockControllerInsideB(
|
|
|
|
"BlockControllerInsideB"),
|
|
|
|
|
|
|
|
BlockChargerInside("BlockChargerInside"),
|
|
|
|
|
2014-03-20 04:28:53 +01:00
|
|
|
BlockInterfaceAlternate("BlockInterfaceAlternate"), BlockInterfaceAlternateArrow("BlockInterfaceAlternateArrow"),
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
MEStorageCellTextures("MEStorageCellTextures"), White("White"),
|
|
|
|
|
|
|
|
BlockMatterCannonParticle("BlockMatterCannonParticle"), BlockEnergyParticle("BlockEnergyParticle"),
|
|
|
|
|
|
|
|
GlassFrame("BlockQuartzGlassFrame"),
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
BlockQRingCornerLight("BlockQRingCornerLight"), BlockQRingEdgeLight("BlockQRingEdgeLight"),
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
MEDenseEnergyCell0("BlockDenseEnergyCell0"), MEDenseEnergyCell1("BlockDenseEnergyCell1"), MEDenseEnergyCell2("BlockDenseEnergyCell2"), MEDenseEnergyCell3(
|
|
|
|
"BlockDenseEnergyCell3"), MEDenseEnergyCell4("BlockDenseEnergyCell4"), MEDenseEnergyCell5("BlockDenseEnergyCell5"), MEDenseEnergyCell6(
|
|
|
|
"BlockDenseEnergyCell6"), MEDenseEnergyCell7("BlockDenseEnergyCell7"),
|
|
|
|
|
|
|
|
MEEnergyCell0("BlockEnergyCell0"), MEEnergyCell1("BlockEnergyCell1"), MEEnergyCell2("BlockEnergyCell2"), MEEnergyCell3("BlockEnergyCell3"), MEEnergyCell4(
|
|
|
|
"BlockEnergyCell4"), MEEnergyCell5("BlockEnergyCell5"), MEEnergyCell6("BlockEnergyCell6"), MEEnergyCell7("BlockEnergyCell7"),
|
|
|
|
|
|
|
|
BlockSpatialPylon_dim("BlockSpatialPylon_dim"), BlockSpatialPylon_red("BlockSpatialPylon_red"),
|
|
|
|
|
|
|
|
BlockSpatialPylonC("BlockSpatialPylon_spanned"), BlockSpatialPylonC_dim("BlockSpatialPylon_spanned_dim"), BlockSpatialPylonC_red(
|
|
|
|
"BlockSpatialPylon_spanned_red"),
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
BlockQuartzGlassB("BlockQuartzGlassB"), BlockQuartzGlassC("BlockQuartzGlassC"), BlockQuartzGlassD("BlockQuartzGlassD"),
|
|
|
|
|
2014-01-27 05:00:36 +01:00
|
|
|
BlockSpatialPylonE("BlockSpatialPylon_end"), BlockSpatialPylonE_dim("BlockSpatialPylon_end_dim"), BlockSpatialPylonE_red("BlockSpatialPylon_end_red"),
|
|
|
|
|
2014-03-14 03:29:31 +01:00
|
|
|
BlockMESecurityOn("BlockMESecurityOn"), BlockInscriberInside("BlockInscriberInside"),
|
2014-02-22 23:14:43 +01:00
|
|
|
|
2014-04-04 06:31:10 +02:00
|
|
|
BlockQuartzGrowthAcceleratorOn("BlockQuartzGrowthAcceleratorOn"), BlockQuartzGrowthAcceleratorSideOn("BlockQuartzGrowthAcceleratorSideOn"),
|
|
|
|
|
|
|
|
BlockWirelessInside("BlockWirelessInside");
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
final private String name;
|
2014-02-09 02:34:52 +01:00
|
|
|
public IIcon IIcon;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
public static ResourceLocation GuiTexture(String string)
|
|
|
|
{
|
|
|
|
return new ResourceLocation( "appliedenergistics2", "textures/" + string );
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
private ExtraTextures(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
2014-02-09 02:34:52 +01:00
|
|
|
public IIcon getIcon()
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
2014-02-09 02:34:52 +01:00
|
|
|
return IIcon;
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void registerIcon(TextureMap map)
|
|
|
|
{
|
2014-02-09 02:34:52 +01:00
|
|
|
IIcon = map.registerIcon( "appliedenergistics2:" + name );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
2014-02-09 02:34:52 +01:00
|
|
|
public static IIcon getMissing()
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
return ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture( TextureMap.locationBlocksTexture )).getAtlasSprite( "missingno" );
|
|
|
|
}
|
|
|
|
}
|