Basic reformat, hit once, hope never again
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
package appeng.client.texture;
|
||||
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.util.IIcon;
|
||||
@@ -26,46 +27,48 @@ import net.minecraft.util.ResourceLocation;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
||||
public enum ExtraItemTextures
|
||||
{
|
||||
White("White"), ItemPaintBallShimmer("ItemPaintBallShimmer"),
|
||||
White( "White" ), ItemPaintBallShimmer( "ItemPaintBallShimmer" ),
|
||||
|
||||
ToolColorApplicatorTip_Medium("ToolColorApplicatorTip_Medium"),
|
||||
ToolColorApplicatorTip_Medium( "ToolColorApplicatorTip_Medium" ),
|
||||
|
||||
ToolColorApplicatorTip_Dark("ToolColorApplicatorTip_Dark"),
|
||||
ToolColorApplicatorTip_Dark( "ToolColorApplicatorTip_Dark" ),
|
||||
|
||||
ToolColorApplicatorTip_Light("ToolColorApplicatorTip_Light");
|
||||
ToolColorApplicatorTip_Light( "ToolColorApplicatorTip_Light" );
|
||||
|
||||
final private String name;
|
||||
public IIcon IIcon;
|
||||
|
||||
public static ResourceLocation GuiTexture(String string)
|
||||
ExtraItemTextures( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static ResourceLocation GuiTexture( String string )
|
||||
{
|
||||
return new ResourceLocation( "appliedenergistics2", "textures/" + string );
|
||||
}
|
||||
|
||||
@SideOnly( Side.CLIENT )
|
||||
public static IIcon getMissing()
|
||||
{
|
||||
return ( (TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture( TextureMap.locationItemsTexture ) ).getAtlasSprite( "missingno" );
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
|
||||
ExtraItemTextures( String name ) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public IIcon getIcon()
|
||||
{
|
||||
return this.IIcon;
|
||||
}
|
||||
|
||||
public void registerIcon(TextureMap map)
|
||||
public void registerIcon( TextureMap map )
|
||||
{
|
||||
this.IIcon = map.registerIcon( "appliedenergistics2:" + this.name );
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static IIcon getMissing()
|
||||
{
|
||||
return ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture( TextureMap.locationItemsTexture )).getAtlasSprite( "missingno" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user