|
Quilt Loader 1
|
Various methods for invoking entrypoints. More...
Static Public Member Functions | |
| static< T > void | invoke (String name, Class< T > type, Consumer<? super T > invoker) |
| Passes every entrypoint value with the given name to the consumer. | |
| static< T > void | invoke (String name, Class< T > type, BiConsumer< T, ModContainer > invoker) |
Passes every entrypoint value and ModContainer with the given name to the consumer. | |
| static< T > void | invokeContainer (String name, Class< T > type, Consumer< EntrypointContainer< T > > invoker) |
Passes every EntrypointContainer with the given name to the consumer. | |
Various methods for invoking entrypoints.
This is intended for use whenever you want to invoke a method on each returned entrypoint, likely via method reference. For example Quilt Loader uses this to invoke the "pre_launch" entrypoint:
EntrypointUtil.invoke("pre_launch", PreLaunchEntrypoint.class, PreLaunchEntrypoint::onPreLaunch);
|
inlinestatic |
Passes every entrypoint value and ModContainer with the given name to the consumer.
| EntrypointException | if anything goes wrong while gathering entrypoints (for example if an entrypoint cannot be cast to the given class). |
|
inlinestatic |
Passes every entrypoint value with the given name to the consumer.
| EntrypointException | if anything goes wrong while gathering entrypoints (for example if an entrypoint cannot be cast to the given class). |
|
inlinestatic |
Passes every EntrypointContainer with the given name to the consumer.
| EntrypointException | if anything goes wrong while gathering entrypoints (for example if an entrypoint cannot be cast to the given class). |