Record Class CommonLaunchHandler.LocatedPaths
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.targets.CommonLaunchHandler.LocatedPaths
- Enclosing class:
- CommonLaunchHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiPredicate<String,
String> The field for theminecraftFilter
record component.The field for theminecraftPaths
record component.The field for theotherArtifacts
record component.The field for theotherModPaths
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theminecraftFilter
record component.Returns the value of theminecraftPaths
record component.Returns the value of theotherArtifacts
record component.Returns the value of theotherModPaths
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
minecraftPaths
The field for theminecraftPaths
record component. -
minecraftFilter
The field for theminecraftFilter
record component. -
otherModPaths
The field for theotherModPaths
record component. -
otherArtifacts
The field for theotherArtifacts
record component.
-
-
Constructor Details
-
LocatedPaths
public LocatedPaths(List<Path> minecraftPaths, BiPredicate<String, String> minecraftFilter, List<List<Path>> otherModPaths, List<Path> otherArtifacts) Creates an instance of aLocatedPaths
record class.- Parameters:
minecraftPaths
- the value for theminecraftPaths
record componentminecraftFilter
- the value for theminecraftFilter
record componentotherModPaths
- the value for theotherModPaths
record componentotherArtifacts
- the value for theotherArtifacts
record component
-
-
Method Details
-
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)
. -
minecraftPaths
Returns the value of theminecraftPaths
record component.- Returns:
- the value of the
minecraftPaths
record component
-
minecraftFilter
Returns the value of theminecraftFilter
record component.- Returns:
- the value of the
minecraftFilter
record component
-
otherModPaths
Returns the value of theotherModPaths
record component.- Returns:
- the value of the
otherModPaths
record component
-
otherArtifacts
Returns the value of theotherArtifacts
record component.- Returns:
- the value of the
otherArtifacts
record component
-