Interface ModuleContentLedger

All Known Implementing Classes:
ContributionLedger
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Internal @FunctionalInterface public interface ModuleContentLedger
Answers which custom game content a module added, for removal warnings.

The bootstrap content channels supply the real answer; until they install one, NONE answers "nothing" for every module.

Since:
7.0.0
  • Field Details

  • Method Details

    • contentOf

      ModuleContent contentOf(@Nullable @Nullable String identifyString, String moduleName)
      Returns the custom content the module added.
      Parameters:
      identifyString - the module's normalised identify string, or null when unknown
      moduleName - the name from the module's plugin.yml; the primary lookup key
      Returns:
      the content; never null