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
private static record UnihexProvider.ByteContents(byte[] contents)
extends Record
implements UnihexProvider.LineData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thecontentsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateByteContents(byte[] contents) Creates an instance of aByteContentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbitWidth()byte[]contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline(int index) private static UnihexProvider.LineDataread(int line, it.unimi.dsi.fastutil.bytes.ByteList input) final StringtoString()Returns a string representation of this record class.Methods inherited from interface UnihexProvider.LineData
calculateWidth, mask
-
Field Details
-
contents
private final byte[] contentsThe field for thecontentsrecord component.
-
-
Constructor Details
-
ByteContents
private ByteContents(byte[] contents) Creates an instance of aByteContentsrecord class.- Parameters:
contents- the value for thecontentsrecord component
-
-
Method Details
-
line
public int line(int index) - Specified by:
linein interfaceUnihexProvider.LineData
-
read
-
bitWidth
public int bitWidth()- Specified by:
bitWidthin interfaceUnihexProvider.LineData
-
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). -
contents
public byte[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-