-
Notifications
You must be signed in to change notification settings - Fork 0
Shared Tags
Butterfly API provides shared tags for content that other mods may need to recognize.
The currently documented shared tags are for plush blocks and plush items.
Registered plush blocks are automatically added to:
ButterflyApiTags.PLUSH_BLOCKSUse this tag when code needs to check whether a block belongs to Butterfly API's plush system.
Registered plush items are automatically added to:
ButterflyApiTags.PLUSH_ITEMSUse this tag when code needs to recognize plush items.
Mods using the Butterfly Plush API do not need to manually add their registered plushes to these tags.
Butterfly automatically adds:
- Plush blocks to
PLUSH_BLOCKS - Plush items to
PLUSH_ITEMS
when they are registered through the plush system.
The exact way the tag is checked depends on whether you are working with a block state, item stack, or another Minecraft API type.
The important part is that Butterfly exposes the shared tag keys through:
ButterflyApiTags.PLUSH_BLOCKS
ButterflyApiTags.PLUSH_ITEMS