getIcon

abstract fun getIcon(category: ToolCategory, tier: ToolTier?): ResourceLocation?

Returns a ResourceLocation for the location of the texture to be used for tools of the given category and tier. Note that textures which are intended to be used for these icons need to be added to the texture icon font via TextureIconContent.addIcons using a custom resource pack task.