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

feat: add armor trim key #2568

Merged
merged 1 commit into from
Nov 3, 2024
Merged

feat: add armor trim key #2568

merged 1 commit into from
Nov 3, 2024

Conversation

gabizou
Copy link
Member

@gabizou gabizou commented Oct 25, 2024

SpongeAPI | Sponge

Comment on lines +45 to +47
default ArmorTrim create(Supplier<? extends TrimMaterial> material, Supplier<? extends TrimPattern> pattern) {
return create(material.get(), pattern.get());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these defaulted methods be in ArmorTrim and not in Factory? All convience with not calling .get() is gone if you need to call factory for it

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, adding the static methods to ArmorTrim as well

@gabizou gabizou merged commit 4d869f0 into api-12 Nov 3, 2024
9 checks passed
@gabizou gabizou deleted the feat/add-armor-trim branch November 3, 2024 20:49
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.

2 participants