Skip to content

Conversation

Thatsmusic99
Copy link
Member

Adds NeoForge support for 1.21.1.

The compiled jar file ends up too large - still needs fixing and general cleanup may be needed prior to merging.

@Thatsmusic99 Thatsmusic99 marked this pull request as ready for review June 11, 2025 22:10
@MattyTheHacker MattyTheHacker requested a review from Copilot June 12, 2025 14:05
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds initial NeoForge support to the project, extending mod compatibility and integrating with NeoForge APIs.

  • Introduces a new Maven repository and toolchain configuration in settings.gradle.
  • Adds new mod metadata, logging, event, command, and executor classes specific to NeoForge.
  • Updates Gradle build scripts and CI workflows to include the new "neoforge" target.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
settings.gradle Adds NeoForge Maven repository, toolchain plugin, and includes the neoforge project.
neoforge/src/main/templates/META-INF/neoforge.mods.toml Provides module metadata template for NeoForge mods.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/logger/ForgeLogger.java Implements a logger for the NeoForge platform by extending the common abstract logger.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/listener/ForgeEventAdapter.java Maps platform-specific events from NeoForge to the common event bus.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/executor/ForgeServerExecutor.java Provides an executor implementation to schedule tasks synchronously on the server.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/command/ForgeCommandService.java Registers commands using brigadier for NeoForge.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/adapter/ForgeServerChatAdapter.java Bridges server chat events by converting messaging components between formats.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/NeoForgeCSSMinecraftPlugin.java Main plugin class that sets up the NeoForge adapter, executor, and command service.
neoforge/src/main/java/com/cssbham/cssminecraft/neoforge/CSSMinecraftLoader.java Loader that initializes and registers the plugin with NeoForge’s event bus.
neoforge/gradle.properties Contains configuration and version properties for the mod.
neoforge/build.gradle Configures dependencies, tasks, and run configurations for building the NeoForge mod.
.github/workflows/build.yml Updates the CI workflow to include the new "neoforge" build target.

@LMBishop LMBishop merged commit b31c375 into master Jun 18, 2025
4 checks passed
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