Repository navigation
Messages: Changed Commandant's texts to Semantica messages sent through Keystone 2 - #19
Open
whereareiam wants to merge 3 commits into
Open
whereareiam wants to merge 3 commits into
whereareiam wants to merge 3 commits into
Conversation
Commandant's texts are the @Messages interface CommandantMessages with English defaults in its jar (commandant.exception.*, help.*, pagination.*), exported to translations/en by Semantica's Gradle plugin. Exceptions, cooldowns, help and pagination send them through the plugin's Keystone messenger: Cloud's exception controller replaces cloud-minecraft-extras, cooldowns ask the messenger for a sender's id, and help passes each argument as its own message and the page arrows as linked values that run the page command. Actor, Console, the serializer engine, the message keys and models and CommandantSyntaxFormatter are removed. Java 21. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s long as the mod Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…finition, unregistered Cloud's AnnotationParser registers what it parses, so a plugin had to write its own parser (Identica's IdenticaAnnotationParser) to apply a definition before registering. AnnotatedCommands owns that once: it parses with a manager that keeps nothing and shares the plugin manager's parsers, and puts @Definition (method, else class) into the meta. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #14 (cooldowns), which I rebased onto
devafter the help rewrite merged; GitHub moves the base todevonce #14 merges.Commandant 2.0.0 on Keystone 2 and Semantica:
CommandantMessagesis a@Messagesinterface with English defaults in the jar (commandant.exception.*,help.*,pagination.*), exported totranslations/enby Semantica's Gradle plugin. A plugin adds them as a layer:ClasspathSource.of(CommandantMessages.class, ...).ExceptionHandlerRegistrar.register(manager, messenger)replaces cloud-minecraft-extras with Cloud's exception controller;CommandCooldowns.register(manager, messenger)asks the messenger for a sender's id; help passes each argument as its own message and the page arrows as linked values that run the page command.AnnotatedCommands. Cloud'sAnnotationParserregisters what it parses, so a plugin had to write its own parser (Identica'sIdenticaAnnotationParser) to apply a definition first.AnnotatedCommands.of(manager, senderType).parse(...)reads the commands with a manager that keeps nothing and shares the plugin manager's parsers, puts@Definition(on the method, else on the class) into the command's meta asCommandantKeys.DEFINITION_ID, and returns them unregistered forCommandant.process(...).withDefinition(...).register().Actor,Console, the serializer engine, the message keys and models,CommandantSyntaxFormatter. Java 21.Keystone comes from
2.0.0-local-e0ccf8d(whereareiam/keystonefeature/platform-neoforge) and Semantica fromdev-composed(whereareiam/semanticafeature/composed-values) in Maven local; switch the catalog to releases once both are cut. The Milestones mod (NeoForge) builds against2.0.0-local-160f88dof this branch, and its server test passes with it.Release notes
Area: Descriptionwith a listed areachangemajoradded: plugins must change their code on upgrade.github/release-notes.md(section "Upgrading";AnnotatedCommandsis new and needs none)Checks
AnnotatedCommandsTest, the messages and handlers on Keystone 2)🤖 Generated with Claude Code