Interface ModContainer


public interface ModContainer
Represents a mod.
Since:
1.0.0
  • Method Details

    • id

      @NotNull @NotNull String id()
      Returns the identifier of this mod.
      Returns:
      the identifier of this mod
    • getName

      @NotNull @NotNull String getName()
      Returns the name of this mod.
      Returns:
      the name of this mod
    • getVersionString

      @NotNull @NotNull String getVersionString()
      Returns the string representation of the version of this mod.
      Returns:
      the string representation of the version of this mod
    • findPath

      @NotNull @NotNull Optional<Path> findPath(String first, String... more)
      Finds a resource path inside this mod.
      Parameters:
      first - the path string or initial part of the path string
      more - additional strings to be joined to form the path string
      Returns:
      the path if it exists, or Optional.empty() otherwise
    • getContainingMod

      @NotNull @NotNull Optional<ModContainer> getContainingMod()
      Returns the mod which contains this mod, if any.
      Returns:
      the mod which contains this mod, if any
    • getContainedMods

      @Unmodifiable Collection<ModContainer> getContainedMods()
      Returns the collection of mods contained within this mod.
      Returns:
      the collection of mods contained within this mod
    • getProvidedIds

      @Unmodifiable Collection<String> getProvidedIds()
      Returns a collection of mod identifiers provided by this mod.
      Returns:
      a collection of mod identifiers provided by this mod
    • getCustomProperties

      ManifestCustomValue.ObjectValue getCustomProperties()
      Returns the custom properties of this mod.
      Returns:
      the custom properties of this mod