Interface IEntrypointContainer


public interface IEntrypointContainer
A container for entrypoint.
Since:
1.0.0
  • Method Details

    • invoke

      <T> void invoke(String key, Class<T> type, Consumer<? super T> invoker)
      Type Parameters:
      T - the entrypoint class.
      Parameters:
      key - the entrypoint name.
      type - the entrypoint type.
      invoker - the entrypoint invoker.
    • getEntrypoints

      @Nullable EntrypointPair[] getEntrypoints(String key)
      Gets the entrypoints.
      Parameters:
      key - the entrypoint name.
      Returns:
      EntrypointPair
    • getEntrypointMap

      Map<String, EntrypointPair[]> getEntrypointMap()
      Gets the entrypoint map.
      Returns:
      a Map the key is the entrypoint name and value is an array of EntrypointPair.
    • getContainer

      IModContainer getContainer()
      Gets the Mod container.
      Returns:
      IModContainer