So, in Forge 1.6 and previous, if you wanted to get a list of all items available in the game, you could just do
Items.itemList
This would return an Item[]
, containing all the vanilla items and all the items added by other mods. The problem is, in 1.7, as part of the new changes to the block/item system, they got rid of this field, in preference for the itemRegistry. My question is, has anyone yet figured out how to do the same thing in 1.7, i.e. retrieve a list of items for use? I'd imagine there has to be some way to do this, because mods like TMI have updated for 1.7. Only issue is they're closed-source.
If no one knows, then I suppose I'll just have to wait for NEI to be updated and look at his code.
net.minecraft.init.Items
, I can get a list ofField
s which allow me to get all of the vanilla items, but I was hoping to get it for all of the mods.