Posted February 1, 201510 yr Hello everyone im trying to understand how does cape detects the names in string on a html txt and heres is what i gone so far public static void capeList() throws Exception { int timeout = 30; String capeURL = "http://i.imgur.com/p0JW7NF.png"; URL capeListUrl = new URL("https://gist.githubusercontent.com/Bruce/e3f86194c43424abb8c4/raw/capes"); URLConnection connection = capeListUrl.openConnection(); connection.setConnectTimeout(timeout); connection.setReadTimeout(timeout); InputStream stream = connection.getInputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); String line; while ((line = reader.readLine()) != null) { if(!line.isEmpty()){ String username = line.toLowerCase(); ThreadDownloadImageData image = new ThreadDownloadImageData(capeURL, null, null); Minecraft.getMinecraft().renderEngine.loadTexture(new ResourceLocation("cloaks/" + username), (ITextureObject) image); }else{ continue; } } } cape wont load to me character please help im newbie and willing to learn
February 1, 201510 yr Try putting breakpoint on the line: ThreadDownloadImageData image = new ThreadDownloadImageData(capeURL, null, null); and check if it is ever called. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.