Interface ClassProcessorProvider
- All Known Implementing Classes:
NeoForgeCoreMod
public interface ClassProcessorProvider
A provider can be implemented and exposed using the Java
ServiceLoader to contribute
class processors to the launching game. You can also provide ClassProcessor
implementations using service loader directly, but this interface allows the launch environment to be inspected
and processors to be added conditionally.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic final recordContext about the currently launching game that is passed when processors are collected. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateProcessors(ClassProcessorProvider.Context context, ClassProcessorProvider.Collector collector) Called by the loader when it collects all class processors to apply to the game.
-
Method Details
-
createProcessors
void createProcessors(ClassProcessorProvider.Context context, ClassProcessorProvider.Collector collector) Called by the loader when it collects all class processors to apply to the game. Providers must add any processors they want to activate for the currently launching game tocollector.
-