Record Class RegexMove
java.lang.Object
java.lang.Record
net.minecraft.util.filefix.operations.RegexMove
- All Implemented Interfaces:
FileFixOperation
public record RegexMove(Pattern fromPattern, String toReplacement)
extends Record
implements FileFixOperation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidfix(Path baseDirectory, UpgradeProgress upgradeProgress) Returns the value of thefromPatternrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetoReplacementrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fromPattern
The field for thefromPatternrecord component. -
toReplacement
The field for thetoReplacementrecord component.
-
-
Constructor Details
-
RegexMove
-
RegexMove
-
-
Method Details
-
fix
- Specified by:
fixin interfaceFileFixOperation- Throws:
IOException
-
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). -
fromPattern
Returns the value of thefromPatternrecord component.- Returns:
- the value of the
fromPatternrecord component
-
toReplacement
Returns the value of thetoReplacementrecord component.- Returns:
- the value of the
toReplacementrecord component
-