Record Class ApplyInFolders
java.lang.Object
java.lang.Record
net.minecraft.util.filefix.operations.ApplyInFolders
- All Implemented Interfaces:
FileFixOperation
public record ApplyInFolders(FileRelation folders, List<FileFixOperation> fileFixOperations)
extends Record
implements FileFixOperation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FileFixOperation> The field for thefileFixOperationsrecord component.private final FileRelationThe field for thefoldersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionApplyInFolders(FileRelation folders, List<FileFixOperation> fileFixOperations) Creates an instance of aApplyInFoldersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileFixOperationsrecord component.voidfix(Path baseDirectory, UpgradeProgress upgradeProgress) folders()Returns the value of thefoldersrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
folders
The field for thefoldersrecord component. -
fileFixOperations
The field for thefileFixOperationsrecord component.
-
-
Constructor Details
-
ApplyInFolders
Creates an instance of aApplyInFoldersrecord class.- Parameters:
folders- the value for thefoldersrecord componentfileFixOperations- the value for thefileFixOperationsrecord component
-
-
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). -
folders
Returns the value of thefoldersrecord component.- Returns:
- the value of the
foldersrecord component
-
fileFixOperations
Returns the value of thefileFixOperationsrecord component.- Returns:
- the value of the
fileFixOperationsrecord component
-