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
-
Constructor Summary
ConstructorDescriptionIntContents
(int[] contents, int bitWidth) Creates an instance of aIntContents
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bitWidth()
Returns the value of thebitWidth
record component.int[]
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_285172_) (package private) static UnihexProvider.LineData
read24
(int p_285362_, it.unimi.dsi.fastutil.bytes.ByteList p_285123_) static UnihexProvider.LineData
read32
(int p_285222_, it.unimi.dsi.fastutil.bytes.ByteList p_285346_) 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 int[] contentsThe field for thecontents
record component. -
bitWidth
private final int bitWidthThe field for thebitWidth
record component. -
SIZE_24
private static final int SIZE_24- See Also:
-
-
Constructor Details
-
IntContents
IntContents(int[] contents, int bitWidth) Creates an instance of aIntContents
record class.- Parameters:
contents
- the value for thecontents
record componentbitWidth
- the value for thebitWidth
record component
-
-
Method Details
-
line
public int line(int p_285172_) - Specified by:
line
in 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_) -
bitWidth
public int bitWidth()Returns the value of thebitWidth
record component.- Specified by:
bitWidth
in interfaceUnihexProvider.LineData
- Returns:
- the value of the
bitWidth
record component
-
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 thecontents
record component.- Returns:
- the value of the
contents
record component
-