Posted August 10, 201411 yr Hi I need to get an array of all exists blocks/items to get their unlocalized names. How to get/build this array?
August 10, 201411 yr GameData#getBlockRegistry and GameData#getItemRegistry look promising. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
August 10, 201411 yr Get an iterator, and just iterate through the registry. Basic Java Iterator. Nothing special. On a side note: What do you need the list for? BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
August 10, 201411 yr Author Get an iterator, and just iterate through the registry. Basic Java Iterator. Nothing special. Thank you very much, dude! Iterator is cool stuff! On a side note: What do you need the list for? It's mistery right now It's experimental testing feature, but in future, i hope it will be cool mod p.s. Sorry for my english is very very bad
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.