001 package net.minecraft.client.texturepacks; 002 003 import cpw.mods.fml.relauncher.Side; 004 import cpw.mods.fml.relauncher.SideOnly; 005 import java.io.InputStream; 006 import net.minecraft.client.renderer.RenderEngine; 007 008 @SideOnly(Side.CLIENT) 009 public interface ITexturePack 010 { 011 /** 012 * Delete the OpenGL texture id of the pack's thumbnail image, and close the zip file in case of TexturePackCustom. 013 */ 014 void deleteTexturePack(RenderEngine var1); 015 016 /** 017 * Bind the texture id of the pack's thumbnail image, loading it if necessary. 018 */ 019 void bindThumbnailTexture(RenderEngine var1); 020 021 /** 022 * Gives a texture resource as InputStream. 023 */ 024 InputStream getResourceAsStream(String var1); 025 026 /** 027 * Get the texture pack ID 028 */ 029 String getTexturePackID(); 030 031 /** 032 * Get the file name of the texture pack, or Default if not from a custom texture pack 033 */ 034 String getTexturePackFileName(); 035 036 /** 037 * Get the first line of the texture pack description (read from the pack.txt file) 038 */ 039 String getFirstDescriptionLine(); 040 041 /** 042 * Get the second line of the texture pack description (read from the pack.txt file) 043 */ 044 String getSecondDescriptionLine(); 045 046 /** 047 * Return the texture pack's resolution (16 by default). Used only by PlayerUsageSnooper. Presumably meant to be 048 * overriden by HD texture mods. 049 */ 050 int getTexturePackResolution(); 051 }