Package net.neoforged.fml.loading
Record Class FMLLoader.DiscoveryResult
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.FMLLoader.DiscoveryResult
- Enclosing class:
FMLLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ModLoadingIssue> The field for thediscoveryIssuesrecord component.The field for thegameContentrecord component.The field for thegameLibraryContentrecord component.The field for thepluginContentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryResult(List<ModFile> pluginContent, List<ModFile> gameContent, List<ModFile> gameLibraryContent, List<ModLoadingIssue> discoveryIssues) Creates an instance of aDiscoveryResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscoveryIssuesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameContentrecord component.Returns the value of thegameLibraryContentrecord component.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of thepluginContentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pluginContent
The field for thepluginContentrecord component. -
gameContent
The field for thegameContentrecord component. -
gameLibraryContent
The field for thegameLibraryContentrecord component. -
discoveryIssues
The field for thediscoveryIssuesrecord component.
-
-
Constructor Details
-
DiscoveryResult
DiscoveryResult(List<ModFile> pluginContent, List<ModFile> gameContent, List<ModFile> gameLibraryContent, List<ModLoadingIssue> discoveryIssues) Creates an instance of aDiscoveryResultrecord class.- Parameters:
pluginContent- the value for thepluginContentrecord componentgameContent- the value for thegameContentrecord componentgameLibraryContent- the value for thegameLibraryContentrecord componentdiscoveryIssues- the value for thediscoveryIssuesrecord component
-
-
Method Details
-
allContent
-
allGameContent
-
hasErrors
public boolean hasErrors() -
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
pluginContent
Returns the value of thepluginContentrecord component.- Returns:
- the value of the
pluginContentrecord component
-
gameContent
Returns the value of thegameContentrecord component.- Returns:
- the value of the
gameContentrecord component
-
gameLibraryContent
Returns the value of thegameLibraryContentrecord component.- Returns:
- the value of the
gameLibraryContentrecord component
-
discoveryIssues
Returns the value of thediscoveryIssuesrecord component.- Returns:
- the value of the
discoveryIssuesrecord component
-