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

Abstract out style methods to StyleWriter/Reader #501

Merged
merged 3 commits into from Dec 13, 2021

Conversation

KingOfSquares
Copy link
Contributor

Closes #491

Also solves some other minor inconsistencies like:

  • Adds font methods to Component
  • Adds the #decorate(Set<TextDecoration> decorations, boolean flag) everywhere (Not just ComponentBuilder)
  • Adds @ApiStatus.NonExtendable to ComponentBuilder (in addition to the new interfaces)

Should these get their own PR? Excluding the second one

@zml2008 zml2008 added this to the 4.10.0 milestone Dec 11, 2021
Copy link
Member

@zml2008 zml2008 left a comment

Choose a reason for hiding this comment

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

The general concept/impl looks good here. However, in adventure-nbt we use a Setter suffix -- see ListTagSetter and CompoundTagSetter. Do we want to change these names to StyleGetter and StyleSetter to match?

This was referenced Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abstract out common "style" logic
4 participants