Record Class PaletteMappingCache.IdPair
java.lang.Object
java.lang.Record
net.minecraft.client.resources.palette.PaletteMappingCache.IdPair
- Enclosing class:
PaletteMappingCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thebaserecord component.private final IdentifierThe field for thetargetrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIdPair(Identifier base, Identifier target) Creates an instance of aIdPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
base
The field for thebaserecord component. -
target
The field for thetargetrecord component.
-
-
Constructor Details
-
IdPair
Creates an instance of aIdPairrecord class.- Parameters:
base- the value for thebaserecord componenttarget- the value for thetargetrecord component
-
-
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). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-