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
private static record UnihexProvider.IntContents(int[] contents, int bitWidth)
extends Record
implements UnihexProvider.LineData
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIntContents(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 index) private static UnihexProvider.LineDataread24(int line, it.unimi.dsi.fastutil.bytes.ByteList input) static UnihexProvider.LineDataread32(int line, it.unimi.dsi.fastutil.bytes.ByteList input) final StringtoString()Returns a string representation of this record class.Methods inherited from interface 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
private 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 index) - Specified by:
linein interfaceUnihexProvider.LineData
-
read24
-
read32
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-