Posted March 17, 201411 yr Okay, I know this is another one of those nub questions lmao. Couldn't solve it myself... Is there a way to retrieve all blocks like Block.blockList or something? It was removed in 1.7
March 17, 201411 yr Its now called Block.blockRegistry but you need to get the blocks by using a mapping key since it is using maps instead of an array now. PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
March 18, 201411 yr GameData.blockRegistry.iterator() Don't use it in "regular" code, this is only one-time-searching method.
March 18, 201411 yr for (Block b: GameData.blockRegistry) { doSomethingWithBlock(b); // example code write this method yourself - or: b.activateBlockMethod(args); // use a real method } for (Item i: GameData.itemRegistry) { doSomethingWithItem(i); // example code write this method yourself - or: i.activeItemMethod(args); // use a real method } -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
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.