001package net.minecraft.client.texturepacks;
002
003import cpw.mods.fml.relauncher.Side;
004import cpw.mods.fml.relauncher.SideOnly;
005import java.io.File;
006import java.io.FileNotFoundException;
007import java.io.IOException;
008import java.io.InputStream;
009
010@SideOnly(Side.CLIENT)
011public class TexturePackDefault extends TexturePackImplementation
012{
013    public TexturePackDefault()
014    {
015        super("default", (File)null, "Default", (ITexturePack)null);
016    }
017
018    /**
019     * Load texture pack description from /pack.txt file in the texture pack
020     */
021    protected void loadDescription()
022    {
023        this.firstDescriptionLine = "The default look of Minecraft";
024    }
025
026    public boolean func_98140_c(String par1Str)
027    {
028        return TexturePackDefault.class.getResourceAsStream(par1Str) != null;
029    }
030
031    public boolean isCompatible()
032    {
033        return true;
034    }
035
036    protected InputStream func_98139_b(String par1Str) throws IOException
037    {
038        InputStream inputstream = TexturePackDefault.class.getResourceAsStream(par1Str);
039
040        if (inputstream == null)
041        {
042            throw new FileNotFoundException(par1Str);
043        }
044        else
045        {
046            return inputstream;
047        }
048    }
049}