Package net.minecraft.src

Examples of net.minecraft.src.TextureManager


          var10.printStackTrace();
          logger.severe("%s.beforeChange failed", new Object[] {texturesToUnload1.name});
        }
      }

      TextureManager textureManager2 = Minecraft.getMinecraft().getTextureManager();

      if (textureManager2 != null) {
        HashSet texturesToUnload2 = new HashSet();
        Iterator i$ = textureManager2.mapTextureObjects.entrySet().iterator();
View Full Code Here


      GL11.glBindTexture(GL11.GL_TEXTURE_2D, texture);
    }
  }

  public static void unloadTexture(ResourceLocation resource) {
    TextureManager textureManager = Minecraft.getMinecraft().getTextureManager();
    TextureObject texture = textureManager.getTexture(resource);

    if (texture != null && !(texture instanceof TextureMap) && !(texture instanceof DynamicTexture)) {
      if (texture instanceof AbstractTexture) {
        ((AbstractTexture)texture).unloadGLTexture();
      }
View Full Code Here

  private AccessoryHandler() {
  }

  public static void addAccessory(String player, Accessory n, String url) {
    TextureManager tm= Minecraft.getMinecraft().getTextureManager();
    Object texture = new ThreadDownloadImageData(url, (ResourceLocation)null, new HDImageBufferDownload());   
    tm.loadTexture(new ResourceLocation("accessories/" + n.getType().toString()), (TextureObject)texture);
   
    Set<Pair<Accessory, String>> acs = sacs.get(player);
    if (acs == null) {
      acs = new HashSet<Pair<Accessory, String>>();
    }
View Full Code Here

TOP

Related Classes of net.minecraft.src.TextureManager

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.