public static ITextureObject getTexture(ResourceLocation p_getTexture_0_) { ITextureObject itextureobject = Config.getTextureManager().getTexture(p_getTexture_0_); if (itextureobject != null) { return itextureobject; } else if (!Config.hasResource(p_getTexture_0_)) { return null; } else { SimpleTexture simpletexture = new SimpleTexture(p_getTexture_0_); Config.getTextureManager().loadTexture(p_getTexture_0_, simpletexture); return simpletexture; } }
public static ITextureObject getTexture(ResourceLocation loc) { ITextureObject tex = Config.getTextureManager().getTexture(loc); if (tex != null) { return tex; } else if (!Config.hasResource(loc)) { return null; } else { SimpleTexture tex1 = new SimpleTexture(loc); Config.getTextureManager().loadTexture(loc, tex1); return tex1; } }
@EventHandler @SideOnly(Side.CLIENT) public void onFMLLoadComplete(FMLLoadCompleteEvent event) { TextureManager textureManager = Minecraft.getMinecraft().getTextureManager(); textureManager.loadTexture(GuiWardrobe.BACKGROUND_TEXTURES, new SimpleTexture(GuiWardrobe.BACKGROUND_TEXTURES)); textureManager.loadTexture(GuiWardrobe.BUTTON_TEXTURES, new SimpleTexture(GuiWardrobe.BUTTON_TEXTURES)); }
@Override public void inflate(XmlHelper node, Style theme) { size = node.getSize(GuiManager.NS, originalSize.clone()); try { Integer textureId = node.getIntegerAttr(GuiManager.NS, "texture", null); } catch (NumberFormatException e) { ResourceLocation src = node.getResourceAttr(GuiManager.NS, "texture", null); if (src != null) { SimpleTexture texture = new SimpleTexture(src); // texture.loadTexture(); } } }
public static void registerLivery(String name, String packName) { if (name == null || name.isEmpty()) return; if (!map.keySet().contains(name)) { LiveryTextureInfo info = new LiveryTextureInfo(); info.packName = packName; info.texture = new ResourceLocation("cartlivery", "textures/livery/" + name + ".png"); map.put(name, info); Minecraft.getMinecraft().renderEngine.loadTexture(info.texture, new SimpleTexture(info.texture)); } }
public ThreadDownloadImageData(String p_i1273_1_, ResourceLocation p_i1273_2_, IImageBuffer p_i1273_3_) { this.field_110562_b = p_i1273_1_; this.field_110563_c = p_i1273_3_; this.field_110558_f = p_i1273_2_ != null?new SimpleTexture(p_i1273_2_):null; }
public ThreadDownloadImageData(String par1Str, ResourceLocation par2ResourceLocation, IImageBuffer par3IImageBuffer) { this.imageUrl = par1Str; this.imageBuffer = par3IImageBuffer; this.imageLocation = par2ResourceLocation != null ? new SimpleTexture(par2ResourceLocation) : null; }