getIcon

fun getIcon(id: Key): Provider<FontChar?>

Gets a provider for the FontChar of the texture icon requested in TextureIconContent, where id is the path of texture, i.e. minecraft:item/stone_sword.