Record Class PathPrettyPrinting.PathSubstitution
java.lang.Object
java.lang.Record
net.neoforged.fml.util.PathPrettyPrinting.PathSubstitution
- Enclosing class:
PathPrettyPrinting
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePathSubstitution(Path basePath, String prefix, String suffix) Creates an instance of aPathSubstitutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbasePath()Returns the value of thebasePathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prefix()Returns the value of theprefixrecord component.suffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
basePath
The field for thebasePathrecord component. -
prefix
The field for theprefixrecord component. -
suffix
The field for thesuffixrecord component.
-
-
Constructor Details
-
PathSubstitution
-
-
Method Details
-
toString
-
hashCode
-
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). -
basePath
Returns the value of thebasePathrecord component.- Returns:
- the value of the
basePathrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-