-
-
Notifications
You must be signed in to change notification settings - Fork 214
The Great Mixin Bazaar. [The API-8 Mixin Nuking] #2434
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
Conversation
...owered/common/mixin/api/mcp/entity/passive/VillagerTrades_EmeraldForItemsTradeMixin_API.java
Show resolved
Hide resolved
...ngepowered/common/mixin/api/mcp/entity/passive/VillagerTrades_ItemsForEmeraldsTrade_API.java
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/mixin/api/mcp/village/MerchantOfferMixin_API.java
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/mixin/core/village/MerchantOfferMixin.java
Show resolved
Hide resolved
src/main/java/org/spongepowered/common/mixin/invalid/core/util/datafix/DataFixerMixin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tomorrow I guess
...mon/mixin/api/mcp/entity/merchant/villager/VillagerTrades_EmeraldForItemsTradeMixin_API.java
Outdated
Show resolved
Hide resolved
Revalidates some Trade and villager related trades by finding their targets.
105b312
to
9b1aff8
Compare
// 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. |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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.
Replaced by #2446 |
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.