-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add some "standard" JoinConfiguration
instances
#466
Comments
lynxplay
added a commit
to lynxplay/adventure
that referenced
this issue
Oct 24, 2021
While using join configurations is already rather simple, they tend to clutter up already rather verbose source code. While the initial creation of the JoinConfiguration already included a null configuration, accessible through 'JoinConfiguration#noSeparators', other standards or often used layouts were not added. This commit adds three more defaults/standards to the join configuration implementation that are exposed through static accessors in the join configuration interface. Specifically: newLines: A straight forward instance of the join configuraiton that uses the new line component to join together components. commas: Another straight forward instance of the join configuration that uses a single comma to join together components, creating a CSV like layout. arrayLike: A more complex join configuration that recreates the layout used by the java.util.Arrays#toString method. Resolves: KyoriPowered#466
lynxplay
added a commit
to lynxplay/adventure
that referenced
this issue
Oct 24, 2021
While using join configurations is already rather simple, they tend to clutter up already rather verbose source code. While the initial creation of the JoinConfiguration already included a null configuration, accessible through 'JoinConfiguration#noSeparators', other standards or often used layouts were not added. This commit adds three more defaults/standards to the join configuration implementation that are exposed through static accessors in the join configuration interface. Specifically: newLines: A straight forward instance of the join configuraiton that uses the new line component to join together components. commas: Another straight forward instance of the join configuration that uses a single comma to join together components, creating a CSV like layout. arrayLike: A more complex join configuration that recreates the layout used by the java.util.Arrays#toString method. Resolves: KyoriPowered#466
lynxplay
added a commit
to lynxplay/adventure
that referenced
this issue
Oct 24, 2021
While using join configurations is already rather simple, they tend to clutter up already rather verbose source code. While the initial creation of the JoinConfiguration already included a null configuration, accessible through 'JoinConfiguration#noSeparators', other standards or often used layouts were not added. This commit adds three more defaults/standards to the join configuration implementation that are exposed through static accessors in the join configuration interface. Specifically: newLines: A straight forward instance of the join configuraiton that uses the new line component to join together components. commas: Another straight forward instance of the join configuration that uses a single comma to join together components, creating a CSV like layout. arrayLike: A more complex join configuration that recreates the layout used by the java.util.Arrays#toString method. Resolves: KyoriPowered#466
lynxplay
added a commit
to lynxplay/adventure
that referenced
this issue
Oct 24, 2021
While using join configurations is already rather simple, they tend to clutter up already rather verbose source code. While the initial creation of the JoinConfiguration already included a null configuration, accessible through 'JoinConfiguration#noSeparators', other standards or often used layouts were not added. This commit adds three more defaults/standards to the join configuration implementation that are exposed through static accessors in the join configuration interface. Specifically: newLines: A straight forward instance of the join configuraiton that uses the new line component to join together components. commas: Another straight forward instance of the join configuration that uses a single comma (or potentially a comma and a space) to join together components. arrayLike: A more complex join configuration that recreates the layout used by the java.util.Arrays#toString method. Resolves: KyoriPowered#466
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
The text was updated successfully, but these errors were encountered: