Record Class UnihexProvider.ShortContents
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.ShortContents
- All Implemented Interfaces:
UnihexProvider.LineData
- Enclosing class:
UnihexProvider
static record UnihexProvider.ShortContents(short[] contents)
extends Record
implements UnihexProvider.LineData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final short[]The field for thecontentsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShortContents(short[] contents) Creates an instance of aShortContentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbitWidth()short[]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 p_285158_) (package private) static UnihexProvider.LineDataread(int p_285528_, it.unimi.dsi.fastutil.bytes.ByteList p_284958_) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.font.providers.UnihexProvider.LineData
calculateWidth, mask
-
Field Details
-
contents
private final short[] contentsThe field for thecontentsrecord component.
-
-
Constructor Details
-
ShortContents
ShortContents(short[] contents) Creates an instance of aShortContentsrecord class.- Parameters:
contents- the value for thecontentsrecord component
-
-
Method Details
-
line
public int line(int p_285158_) - Specified by:
linein interfaceUnihexProvider.LineData
-
read
-
bitWidth
public int bitWidth()- Specified by:
bitWidthin 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 short[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-