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

Update to simpler mod loading from latest FML #774

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

Technici4n
Copy link
Member

@Technici4n Technici4n commented Apr 3, 2024

@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Apr 3, 2024

  • Publish PR to GitHub Packages

Last commit published: ec5b1f2723752abee6c74be10ad6eb69ae9e3c6e.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #774' // https://github.com/neoforged/NeoForge/pull/774
        url 'https://prmaven.neoforged.net/NeoForge/pr774'
        content {
            includeModule('net.neoforged', 'neoforge')
            includeModule('net.neoforged', 'testframework')
        }
    }
}

MDK installation

In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin folder on the path.
The script will clone the MDK in a folder named NeoForge-pr774.
On Powershell you will need to remove the -L flag from the curl invocation.

mkdir NeoForge-pr774
cd NeoForge-pr774
curl -L https://prmaven.neoforged.net/NeoForge/pr774/net/neoforged/neoforge/20.5.0-alpha.1.20.5-rc1.20240418.193017/mdk-pr774.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip

To test a production environment, you can download the installer from here.

@Technici4n Technici4n changed the base branch from port/24w13a to port/24w14a April 8, 2024 15:02
@Shadows-of-Fire Shadows-of-Fire added this to the 20.5 Stable Release milestone Apr 15, 2024
@Shadows-of-Fire Shadows-of-Fire added enhancement New (or improvement to existing) feature or request 1.20.5 Targeted at Minecraft 1.20.5 labels Apr 15, 2024
@Technici4n Technici4n changed the base branch from port/24w14a to port/1.20.5 April 15, 2024 06:07
return registriesLoaded;
}

protected static void begin(Runnable periodicTask) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment when this is called? Or when it should be called?
Especially to explain why we have begin and load and why are they split?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added a vague comment - the current separation is only an artifact of how we do part of the mod loading inside a reload listener (which introduces its own set of problems btw...). I don't really want to encode it because we have discussed a potential rework of the client mod init timings.

}

protected static void load(Executor syncExecutor, Executor parallelExecutor) {
Runnable periodicTask = () -> {}; // no need to pass something else for now
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

@Technici4n Technici4n changed the title Vastly simplify mod loading Update to simpler mod loading from latest FML Apr 17, 2024
@Technici4n Technici4n merged commit a70fa37 into neoforged:port/1.20.5 Apr 18, 2024
4 checks passed
@Technici4n Technici4n deleted the redo-mod-loading branch April 18, 2024 20:23
ApexModder pushed a commit to ApexModder/NeoForge that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20.5 Targeted at Minecraft 1.20.5 enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants