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

Add MappingFormat#hasWriter #83

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

NebelNidas
Copy link
Collaborator

@NebelNidas NebelNidas commented Nov 18, 2023

Adds an easy way for querying whether or not a given MappingFormat has an associated writer available. This makes it easier for applications like Enigma to display a dropdown with all writable formats, instead of hardcoding the list or erroring after the fact. MappingWriter#create's return value isn't a viable alternative, since you have to pass a valid path or java.io.Writer to it before being able to obtain a result.

@modmuss50 modmuss50 added this to the 0.6.0 milestone Nov 21, 2023
@NebelNidas NebelNidas force-pushed the mappingformat-hasWriter-boolean branch from b1a4bca to bc3d4bf Compare November 30, 2023 23:21
@modmuss50 modmuss50 merged commit c772a56 into FabricMC:dev Mar 7, 2024
3 checks passed
@NebelNidas NebelNidas deleted the mappingformat-hasWriter-boolean branch August 28, 2024 21:01
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