<commit_before>--- ../src_base/minecraft/net/minecraft/client/renderer/texture/TextureMap.java
+++ ../src_work/minecraft/net/minecraft/client/renderer/texture/TextureMap.java
@@ -95,8 +95,18 @@
         while (iterator.hasNext())
         {
             String s = (String)iterator.next();
-            String s1 = this.field_94254_c + s + this.field_94251_d;
-            List list = TextureManager.func_94267_b().func_94266_e(s1);
+            String s1;
+            if (s.indexOf(':')==-1)
+            {
+                s1 = this.field_94254_c + s + this.field_94251_d;
+            }
+            else
+            {
+                String domain = s.substring(0,s.indexOf(':'));
+                String file = s.substring(s.indexOf(':')+1);
+                s1 = "mods/"+domain +"/" + this.field_94254_c + file + this.field_94251_d;
+            }
+            List list = TextureManager.func_94267_b().createNewTexture(s, s1);
 
             if (!list.isEmpty())
             {
@@ -150,7 +160,17 @@
             if (list1.size() > 1)
             {
                 this.field_94258_i.add(texturestitched);
-                String s3 = this.field_94254_c + s2 + ".txt";
+                String s3;
+                if (s2.indexOf(':') == -1)
+                {
+                    s3 = field_94254_c + s2 + ".txt";
+                }
+                else
+                {
+                    String domain = s2.substring(0, s2.indexOf(':'));
+                    String file = s2.substring(s2.indexOf(':') + 1);
+                    s3 = "mods/" + domain + "/" + field_94254_c + file + ".txt";
+                }
                 ITexturePack itexturepack = Minecraft.getMinecraft().texturePackList.getSelectedTexturePack();
                 boolean flag1 = !itexturepack.func_98138_b("/" + this.field_94254_c + s2 + ".png", false);
 <commit_msg>Add helper functions for deling with custom TextureStitched<commit_after>--- ../src_base/minecraft/net/minecraft/client/renderer/texture/TextureMap.java
+++ ../src_work/minecraft/net/minecraft/client/renderer/texture/TextureMap.java
@@ -95,8 +95,18 @@
         while (iterator.hasNext())
         {
             String s = (String)iterator.next();
-            String s1 = this.field_94254_c + s + this.field_94251_d;
-            List list = TextureManager.func_94267_b().func_94266_e(s1);
+            String s1;
+            if (s.indexOf(':') == -1)
+            {
+                s1 = this.field_94254_c + s + this.field_94251_d;
+            }
+            else
+            {
+                String domain = s.substring(0,s.indexOf(':'));
+                String file = s.substring(s.indexOf(':')+1);
+                s1 = "mods/" + domain +"/" + field_94254_c + file + field_94251_d;
+            }
+            List list = TextureManager.func_94267_b().createNewTexture(s, s1);
 
             if (!list.isEmpty())
             {
@@ -150,7 +160,17 @@
             if (list1.size() > 1)
             {
                 this.field_94258_i.add(texturestitched);
-                String s3 = this.field_94254_c + s2 + ".txt";
+                String s3;
+                if (s2.indexOf(':') == -1)
+                {
+                    s3 = field_94254_c + s2 + ".txt";
+                }
+                else
+                {
+                    String domain = s2.substring(0, s2.indexOf(':'));
+                    String file = s2.substring(s2.indexOf(':') + 1);
+                    s3 = "mods/" + domain + "/" + field_94254_c + file + ".txt";
+                }
                 ITexturePack itexturepack = Minecraft.getMinecraft().texturePackList.getSelectedTexturePack();
                 boolean flag1 = !itexturepack.func_98138_b("/" + this.field_94254_c + s2 + ".png", false);
 
@@ -218,4 +238,37 @@
     {
         return this.field_94250_g;
     }
+
+    //===================================================================================================
+    //                                           Forge Start
+    //===================================================================================================
+    /**
+     * Grabs the registered entry for the specified name, returning null if there was not a entry. 
+     * Opposed to func_94245_a, this will not instantiate the entry, useful to test if a maping exists.
+     * 
+     * @param name The name of the entry to find
+     * @return The registered entry, null if nothing was registered.
+     */
+    public TextureStitched getTextureExtry(String name)
+    {
+        return (TextureStitched)field_94256_j.get(name);
+    }
+
+    /**
+     * Adds a texture registry entry to this map for the specified name if one does not already exist.
+     * Returns false if the map already contains a entry for the specified name. 
+     * 
+     * @param name Entry name
+     * @param entry Entry instance
+     * @return True if the entry was added to the map, false otherwise.
+     */
+    public boolean setTextureEntry(String name, TextureStitched entry)
+    {
+        if (!field_94256_j.containsKey(name))
+        {
+            field_94256_j.put(name, entry);
+            return true;
+        }
+        return false;
+    }
 }
{'fraction_non_alphanumeric': 0.17054412612959047, 'fraction_numerical': 0.051913093635839264, 'mean_word_length': 1.709375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '985217', 'n_tokens_mistral': 1727, 'n_tokens_neox': 1555, 'n_words': 314}