Look, I am creating a Techne like program but inside Minecraft, using Minecraft features.
It is working well but I need to refresh texture of the model that I am creating without reloading all minecraft textures....
I am thinking in this possibility:
keep a custom.png file inside my mod.
When a user clicks my button, I will read the custom.png file from .minecraft\custom.png and replace the ResourceLocation without changing the custom.png file inside my jar file.
I am trying to figure out a more basic method to acomplish this, I really don't want to build a lot of code or refresh an entire resource pack just for one texture.
I will keep searching and trying methods like these:
texturemanager.deleteTexture(MODEL_TEXTURE);
Object object = new ThreadDownloadImageData(textureFile, null, MODEL_TEXTURE, new ImageBufferDownload());
texturemanager.loadTexture(MODEL_TEXTURE, (ITextureObject)object);
If someone has a new idea, please tell me. I'll appreciate.
Thanks
†GnR† Slash