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
Modifier and TypeFieldDescriptionprivate final short[]
The field for thecontents
record component. -
Constructor Summary
ConstructorDescriptionShortContents
(short[] contents) Creates an instance of aShortContents
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bitWidth()
short[]
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_285158_) (package private) static UnihexProvider.LineData
read
(int p_285528_, it.unimi.dsi.fastutil.bytes.ByteList p_284958_) 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 short[] contentsThe field for thecontents
record component.
-
-
Constructor Details
-
ShortContents
ShortContents(short[] contents) Creates an instance of aShortContents
record class.- Parameters:
contents
- the value for thecontents
record component
-
-
Method Details
-
line
public int line(int p_285158_) - 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 short[] contents()Returns the value of thecontents
record component.- Returns:
- the value of the
contents
record component
-