Posted August 10, 201312 yr Hi everyone, I wanted to ask if there is a way to know if Minecraft is being closed using Forge... is there an event or something? I made a quick search without finding what I was searching for ... I simply need to shutdown some libraries at exit. Oh, and, by the way, maybe someone has some more experience in Java Native Interface, and can help me; here is my question: can I know when an object is collected by the garbage collector? Thanks, BuildLight Everything is for my mod Web Displays. Follow me on Twitter @BuildLight_
August 11, 201312 yr Hi BuildLight First question: I don't know whether it exists or not. (FMLServerStoppingEvent probably isn't what you look for) Second question: No, you can't tell, but for each object, the garbage collector calls finalize() during the process, so you can add things in it that you want to be done at that point (don't forget to call super.finalize() at the end then)
August 11, 201312 yr Oh, and, by the way, maybe someone has some more experience in Java Native Interface, and can help me; here is my question: can I know when an object is collected by the garbage collector? Thanks, BuildLight this ... this question is so beautifull ....:') its nice to see a change from "hurr durr im 8 and i want to make mod ,whats an int ?" how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 14, 201312 yr Author Hi BuildLight First question: I don't know whether it exists or not. (FMLServerStoppingEvent probably isn't what you look for) Second question: No, you can't tell, but for each object, the garbage collector calls finalize() during the process, so you can add things in it that you want to be done at that point (don't forget to call super.finalize() at the end then) Hi, Nah FMLServerStoppingEvent is not what i'm searching... but instead I found an interesting thing: Runtime.getRuntime().addShutdownHook(....) I'm sure that will help me And thanks for the finalize() function, it's working like expected ^^ Thanks a lot again, BuildLight. Follow me on Twitter @BuildLight_
August 14, 201312 yr oh ...my ... god, your mod is sooo cool i mean i would probably never use it because it would be super slow (well maybe i can think of cool stuff to do with it) but holy that is one of the coolest idea ever ! edit: attend en plus tes francais ?!?!?! ok la cest bin trop cool ! how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 14, 201312 yr Author Well, I hope the next release will be faster and not as laggy as the first one, even if the Java 32bit restriction makes the game very laggy En tout cas, merci Follow me on Twitter @BuildLight_
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.