bubub98 Posted March 14, 2013 Posted March 14, 2013 When I say edit I mean change the code to make a mod, such as the mod for Quantum armor, and make it so the armor doesn't make the player god like. I just would like to lower the protection
gotyaoi Posted March 14, 2013 Posted March 14, 2013 don't bump your own post, It's bad form. Anyway, if the mod provides a configuration file that has an option that does what you want, you can use that. Else decompile it, rewrite it and recompile it. Edit: it is also possible to write a mod which alters the behavior of other mods, using reflection.
Markarthian Posted March 15, 2013 Posted March 15, 2013 Edit: it is also possible to write a mod which alters the behavior of other mods, using reflection. I wonder, how would I do that (in code)? Is it like "yourclassname overrides targetclassname" when you declare your class? Or something else?
Neowulf Posted March 15, 2013 Posted March 15, 2013 Not very informed on reflection myself, but cloning the original class, making your changes, and rewriting all references from the original to the new one should do it.
gotyaoi Posted March 15, 2013 Posted March 15, 2013 Basically, reflection is the part of java that makes it act like the dynamic language it should have been. You tell the virtual machine, show me the internals of that guy's class, and then you go to work with a hacksaw and a sense of expirimentation. http://docs.oracle.com/javase/tutorial/reflect/index.html
Markarthian Posted March 15, 2013 Posted March 15, 2013 Basically, reflection is the part of java that makes it act like the dynamic language it should have been. You tell the virtual machine, show me the internals of that guy's class, and then you go to work with a hacksaw and a sense of expirimentation. http://docs.oracle.com/javase/tutorial/reflect/index.html Thanks a lot! Bookmarked it, I'm learning more every day ^^
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now