Record Class UnihexProvider.IntContents
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.IntContents
- All Implemented Interfaces:
- UnihexProvider.LineData
- Enclosing class:
- UnihexProvider
static record UnihexProvider.IntContents(int[] contents, int bitWidth)
extends Record
implements UnihexProvider.LineData
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionIntContents(int[] contents, int bitWidth) Creates an instance of aIntContentsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintbitWidth()Returns the value of thebitWidthrecord component.int[]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_285172_) (package private) static UnihexProvider.LineDataread24(int p_285362_, it.unimi.dsi.fastutil.bytes.ByteList p_285123_) static UnihexProvider.LineDataread32(int p_285222_, it.unimi.dsi.fastutil.bytes.ByteList p_285346_) 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 int[] contentsThe field for thecontentsrecord component.
- 
bitWidthprivate final int bitWidthThe field for thebitWidthrecord component.
- 
SIZE_24private static final int SIZE_24- See Also:
 
 
- 
- 
Constructor Details- 
IntContentsIntContents(int[] contents, int bitWidth) Creates an instance of aIntContentsrecord class.- Parameters:
- contents- the value for the- contentsrecord component
- bitWidth- the value for the- bitWidthrecord component
 
 
- 
- 
Method Details- 
linepublic int line(int p_285172_) - Specified by:
- linein interface- UnihexProvider.LineData
 
- 
read24static UnihexProvider.LineData read24(int p_285362_, it.unimi.dsi.fastutil.bytes.ByteList p_285123_) 
- 
read32public static UnihexProvider.LineData read32(int p_285222_, it.unimi.dsi.fastutil.bytes.ByteList p_285346_) 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
contentspublic int[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the contentsrecord component
 
- 
bitWidthpublic int bitWidth()Returns the value of thebitWidthrecord component.- Specified by:
- bitWidthin interface- UnihexProvider.LineData
- Returns:
- the value of the bitWidthrecord component
 
 
-