Posted June 22, 20178 yr What is the most efficient way, or any way, to have a variable store the value of a random item in the game?
June 22, 20178 yr I'd wager GameRegistry.findRegistry(Item.class).getValues() and then randomise out of that list. Haven't tested it but the compiler isn't throwing any errors.
June 22, 20178 yr 8 hours ago, Nathansmash9000 said: What is the most efficient way, or any way, to have a variable store the value of a random item in the game? What do you mean "store the value" and "random item"? What are you trying to store where? 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.
June 22, 20178 yr Author 4 hours ago, Draco18s said: What do you mean "store the value" and "random item"? What are you trying to store where? I want to have a string, and the value of that string contains the name of a random item in the game.
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.