Record Class PalettedTextureManager.BaseTexture
java.lang.Object
java.lang.Record
net.minecraft.client.resources.palette.PalettedTextureManager.BaseTexture
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
PalettedTextureManager
private static record PalettedTextureManager.BaseTexture(NativeImage image, @Nullable PaletteMetadataSection paletteMetadata)
extends Record
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NativeImageThe field for theimagerecord component.private final @Nullable PaletteMetadataSectionThe field for thepaletteMetadatarecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBaseTexture(NativeImage image, @Nullable PaletteMetadataSection paletteMetadata) Creates an instance of aBaseTexturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.Returns the value of thepaletteMetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
image
The field for theimagerecord component. -
paletteMetadata
The field for thepaletteMetadatarecord component.
-
-
Constructor Details
-
BaseTexture
Creates an instance of aBaseTexturerecord class.- Parameters:
image- the value for theimagerecord componentpaletteMetadata- the value for thepaletteMetadatarecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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). -
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
paletteMetadata
Returns the value of thepaletteMetadatarecord component.- Returns:
- the value of the
paletteMetadatarecord component
-