Record Class QuiltDataFixesInternals.DataFixerEntry
java.lang.Object
java.lang.Record
org.quiltmc.qsl.frozenblock.misc.datafixerupper.impl.QuiltDataFixesInternals.DataFixerEntry
- Enclosing class:
- QuiltDataFixesInternals
public static record QuiltDataFixesInternals.DataFixerEntry(com.mojang.datafixers.DataFixer dataFixer, int currentVersion)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDataFixerEntry(com.mojang.datafixers.DataFixer dataFixer, int currentVersion) Creates an instance of aDataFixerEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecurrentVersionrecord component.com.mojang.datafixers.DataFixerReturns the value of thedataFixerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataFixerEntry
public DataFixerEntry(com.mojang.datafixers.DataFixer dataFixer, int currentVersion) Creates an instance of aDataFixerEntryrecord class.- Parameters:
dataFixer- the value for thedataFixerrecord componentcurrentVersion- the value for thecurrentVersionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dataFixer
public com.mojang.datafixers.DataFixer dataFixer()Returns the value of thedataFixerrecord component.- Returns:
- the value of the
dataFixerrecord component
-
currentVersion
public int currentVersion()Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-