I am just starting out with modding for Minecraft and am just trying a simple mod to print to a file a list of all items in my game, both Vanilla and modded. I searched and found one post on this forum for this exact thing from 2015, but it seems that method is very outdated and no longer works. Their solution was:
List<Item> list = ImmutableList.copyOf(Item.itemRegistry);
Item.itemRegistry seems to no longer exist so this won't work. Ideally I would like like to step through the list with a for-each loop. Any help is appreciated.