Record Class FMLLoader.DiscoveryResult

java.lang.Object
java.lang.Record
net.neoforged.fml.loading.FMLLoader.DiscoveryResult
Enclosing class:
FMLLoader

@VisibleForTesting static record FMLLoader.DiscoveryResult(List<ModFile> pluginContent, List<ModFile> gameContent, List<ModFile> gameLibraryContent, List<ModLoadingIssue> discoveryIssues) extends Record
  • Field Details

    • pluginContent

      private final List<ModFile> pluginContent
      The field for the pluginContent record component.
    • gameContent

      private final List<ModFile> gameContent
      The field for the gameContent record component.
    • gameLibraryContent

      private final List<ModFile> gameLibraryContent
      The field for the gameLibraryContent record component.
    • discoveryIssues

      private final List<ModLoadingIssue> discoveryIssues
      The field for the discoveryIssues record component.
  • Constructor Details

    • DiscoveryResult

      DiscoveryResult(List<ModFile> pluginContent, List<ModFile> gameContent, List<ModFile> gameLibraryContent, List<ModLoadingIssue> discoveryIssues)
      Creates an instance of a DiscoveryResult record class.
      Parameters:
      pluginContent - the value for the pluginContent record component
      gameContent - the value for the gameContent record component
      gameLibraryContent - the value for the gameLibraryContent record component
      discoveryIssues - the value for the discoveryIssues record component
  • Method Details

    • allContent

      public List<ModFile> allContent()
    • allGameContent

      public List<ModFile> allGameContent()
    • hasErrors

      public boolean hasErrors()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pluginContent

      public List<ModFile> pluginContent()
      Returns the value of the pluginContent record component.
      Returns:
      the value of the pluginContent record component
    • gameContent

      public List<ModFile> gameContent()
      Returns the value of the gameContent record component.
      Returns:
      the value of the gameContent record component
    • gameLibraryContent

      public List<ModFile> gameLibraryContent()
      Returns the value of the gameLibraryContent record component.
      Returns:
      the value of the gameLibraryContent record component
    • discoveryIssues

      public List<ModLoadingIssue> discoveryIssues()
      Returns the value of the discoveryIssues record component.
      Returns:
      the value of the discoveryIssues record component