@Override public void loadTextureAtlas(IResourceManager resourceManager) { int i = Minecraft.getGLMaximumTextureSize(); Stitcher stitcher = new Stitcher(i, i, 0, 0); this.mapUploadedSprites.clear(); this.listAnimatedSprites.clear(); stitcher.addSprite(textureatlassprite); stitcher.addSprite(this.missingImage); bar = ProgressManager.push("Texture creation", 2); stitcher.doStitch(); Log.get().info("Created: {}x{} {}-atlas", stitcher.getCurrentWidth(), stitcher.getCurrentHeight(), this.basePath); bar.step("Allocating GL texture"); TextureUtil.allocateTextureImpl(this.getGlTextureId(), 0, stitcher.getCurrentWidth(), stitcher.getCurrentHeight()); Map<String, TextureAtlasSprite> map = Maps.newHashMap(this.mapRegisteredSprites); bar = ProgressManager.push("Texture mipmap and upload", stitcher.getStichSlots().size()); for (TextureAtlasSprite textureatlassprite1 : stitcher.getStichSlots()) { bar.step(textureatlassprite1.getIconName()); if (textureatlassprite1 == this.missingImage || this.generateMipmaps(resourceManager, textureatlassprite1)) {
@Override public void loadTextureAtlas(IResourceManager resourceManager) { int i = Minecraft.getGLMaximumTextureSize(); Stitcher stitcher = new Stitcher(i, i, 0, 0); this.mapUploadedSprites.clear(); this.listAnimatedSprites.clear(); stitcher.addSprite(textureatlassprite); stitcher.addSprite(this.missingImage); bar = ProgressManager.push("Texture creation", 2); stitcher.doStitch(); Log.info("Created: {}x{} {}-atlas", stitcher.getCurrentWidth(), stitcher.getCurrentHeight(), this.basePath); bar.step("Allocating GL texture"); TextureUtil.allocateTextureImpl(this.getGlTextureId(), 0, stitcher.getCurrentWidth(), stitcher.getCurrentHeight()); Map<String, TextureAtlasSprite> map = Maps.newHashMap(this.mapRegisteredSprites); bar = ProgressManager.push("Texture mipmap and upload", stitcher.getStichSlots().size()); for (TextureAtlasSprite textureatlassprite1 : stitcher.getStichSlots()) { bar.step(textureatlassprite1.getIconName()); if (textureatlassprite1 == this.missingImage || this.generateMipmaps(resourceManager, textureatlassprite1)) {
@Override public void loadTextureAtlas(IResourceManager resourceManager) { int i = Minecraft.getGLMaximumTextureSize(); Stitcher stitcher = new Stitcher(i, i, 0, 0); this.mapUploadedSprites.clear(); stitcher.addSprite(textureatlassprite); stitcher.addSprite(this.missingImage); bar = ProgressManager.push("Texture creation", 2); stitcher.doStitch(); MOLog.info("Created: %dx%d %s-atlas", stitcher.getCurrentWidth(), stitcher.getCurrentHeight(), this.basePath); bar.step("Allocating GL texture"); TextureUtil.allocateTextureImpl(this.getGlTextureId(), 0, stitcher.getCurrentWidth(), stitcher.getCurrentHeight()); Map<String, TextureAtlasSprite> map = Maps.newHashMap(this.mapRegisteredSprites); bar = ProgressManager.push("Texture mipmap and upload", stitcher.getStichSlots().size()); for (TextureAtlasSprite textureatlassprite1 : stitcher.getStichSlots()) { bar.step(textureatlassprite1.getIconName()); if (textureatlassprite1 == this.missingImage || this.generateMipmaps(resourceManager, textureatlassprite1)) {