Get ItemType by Id

Hello there,

I’m trying to familiarize myself with the inventory api.

I’d like to know if it is possible to get an ItemType given an item’s id as a String. For example, getting ItemTypes.REDSTONE_BLOCK given the string "minecraft:redstone_block".

Thanks for your help !

game.getRegistry().getType(string) I think.


Oh I see, using the catalog thing.

Thanks a lot !