foreverstranded Posted June 10, 2020 Posted June 10, 2020 Is there any way to set seed to World object? Asking cause I found only private fields and getSeed methods
Novârch Posted June 10, 2020 Posted June 10, 2020 3 minutes ago, foreverstranded said: private fields Reflection 1 It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".
foreverstranded Posted June 10, 2020 Author Posted June 10, 2020 4 minutes ago, Novârch said: Reflection can I get IllegalAccessException when I use it?
Draco18s Posted June 10, 2020 Posted June 10, 2020 http://tutorials.jenkov.com/java-reflection/private-fields-and-methods.html 1 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
foreverstranded Posted June 10, 2020 Author Posted June 10, 2020 3 minutes ago, Draco18s said: http://tutorials.jenkov.com/java-reflection/private-fields-and-methods.html 10 minutes ago, Novârch said: Reflection ok, thank you guys, will use it!
foreverstranded Posted June 10, 2020 Author Posted June 10, 2020 (edited) Can't figure out why it still says that this field is protected Edited June 10, 2020 by foreverstranded
foreverstranded Posted June 10, 2020 Author Posted June 10, 2020 (edited) And this field work fine Edited June 10, 2020 by foreverstranded
Draco18s Posted June 10, 2020 Posted June 10, 2020 That's not how reflection works. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
foreverstranded Posted June 10, 2020 Author Posted June 10, 2020 8 minutes ago, Draco18s said: That's not how reflection works. I still don't get it
Draco18s Posted June 10, 2020 Posted June 10, 2020 At what point is fieldWorld.setAccessible(true) executed? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
foreverstranded Posted June 11, 2020 Author Posted June 11, 2020 6 hours ago, Draco18s said: At what point is fieldWorld.setAccessible(true) executed? I'm still not sure how to do it. fieldInfo must be similar to field fieldWorld in my vision.
Novârch Posted June 11, 2020 Posted June 11, 2020 1 hour ago, foreverstranded said: I'm still not sure how to do it. fieldInfo must be similar to field fieldWorld in my vision. Please learn how basic reflection works. It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".
Draco18s Posted June 11, 2020 Posted June 11, 2020 I linked you a tutorial and you can't even follow it. 1 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Recommended Posts