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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntContents(int[] contents, int bitWidth) Creates an instance of aIntContentsrecord class. -
Method Summary
Modifier 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.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 int[] contentsThe field for thecontentsrecord component. -
bitWidth
private final int bitWidthThe field for thebitWidthrecord component. -
SIZE_24
private static final int SIZE_24- See Also:
-
-
Constructor Details
-
IntContents
IntContents(int[] contents, int bitWidth) Creates an instance of aIntContentsrecord class.- Parameters:
contents- the value for thecontentsrecord componentbitWidth- the value for thebitWidthrecord component
-
-
Method Details
-
line
public int line(int p_285172_) - Specified by:
linein interfaceUnihexProvider.LineData
-
read24
static UnihexProvider.LineData read24(int p_285362_, it.unimi.dsi.fastutil.bytes.ByteList p_285123_) -
read32
public static UnihexProvider.LineData read32(int p_285222_, it.unimi.dsi.fastutil.bytes.ByteList p_285346_) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
contents
public int[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
bitWidth
public int bitWidth()Returns the value of thebitWidthrecord component.- Specified by:
bitWidthin interfaceUnihexProvider.LineData- Returns:
- the value of the
bitWidthrecord component
-