Record Class UnihexProvider.ByteContents
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.ByteContents
- All Implemented Interfaces:
UnihexProvider.LineData
- Enclosing class:
- UnihexProvider
static record UnihexProvider.ByteContents(byte[] contents)
extends Record
implements UnihexProvider.LineData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
The field for thecontents
record component. -
Constructor Summary
ConstructorDescriptionByteContents
(byte[] contents) Creates an instance of aByteContents
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bitWidth()
byte[]
contents()
Returns the value of thecontents
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
line
(int p_285203_) (package private) static UnihexProvider.LineData
read
(int p_285080_, it.unimi.dsi.fastutil.bytes.ByteList p_285481_) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.font.providers.UnihexProvider.LineData
calculateWidth, mask
-
Field Details
-
contents
private final byte[] contentsThe field for thecontents
record component.
-
-
Constructor Details
-
ByteContents
ByteContents(byte[] contents) Creates an instance of aByteContents
record class.- Parameters:
contents
- the value for thecontents
record component
-
-
Method Details
-
line
public int line(int p_285203_) - Specified by:
line
in interfaceUnihexProvider.LineData
-
read
-
bitWidth
public int bitWidth()- Specified by:
bitWidth
in interfaceUnihexProvider.LineData
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
contents
public byte[] contents()Returns the value of thecontents
record component.- Returns:
- the value of the
contents
record component
-