-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite the mod discovery process with a focus on better end-to-end r…
…eporting of errors and warnings Co-authored-by: Matyrobbrt <[email protected]> Co-authored-by: Technici4n <[email protected]>
- Loading branch information
Showing
133 changed files
with
3,065 additions
and
2,148 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="true" type="JUnit" factoryName="JUnit"> | ||
<option name="MAIN_CLASS_NAME" value="" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="class" /> | ||
<option name="VM_PARAMETERS" value="-ea --add-opens=java.base/java.lang.invoke=ALL-UNNAMED" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Fancy Mod Loader | ||
|
||
The mod loader used by [NeoForge](https://github.com/neoforged/NeoForge). | ||
|
||
## Extension Points | ||
|
||
### Mod File Candidate Locators | ||
|
||
Responsible for locating potential mod files. Represents candiates as `JarContents` | ||
from [SJH](https://github.com/McModLauncher/securejarhandler). | ||
|
||
Interface: `net.neoforged.neoforgespi.locating.IModFileCandidateLocator` | ||
|
||
Resolved via Java ServiceLoader. | ||
|
||
You can construct a basic locator to scan a folder for mods by using `IModFileCandidateLocator.forFolder`. This can be | ||
useful if your locator generates a folder on-disk and wants to delegate to default behavior for it (For example used | ||
by [ServerPackLocator](https://github.com/marchermans/serverpacklocator/)). | ||
|
||
### Mod File Readers | ||
|
||
Responsible for creating a `IModFile` for mod file candidates. | ||
|
||
The default implementation will resolve the type of the mod file by inspecting the Jar manifest or the mod metadata | ||
file (`neoforge.mods.toml`) and return an `IModFile` instance if this succeeds. | ||
|
||
Interface: `net.neoforged.neoforgespi.locating.IModFileReader` | ||
|
||
Resolved via Java ServiceLoader. | ||
|
||
Mod file instances can be created using the static methods on `IModFile`. | ||
|
||
### Mod File Provider | ||
|
||
Responsible for supplying `IModFile` that are not based on candidates resolved through locators. | ||
|
||
Interface: `net.neoforged.neoforgespi.locating.IModFileReader` | ||
|
||
Resolved via Java ServiceLoader. | ||
|
||
Mod file instances can be created using the static methods on `IModFile`. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
26 changes: 0 additions & 26 deletions
26
loader/src/main/java/net/neoforged/fml/LoadingFailedException.java
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.