Skip to content

Add FoodCheckEvent#430

Open
TheGridExpert wants to merge 1 commit into
squeek502:26.1-neoforgefrom
TheGridExpert:compat-events
Open

Add FoodCheckEvent#430
TheGridExpert wants to merge 1 commit into
squeek502:26.1-neoforgefrom
TheGridExpert:compat-events

Conversation

@TheGridExpert
Copy link
Copy Markdown

This PR adds FoodCheckEvent, which allows mods to treat non-standard items as food without mixining into isFood.

Currently isFood only checks for vanilla DataComponents.FOOD and DataComponents.CONSUMABLE, which means mods using custom food components have to mixin AppleSkin to get the tooltips working. This event should allow to do this without mixins.

I ran into this while working on a mod that where I use a custom analogue of DataComponents.FOOD for internal reasons. I can adjust the implementation if needed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant