Package net.minecraft.src

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


          }

          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

  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

  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

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

    while (i$.hasNext()) {
      TextureMap textureMap = (TextureMap)i$.next();
      textureMap.updateAnimations();
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.src.TextureMap

Copyright © 2018 www.massapicom. 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.