One solution might be to use Paper's new BlockType/ItemType APIs. For example, there'd be MaterialSprites.get(ItemType) which would default to the items atlas, and MaterialSprites.get(BlockType) that defaults to the block atlas.
I ask because I'm using this library for my custom crafting plugin. In the recipes list, I want to display the recipe's name and icons for its ingredients, but Bread displays its Wheat ingredient using Material.WHEAT's block form instead of its item form.
Thanks!
One solution might be to use Paper's new BlockType/ItemType APIs. For example, there'd be
MaterialSprites.get(ItemType)which would default to the items atlas, andMaterialSprites.get(BlockType)that defaults to the block atlas.I ask because I'm using this library for my custom crafting plugin. In the recipes list, I want to display the recipe's name and icons for its ingredients, but Bread displays its Wheat ingredient using
Material.WHEAT's block form instead of its item form.Thanks!