Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Great Mixin Bazaar. [The API-8 Mixin Nuking] #2434

Closed

Conversation

i509VCB
Copy link
Contributor

@i509VCB i509VCB commented Dec 12, 2019

This actually finds the targets for some missing villager trade mixins within the api, renames some trade related stuff and invalidates that odd DataFixer mixin.

Some of those invalid mixins are actually valid atleast.

Copy link
Contributor Author

@i509VCB i509VCB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tomorrow I guess

Revalidates some Trade and villager related trades by finding their targets.
// Note that these mixins will not have to exist once mixing into interfaces is
// added as the only thing needing to be done is a simple default implementation
// with an empty MerchantRecipeList and diff the list with an empty one and
// provide the resulting diff'ed MerchantRecipe (TradeOffer) as the result.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they can be defaulted since ITrade now appropriately provides a method that only takes an Entity and Random and generates a MerchantOffer, previously the offers were working based on an existing list. Now all of this can just be soft implemented onto the target interface and no more manual implementation replicating vanilla's feature set.

}

@Override
public int getUses() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would have to be intrinsic because it's soft shadowing a target method as well.

@i509VCB
Copy link
Contributor Author

i509VCB commented Dec 27, 2019

Replaced by #2446

@i509VCB i509VCB closed this Dec 27, 2019
@i509VCB i509VCB deleted the update/api8/mixin/renaming1 branch January 30, 2021 00:19
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.

None yet

3 participants