Record Class UnihexFont.Dimensions

java.lang.Object
java.lang.Record
net.minecraft.client.font.UnihexFont.Dimensions
Record Components:
left -
right -
Enclosing class:
UnihexFont

@Environment(CLIENT) public static record UnihexFont.Dimensions(int left, int right) extends Record
Mappings:
Namespace Name
named net/minecraft/client/font/UnihexFont$Dimensions
intermediary net/minecraft/class_391$class_8542
official fls$c
named left
intermediary comp_1506
official c
named right
intermediary comp_1507
official d
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<UnihexFont.Dimensions>
     
    private final int
    The field for the left record component.
    static final com.mojang.serialization.MapCodec<UnihexFont.Dimensions>
     
    private final int
    The field for the right record component.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Dimensions(int int2, int int3)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    static int
    getLeft(int packed)
     
    static int
    getRight(int packed)
     
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the left record component.
    static int
    pack(int left, int right)
     
    int
     
    int
    Returns the value of the right record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • left Link icon

      private final int left
      The field for the left record component.
    • MAP_CODEC Link icon

      public static final com.mojang.serialization.MapCodec<UnihexFont.Dimensions> MAP_CODEC
      Mappings:
      Namespace Name Mixin selector
      named MAP_CODEC Lnet/minecraft/client/font/UnihexFont$Dimensions;MAP_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_44773 Lnet/minecraft/class_391$class_8542;field_44773:Lcom/mojang/serialization/MapCodec;
      official a Lfls$c;a:Lcom/mojang/serialization/MapCodec;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<UnihexFont.Dimensions> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/font/UnihexFont$Dimensions;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_44774 Lnet/minecraft/class_391$class_8542;field_44774:Lcom/mojang/serialization/Codec;
      official b Lfls$c;b:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • Dimensions Link icon

      public Dimensions(int int2, int int3)
  • Method Details Link icon

    • packedValue Link icon

      public int packedValue()
      Mappings:
      Namespace Name Mixin selector
      named packedValue Lnet/minecraft/client/font/UnihexFont$Dimensions;packedValue()I
      intermediary method_51670 Lnet/minecraft/class_391$class_8542;method_51670()I
      official a Lfls$c;a()I
    • pack Link icon

      public static int pack(int left, int right)
      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/client/font/UnihexFont$Dimensions;pack(II)I
      intermediary method_51672 Lnet/minecraft/class_391$class_8542;method_51672(II)I
      official a Lfls$c;a(II)I
    • getLeft Link icon

      public static int getLeft(int packed)
      Mappings:
      Namespace Name Mixin selector
      named getLeft Lnet/minecraft/client/font/UnihexFont$Dimensions;getLeft(I)I
      intermediary method_51671 Lnet/minecraft/class_391$class_8542;method_51671(I)I
      official a Lfls$c;a(I)I
    • getRight Link icon

      public static int getRight(int packed)
      Mappings:
      Namespace Name Mixin selector
      named getRight Lnet/minecraft/client/font/UnihexFont$Dimensions;getRight(I)I
      intermediary method_51674 Lnet/minecraft/class_391$class_8542;method_51674(I)I
      official b Lfls$c;b(I)I
    • toString Link icon

      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 Link icon

      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 Link icon

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

      public int left()
      Returns the value of the left record component.
      Returns:
      the value of the left record component
    • right Link icon

      public int right()
      Returns the value of the right record component.
      Returns:
      the value of the right record component