Get all Itemtypes & BlockTypes

Hey,

I want to get all Itemtypes & Blocktypes.
I know, that they are CatalogTypes, so I could do something like

Sponge.getRegistry().getAllOf(ItemType.class)

and

Sponge.getRegistry().getAllOf(BlockType.class),

but I only want all Item- and BlockTypes, that exist in the creative inventory, because I want to make an online list of all items (and other stuff)…

How can I get these and loop them (List / Map / Array)?

  1. What is the fastest way to get all existing block & item icons (64x64 pixels or bigger)?

Thanks :slight_smile:

At the moment, this isn’t possible. However, with some of the upcoming Client API changes, you’ll be able to access the CreativeTab of a particular ItemType. Note that the creative tab information is still accessible server-side, it’s just that it will be added to the API along with client-only features.

This will most likely be added along with CreativeTab support in the API. However, this will unfortunately only be accessible on the client side, as the server doesn’t have the item icons available.