Package com.prupe.mcpatcher.mal.resource
Class TexturePackAPI
java.lang.Object
com.prupe.mcpatcher.mal.resource.TexturePackAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationstatic final Stringstatic final ResourceLocationstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindTexture(ResourceLocation resource) static voidstatic BufferedImagegetImage(ResourceLocation resource) static InputStreamgetInputStream(ResourceLocation resource) static PropertiesgetProperties(ResourceLocation resource) static booleangetProperties(ResourceLocation resource, Properties properties) static List<ResourcePack>getResourcePacks(String namespace) static intgetTextureIfLoaded(ResourceLocation resource) static TextureObjectgetTextureObject(ResourceLocation resource) static booleanhasCustomResource(ResourceLocation resource) static booleanhasResource(ResourceLocation resource) static booleanstatic booleanstatic booleanisTextureLoaded(ResourceLocation resource) static ResourceLocationstatic ResourceLocationstatic ResourceLocationparseResourceLocation(String path) static ResourceLocationparseResourceLocation(ResourceLocation baseResource, String path) static ResourceLocationtransformResourceLocation(ResourceLocation resource, String oldExt, String newExt) static voidunloadTexture(ResourceLocation resource)
-
Field Details
-
DEFAULT_NAMESPACE
- See Also:
-
MCPATCHER_SUBDIR
- See Also:
-
ITEMS_PNG
-
BLOCKS_PNG
-
-
Constructor Details
-
TexturePackAPI
public TexturePackAPI()
-
-
Method Details
-
isInitialized
public static boolean isInitialized() -
getResourcePacks
-
getNamespaces
-
isDefaultTexturePack
public static boolean isDefaultTexturePack() -
getInputStream
-
hasResource
-
hasCustomResource
-
getImage
-
getProperties
-
getProperties
-
transformResourceLocation
public static ResourceLocation transformResourceLocation(ResourceLocation resource, String oldExt, String newExt) -
parsePath
-
parseResourceLocation
-
parseResourceLocation
-
newMCPatcherResourceLocation
-
getTextureIfLoaded
-
isTextureLoaded
-
getTextureObject
-
bindTexture
-
unloadTexture
-
flushUnusedTextures
public static void flushUnusedTextures()
-