2014-05-26 03:58:44 +02:00
|
|
|
package appeng.client.texture;
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
import net.minecraft.client.renderer.texture.TextureMap;
|
|
|
|
import net.minecraft.util.IIcon;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
public enum ExtraItemTextures
|
|
|
|
{
|
2014-08-01 03:45:25 +02:00
|
|
|
White("White"), ItemPaintBallShimmer("ItemPaintBallShimmer"),
|
|
|
|
|
|
|
|
ToolColorApplicatorTip_Medium("ToolColorApplicatorTip_Medium"),
|
|
|
|
|
|
|
|
ToolColorApplicatorTip_Dark("ToolColorApplicatorTip_Dark"),
|
|
|
|
|
|
|
|
ToolColorApplicatorTip_Light("ToolColorApplicatorTip_Light");
|
2014-05-26 03:58:44 +02:00
|
|
|
|
|
|
|
final private String name;
|
|
|
|
public IIcon IIcon;
|
|
|
|
|
|
|
|
public static ResourceLocation GuiTexture(String string)
|
|
|
|
{
|
|
|
|
return new ResourceLocation( "appliedenergistics2", "textures/" + string );
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
private ExtraItemTextures(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public IIcon getIcon()
|
|
|
|
{
|
|
|
|
return IIcon;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void registerIcon(TextureMap map)
|
|
|
|
{
|
|
|
|
IIcon = map.registerIcon( "appliedenergistics2:" + name );
|
|
|
|
}
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public static IIcon getMissing()
|
|
|
|
{
|
|
|
|
return ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture( TextureMap.locationItemsTexture )).getAtlasSprite( "missingno" );
|
|
|
|
}
|
|
|
|
}
|