Skip to content

Version request: Fabric 1.18 #7

Not planned
Not planned

Description

@HeatherComputer
No description provided.

Activity

  1. added
    version request
    on Dec 2, 2026
  2. github-actions commented on Dec 2, 2026

    @github-actions

    Porting checklist

    A target should only be considered fully supported once it provides feature parity with the existing targets. Not every target will implement these in the same way, but the behaviour exposed through Go!Agnostic should remain consistent.

    Target definition

    • Add the target to Mod.Target.
    • Give the target a unique implementation name in the form used by the template system, e.g. neoforge-1.21.
    • Map the target to the correct MCVersion.
    • Add the Minecraft version to MCVersion if it isn't already represented.
    • Map the target to the correct Modloader.
    • Add the modloader to Modloader if it isn't already represented.
    • Define every metadata/resource template that needs to be included in generated mods.
    • Define any additional target implementation classes which aren't part of the common template class set.
    • Add the target to CommandGen.getCommandGen() using an existing command generator where possible, or provide a target-specific generator where necessary.

    Target template project

    • Add a compilable target project under mc/<loader>/<version>.
    • Configure the target's Minecraft/modloader development environment.
    • Use the Java version required by the target Minecraft version.
    • Configure mappings appropriate for the target.
    • Produce a template JAR named GoAgnosticTemplate-<implementation name>.jar so the API build can discover it automatically.
    • Ensure the template JAR is in the correct namespace/mappings for the final target.
    • Provide any access transformers or equivalent target-specific resources required by the implementation.
    • Verify the template JAR is picked up and bundled by the API's processResources task.

    Mod bootstrap

    • Provide the generated target mod entrypoint.
    • Use the goagnosticmodgroup, goagnosticmodid, goagnosticmodname and goagnosticmodversion placeholders where applicable so the annotation processor can remap the template.
    • Instantiate the user's GoAgnosticMod subclass.
    • Pass the mod name and ID to the user's constructor.
    • Provide a GoAgnosticMod.Logger backed by the target's logging system, including info, warn and error.
    • Set the current Mod.Target using internal_setTarget().
    • Provide the target's Server implementation using internal_setServerSupplier().
    • Keep a reference to the currently running native server where required by the target implementation.

    Lifecycle and events

    • Call onServerStarting() when the server starts loading.
    • Make the native server available before onServerStarting() is called.
    • Call onServerStarted() once the server has started.
    • Call onServerStopping() when the server begins stopping.
    • Call serverTick() once at the start of every server tick.
    • Call playerJoin(Player) when a player joins.
    • Call playerLeave(Player) when a player leaves.
    • Ensure events work on dedicated servers.
    • Ensure the implementation behaves correctly on integrated servers where the target supports them.

    Player implementation

    • Provide a target implementation of computer.heather.goagnostic.api.util.player.Player.
    • Return the player's username from getName().
    • Return the player's UUID as a string from getUUID().
    • Return the player's X block coordinate from getX().
    • Return the player's Y block coordinate from getY().
    • Return the player's Z block coordinate from getZ().
    • Return the player's crouching state from isCrouching().
    • Send a message directly to the player from sendMessage().
    • Return the highest permission level the player has, from 0 to 4, from permissionLevel().
    • Ensure player wrappers can be created for join/leave events, chat events, command sources and the server player list.

    Server implementation

    • Provide a target implementation of computer.heather.goagnostic.api.util.server.Server.
    • Return permission level 4 from permissionLevel().
    • Send sendMessage() output to the server/console command source.
    • Correctly report dedicated vs integrated servers from isDedicated().
    • Return the root directory of the currently loaded world from getWorldDir().
    • Return a snapshot of all currently connected players from getPlayers().
    • Wrap every player returned by getPlayers() in the target's Go!Agnostic Player implementation.
    • Implement privileged server command execution through executeCommand().
    • Accept commands without a leading /.
    • Capture command output for CommandResult.getMessage().
    • Return an empty string rather than null when a command produces no output.
    • Report Minecraft's command success through CommandResult.getSuccess().
    • Ensure the command execution source has permission to run privileged commands.
    • Don't rely on a particular execution position for server-run commands.

    Commands

    • Register generated root commands using the target's command registration mechanism.
    • Support command execution from players.
    • Support command execution from non-player sources, represented to Go!Agnostic as the Server.
    • Convert the native command source into the appropriate Go!Agnostic CommandSource.
    • Support @Require checks.
    • Run requirements with a CommandContext containing the source but no arguments.
    • Support commands without arguments.
    • Support commands with arguments.
    • Support nested @Command subcommands.
    • Preserve parent and subcommand permission requirements.
    • Support ArgumentType.WORD.
    • Support ArgumentType.QUOTABLE_STRING.
    • Support ArgumentType.GREEDY_STRING.
    • Support ArgumentType.INTEGER.
    • Support ArgumentType.BOOLEAN.
    • Support ArgumentType.PLAYER.
    • Return the expected Java type for every parsed argument.
    • Convert native player arguments/selectors into Go!Agnostic Player instances.
    • On Brigadier targets, support single-player selectors such as @p for PLAYER.
    • On targets using Go!Agnostic's own parser, support players by exact username or UUID.
    • Ensure greedy strings consume the remainder of the command.
    • Ensure generated argument values are available through CommandContext.getArgument() under their declared names.

    Command generation

    • Provide a compilable generated-command template class.
    • Provide the target-specific command registration glue required by that template.
    • Provide command-generation instructions/templates for execution.
    • Provide command-generation instructions/templates for requirements.
    • Provide command-generation instructions/templates for starting a subcommand.
    • Provide command-generation instructions/templates for ending a subcommand.
    • For Brigadier-style targets, provide argument-generation templates for every supported ArgumentType.
    • For Brigadier-style targets, provide the argument-end template used to construct the command tree.
    • For targets without native typed command arguments, integrate CommandContext.create() so Go!Agnostic performs argument parsing at execution time.
    • If commands need additional runtime helper classes, include them in the target's extra template classes.
    • If command registration requires post-processing after all commands have been discovered, register and implement the required annotation-processor finalisation task.

    Chat

    • Register the target chat event listener.
    • Only pass player-authored public chat to ChatManager.internal_onChat().
    • Provide the message sender as a Go!Agnostic Player.
    • Expose the original unformatted/raw player-entered text through ChatMessage.getText(), without username or chat decoration.
    • Implement ChatMessage.blockMessage() by cancelling/preventing the original message synchronously.
    • Preserve the current setText() limitation: don't claim that editing the outgoing chat message is supported.
    • Provide a system-message sender through ChatManager.internal_setSystemSender().
    • Broadcast ChatManager.sendSystemMessage() messages to all currently connected players.
    • Account for signed-chat behaviour on versions where it exists; blocking and replacing with a system message must remain possible.

    Template classes and generated output

    • Provide the target Player template class.
    • Provide the target Server template class.
    • Provide any generated/anonymous Server support classes expected by the processor.
    • Provide the target ChatHandler template class.
    • Provide the target Message template class.
    • Provide the target CommandHandler template class.
    • Provide the target CommandHandler.RequireChecker class.
    • Provide any additional target-specific helper classes through Target.getExtraClasses().
    • Ensure all template class names and package paths survive placeholder remapping correctly.
    • Ensure the user's mod class replaces GoAgnosticModPlaceholder in the generated entrypoint.
    • Verify the generated target output contains the remapped classes rather than the goagnosticmod* placeholder names.

    Mod metadata and resources

    • Provide the target's required modloader metadata file(s).
    • Use Go!Agnostic placeholders for mod ID, name, version, authors, description and licence where supported by the target format.
    • Declare the correct Minecraft version/range.
    • Declare the correct loader and loader version/range.
    • Ensure the generated metadata identifies the user's mod rather than Go!Agnostic itself.
    • Ensure every required metadata/resource file is returned by Target.getModTextTemplatePaths() or otherwise included by the generation pipeline.
    • Verify metadata generation works when authors or description are left at their defaults.

    Final JAR generation

    • Ensure selecting the new target causes its implementation name to be written to targets.txt.
    • Ensure GoAgnosticFinalise creates a separate JAR for the target.
    • Ensure the target's generated classes and metadata are included in that JAR.
    • Ensure the Go!Agnostic API is bundled and relocated under the user's mod ID.
    • Verify user classes, generated classes and bundled API classes all reference the relocated API after remapping.
    • Verify the final JAR contains no unresolved goagnosticmodgroup, goagnosticmodid, goagnosticmodname, goagnosticmodversion or GoAgnosticModPlaceholder references.

    Feature-parity testing

    • Add the target to the targets used by the Go!Agnostic test mod.
    • Build the target template project successfully.
    • Build the API successfully with the new template included.
    • Build the test mod successfully for the new target.
    • Launch the generated mod successfully on the target.
    • Verify the generated mod's metadata is recognised correctly by the loader.
    • Verify LOGGER.info(), LOGGER.warn() and LOGGER.error().
    • Verify server starting, started and stopping callbacks.
    • Verify one serverTick() callback per server tick.
    • Verify player join and leave callbacks.
    • Verify player name and UUID.
    • Verify player block coordinates.
    • Verify player crouching state.
    • Verify direct player messages.
    • Verify player permission levels.
    • Verify Server.isDedicated().
    • Verify Server.getWorldDir().
    • Verify Server.getPlayers(), including joins and disconnects between snapshots.
    • Verify server/console messages.
    • Verify Server.executeCommand() output capture.
    • Verify Server.executeCommand() success reporting for both successful and unsuccessful commands.
    • Verify a root command without arguments.
    • Verify command requirements for both player and non-player sources.
    • Verify nested subcommands and their requirements.
    • Verify WORD.
    • Verify quoted QUOTABLE_STRING input.
    • Verify unquoted QUOTABLE_STRING input.
    • Verify GREEDY_STRING.
    • Verify positive, zero and negative INTEGER values.
    • Verify both true and false BOOLEAN values.
    • Verify PLAYER by username.
    • Verify PLAYER by UUID where Go!Agnostic's parser is used.
    • Verify supported single-player selectors on Brigadier targets.
    • Verify player chat reaches the registered chat listener with the correct sender and raw text.
    • Verify ChatMessage.blockMessage() prevents the original message from being broadcast.
    • Verify ChatManager.sendSystemMessage() broadcasts to connected players.
    • Verify legacy colour/formatting codes continue to work through the target's message APIs.
    • Test on a dedicated server.
    • Test on an integrated server where the target supports one.

    Documentation

    • Add the target to the README version-support table.
    • Mark it as fully supported only after every applicable feature-parity item above has been verified.
    • Document any unavoidable target-specific differences or limitations rather than silently treating them as equivalent.
  3. HeatherComputer commented on Dec 2, 2026

    @HeatherComputer
    OwnerAuthor

    closing, testing stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    version request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions