Examples of TextureMap


Examples of net.minecraft.client.renderer.texture.TextureMap

                setupSprite(i);
        }
       
        public void registerIcons(IIconRegister register)
        {
            TextureMap textureMap = (TextureMap)register;
           
            if(TextureUtils.refreshTexture(textureMap, resource.getResourcePath()))
            {
                reloadTexture();
                for (TextureSpecial sprite : sprites)
                    if (sprite != null)
                        textureMap.setTextureEntry(sprite.getIconName(), sprite);
            }
            else
            {
                for(int i : newSprites)
                    textureMap.setTextureEntry(sprites[i].getIconName(), sprites[i]);
            }
            newSprites.clear();
        }
View Full Code Here

Examples of net.minecraft.src.TextureMap

    TileLoader.access$002(true);
    TessellatorUtils.clear(Tessellator.instance);
    Iterator i$ = TileLoader.access$100().iterator();

    while (i$.hasNext()) {
      TextureMap textureMap = (TextureMap)i$.next();

      try {
        textureMap.unloadGLTexture();
      } catch (Throwable var4) {
        var4.printStackTrace();
      }
    }
View Full Code Here

Examples of net.minecraft.src.TextureMap

          }

          TileLoader.access$602(false);
          String mapName = loader.mapName + "_overflow" + TileLoader.access$704(loader);
          TileLoader.access$800().fine("new TextureAtlas(%s)", new Object[] {mapName});
          TextureMap map = new TextureMap(2, mapName);         
          try {
            map.loadTexture(TexturePackAPI.getResourceManager());
          } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
          if (TileLoader.access$600()) {
View Full Code Here

Examples of net.minecraft.src.TextureMap

  public static void clearDefaultTextureMap(Tessellator tessellator) {
    tessellator.textureMap = null;
  }

  public static Tessellator getTessellator(Tessellator tessellator, Icon icon) {
    TextureMap textureMap = (TextureMap)iconMap.get(icon);

    if (textureMap == null) {
      return tessellator;
    } else {
      Tessellator newTessellator = (Tessellator)tessellator.children.get(textureMap);

      if (newTessellator == null) {
        String mapName = (String)textureMapNames.get(textureMap);

        if (mapName == null) {
          mapName = textureMap.toString();
        }

        logger.fine("new Tessellator for texture map %s gl texture %d", new Object[] {mapName, Integer.valueOf(textureMap.glTextureId)});
        newTessellator = new Tessellator(2097152);
        copyFields(tessellator, newTessellator, true);
View Full Code Here

Examples of net.minecraft.src.TextureMap

  private static String toString(Tessellator tessellator) {
    if (tessellator == null) {
      return "Tessellator{null}";
    } else {
      String desc = tessellator.toString();
      TextureMap textureMap = tessellator.textureMap;

      if (textureMap != null) {
        String mapName = (String)textureMapNames.get(textureMap);

        if (mapName == null) {
          desc = textureMap.toString();
        } else {
          desc = mapName;
        }
      }
View Full Code Here

Examples of net.minecraft.src.TextureMap

  public static void updateAnimations() {
    Iterator i$ = overflowMaps.iterator();

    while (i$.hasNext()) {
      TextureMap textureMap = (TextureMap)i$.next();
      textureMap.updateAnimations();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.