-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Technici4n <[email protected]> Co-authored-by: Sebastian Hartte <[email protected]>
- Loading branch information
1 parent
0aa8991
commit 0844898
Showing
139 changed files
with
3,992 additions
and
2,289 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
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,31 @@ | ||
# 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. Filesystem locations, virtual jars or even full mod-files can be reported to the discovery pipeline for inclusion in the mod loading process. | ||
The pipeline also offers a way for locators to add issues (warnings & errors) that will later be shown to the user when mod loading concludes. | ||
|
||
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`. |
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
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.