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
    Modifier and Type
    Field
    Description
    private final int
    The field for the bitWidth record component.
    private final int[]
    The field for the contents record component.
    private static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntContents(int[] contents, int bitWidth)
    Creates an instance of a IntContents record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the bitWidth record component.
    int[]
    Returns the value of the contents record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    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_)
     
    read32(int p_285222_, it.unimi.dsi.fastutil.bytes.ByteList p_285346_)
     
    final String
    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[] contents
      The field for the contents record component.
    • bitWidth

      private final int bitWidth
      The field for the bitWidth record component.
    • SIZE_24

      private static final int SIZE_24
      See Also:
  • Constructor Details

    • IntContents

      IntContents(int[] contents, int bitWidth)
      Creates an instance of a IntContents record class.
      Parameters:
      contents - the value for the contents record component
      bitWidth - the value for the bitWidth record component
  • Method Details

    • line

      public int line(int p_285172_)
      Specified by:
      line in interface UnihexProvider.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 the bitWidth record component.
      Specified by:
      bitWidth in interface UnihexProvider.LineData
      Returns:
      the value of the bitWidth record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contents

      public int[] contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component