Jump to content

How to modify a method of a Mojang class


PlasmaPower

Recommended Posts

I'm making a mod to multithread mipmap generation (speeding up startup and resource pack switching). This can be easily achieved by modifying the loadTextureAtlas method in TextureMap. My question is how do I do this? The TextureMaps are instantiated by calling new TextureMap(args) in Mojang's code. The texture map for blocks is instantiated in startGame(). I've looked into ASM some, but I can't figure out how to use it in combination with MCP and Forge. The ASM page on the Forge wiki is blank.

Link to comment
Share on other sites

Thanks! I'd looked into creating a coremod, but as I understand it that only loads a mod before Minecraft is loaded and I could not find documentation on replacing classes. The video looks promising, I'll look into it in a bit.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.