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 SummaryFieldsModifier and TypeFieldDescriptionprivate final short[]The field for thecontentsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionShortContents(short[] contents) Creates an instance of aShortContentsrecord class.
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.font.providers.UnihexProvider.LineDatacalculateWidth, mask
- 
Field Details- 
contentsprivate final short[] contentsThe field for thecontentsrecord component.
 
- 
- 
Constructor Details- 
ShortContentsShortContents(short[] contents) Creates an instance of aShortContentsrecord class.- Parameters:
- contents- the value for the- contentsrecord component
 
 
- 
- 
Method Details- 
linepublic int line(int p_285158_) - Specified by:
- linein interface- UnihexProvider.LineData
 
- 
read
- 
bitWidthpublic int bitWidth()- Specified by:
- bitWidthin interface- UnihexProvider.LineData
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
contentspublic short[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the contentsrecord component
 
 
-