net.minecraft.client.renderer.texture

## Class TextureMap

- java.lang.Object
- - net.minecraft.client.renderer.texture.TextureMap

- All Implemented Interfaces:
    IconRegister

      public class TextureMap
      extends Object
      implements IconRegister

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `String` | `basePath`
    `String` | `textureExt`
    `String` | `textureName`
    `int` | `textureType` 0 = terrain.png, 1 = items.png

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TextureMap(int par1, String par2, String par3Str, BufferedImage par4BufferedImage)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Icon` | `getMissingIcon()`
    `Texture` | `getTexture()`
    `TextureStitched` | `getTextureExtry(String name)` Grabs the registered entry for the specified name, returning null if there was not a entry.
    `void` | `refreshTextures()`
    `Icon` | `registerIcon(String par1Str)`
    `boolean` | `setTextureEntry(String name, TextureStitched entry)` Adds a texture registry entry to this map for the specified name if one does not already exist.
    `void` | `updateAnimations()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### textureType

          public final int textureType

      0 = terrain.png, 1 = items.png

    - #### textureName

          public final String textureName

    - #### basePath

          public final String basePath

    - #### textureExt

          public final String textureExt

  - ### Constructor Detail

    - #### TextureMap

          public TextureMap(int par1,
                    String par2,
                    String par3Str,
                    BufferedImage par4BufferedImage)

  - ### Method Detail

    - #### refreshTextures

          public void refreshTextures()

    - #### updateAnimations

          public void updateAnimations()

    - #### getTexture

          public Texture getTexture()

    - #### registerIcon

          public Icon registerIcon(String par1Str)

      Specified by:
        `registerIcon` in interface `IconRegister`

    - #### getMissingIcon

          public Icon getMissingIcon()

    - #### getTextureExtry

          public TextureStitched getTextureExtry(String name)

      Grabs the registered entry for the specified name, returning null if there was not a entry. Opposed to func_94245_a, this will not instantiate the entry, useful to test if a maping exists.
      Parameters:
        `name` - The name of the entry to find
      Returns:
        The registered entry, null if nothing was registered.

    - #### setTextureEntry

          public boolean setTextureEntry(String name,
                                TextureStitched entry)

      Adds a texture registry entry to this map for the specified name if one does not already exist. Returns false if the map already contains a entry for the specified name.
      Parameters:
        `name` - Entry name
        `entry` - Entry instance
      Returns:
        True if the entry was added to the map, false otherwise.