Record Class PalettedTextureManager.SlotKey
java.lang.Object
java.lang.Record
net.minecraft.client.resources.palette.PalettedTextureManager.SlotKey
- Enclosing class:
PalettedTextureManager
private static record PalettedTextureManager.SlotKey(Identifier baseTexture, Identifier paletteId)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thebaseTexturerecord component.private final IdentifierThe field for thepaletteIdrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSlotKey(Identifier baseTexture, Identifier paletteId) Creates an instance of aSlotKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseTexturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepaletteIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
baseTexture
The field for thebaseTexturerecord component. -
paletteId
The field for thepaletteIdrecord component.
-
-
Constructor Details
-
SlotKey
Creates an instance of aSlotKeyrecord class.- Parameters:
baseTexture- the value for thebaseTexturerecord componentpaletteId- the value for thepaletteIdrecord 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). -
baseTexture
Returns the value of thebaseTexturerecord component.- Returns:
- the value of the
baseTexturerecord component
-
paletteId
Returns the value of thepaletteIdrecord component.- Returns:
- the value of the
paletteIdrecord component
-