-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Throws if the SERVICE layer was not built instead of using a default layer - Extracts the discoverer service type constants to a new shared class and adds the ImmediateWindowProvider to this list.
- Loading branch information
1 parent
8d26fa6
commit 0c5243a
Showing
4 changed files
with
31 additions
and
10 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
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: 26 additions & 0 deletions
26
loader/src/main/java/net/neoforged/fml/loading/TransformerDiscovererConstants.java
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,26 @@ | ||
package net.neoforged.fml.loading; | ||
|
||
|
||
import cpw.mods.modlauncher.api.IModuleLayerManager.Layer; | ||
import cpw.mods.modlauncher.serviceapi.ITransformerDiscoveryService; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* Defines a class containing constants which implementations of {@link ITransformerDiscoveryService} | ||
* may use. | ||
*/ | ||
public class TransformerDiscovererConstants { | ||
private TransformerDiscovererConstants() { } | ||
|
||
/** | ||
* Defines the set of FML service types which should be loaded on the | ||
* {@link Layer#SERVICE} module layer. | ||
*/ | ||
public static final Set<String> SERVICES = Set.of( | ||
"cpw.mods.modlauncher.api.ITransformationService", | ||
"net.neoforged.neoforgespi.locating.IModLocator", | ||
"net.neoforged.neoforgespi.locating.IDependencyLocator", | ||
"net.neoforged.fml.loading.ImmediateWindowProvider" | ||
); | ||
} |