Posted September 2, 20187 yr Sorry, perhaps, this question already someone asked and on him someone responded, but I have very little information about this, only for old versions of. The question in the topic title. P.S. sorry for my English again.
September 2, 20187 yr Author 2 minutes ago, diesieben07 said: ForgeRegistries.RECIPES. I've seen it, but how do I use it in an ArrayList or List variable?
September 2, 20187 yr Forge registries offer an enumerator like all other lists. I.e. it works in a for-each loop just fine. 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.
September 2, 20187 yr Author Thank you diesieben07, Draco18s 2 minutes ago, Draco18s said: Forge registries offer an enumerator like all other lists. I.e. it works in a for-each loop just fine. 1 minute ago, diesieben07 said: It's an IForgeRegistry, which means it also implements Iterable. That already means you can use it in a for-each loop. If you absolutely need a collection from it, use Lists.newArrayList(Iterable) from Guava.
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.