Skip to content

Add a way to pick between the item and block atlas for materials that have both #1

Description

@Ameliorate

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.

Image Image

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions