Download project-314955 — Minecraft Mods — ModStock

project-314955

Archived

Downloads

0

Last update

6 years ago
Client
Libraries

Description:
a core mod library that adds in a safe classwriter. It doesn't load any un loaded classes when writing your transformed class in asm. It's simple and easy to use.  Before you credit me alone for the algorithm check permisions. I simply made a patch and bridge between forge and made it faster with a cache and clears when getting the byte arrray. It took 2 days(37 hours) and alot of work but, I didn't create the original code and yes the redistrobution is allowed on their licenses.

this project is separate from EvilNotchLib. I separated this as people might want to use this but, not everything that evil notch lib offered.

FAQ:
why? : to prevent class circulatory errors
update to 1.13? : forge fixed this in 1.13
downgrade to lower versions? : yes but, not likely soon 
fix huge memory leak LaunchClassLoader#resourceCache && LaunchClassLoader#cachedClasses: no this mod isn't about fixing memory leaks or vanilla. If you want this you can install Evil Notch Lib as it's fixed properly there. Foamfix tried but, didn't understand how to fix it properly I did.

Api for modders:

ClassWriter classWriter = new MCWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
classNode.accept(classWriter);

byte[] bytes = classWriter.toByteArray();

That's it that's all you have to do and It works with the EntityPlayerMP.class and all other classes inside of compiled

Permissions:
the class writer is modified so it works with minecraft forge's obfuscation and it's original author is found here and is also open distribution as long as you have the license inside of the class file with a comment on which I did provide. I also provided the source of that mod itself attached to the mod file as always.

Project members
jredfox_

jredfox_