Record Class CommonLaunchHandler.LocatedPaths

java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.targets.CommonLaunchHandler.LocatedPaths
Enclosing class:
CommonLaunchHandler

public static record CommonLaunchHandler.LocatedPaths(List<Path> minecraftPaths, BiPredicate<String,​String> minecraftFilter, List<List<Path>> otherModPaths, List<Path> otherArtifacts) extends Record
  • Field Details

    • minecraftPaths

      private final List<Path> minecraftPaths
      The field for the minecraftPaths record component.
    • minecraftFilter

      private final BiPredicate<String,​String> minecraftFilter
      The field for the minecraftFilter record component.
    • otherModPaths

      private final List<List<Path>> otherModPaths
      The field for the otherModPaths record component.
    • otherArtifacts

      private final List<Path> otherArtifacts
      The field for the otherArtifacts 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 a LocatedPaths record class.
      Parameters:
      minecraftPaths - the value for the minecraftPaths record component
      minecraftFilter - the value for the minecraftFilter record component
      otherModPaths - the value for the otherModPaths record component
      otherArtifacts - the value for the otherArtifacts record component
  • Method Details

    • 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.
    • minecraftPaths

      public List<Path> minecraftPaths()
      Returns the value of the minecraftPaths record component.
      Returns:
      the value of the minecraftPaths record component
    • minecraftFilter

      public BiPredicate<String,​String> minecraftFilter()
      Returns the value of the minecraftFilter record component.
      Returns:
      the value of the minecraftFilter record component
    • otherModPaths

      public List<List<Path>> otherModPaths()
      Returns the value of the otherModPaths record component.
      Returns:
      the value of the otherModPaths record component
    • otherArtifacts

      public List<Path> otherArtifacts()
      Returns the value of the otherArtifacts record component.
      Returns:
      the value of the otherArtifacts record component