Package net.minecraft.client.font
Record Class UnihexFont.Dimensions
java.lang.Object
java.lang.Record
net.minecraft.client.font.UnihexFont.Dimensions
- Record Components:
left-right-
- Enclosing class:
UnihexFont
- Mappings:
Namespace Name named net/minecraft/client/font/UnihexFont$Dimensionsintermediary net/minecraft/class_391$class_8542official fls$cnamed leftintermediary comp_1506official cnamed rightintermediary comp_1507official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<UnihexFont.Dimensions> private final intThe field for theleftrecord component.static final com.mojang.serialization.MapCodec<UnihexFont.Dimensions> private final intThe field for therightrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static intgetLeft(int packed) static intgetRight(int packed) final inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.static intpack(int left, int right) intintright()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
left
private final int leftThe field for theleftrecord component. -
right
private final int rightThe field for therightrecord component. -
MAP_CODEC
- Mappings:
Namespace Name Mixin selector named MAP_CODECLnet/minecraft/client/font/UnihexFont$Dimensions;MAP_CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_44773Lnet/minecraft/class_391$class_8542;field_44773:Lcom/mojang/serialization/MapCodec;official aLfls$c;a:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/font/UnihexFont$Dimensions;CODEC:Lcom/mojang/serialization/Codec;intermediary field_44774Lnet/minecraft/class_391$class_8542;field_44774:Lcom/mojang/serialization/Codec;official bLfls$c;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Dimensions
public Dimensions(int int2, int int3)
-
-
Method Details
-
packedValue
public int packedValue()- Mappings:
Namespace Name Mixin selector named packedValueLnet/minecraft/client/font/UnihexFont$Dimensions;packedValue()Iintermediary method_51670Lnet/minecraft/class_391$class_8542;method_51670()Iofficial aLfls$c;a()I
-
pack
public static int pack(int left, int right) - Mappings:
Namespace Name Mixin selector named packLnet/minecraft/client/font/UnihexFont$Dimensions;pack(II)Iintermediary method_51672Lnet/minecraft/class_391$class_8542;method_51672(II)Iofficial aLfls$c;a(II)I
-
getLeft
public static int getLeft(int packed) - Mappings:
Namespace Name Mixin selector named getLeftLnet/minecraft/client/font/UnihexFont$Dimensions;getLeft(I)Iintermediary method_51671Lnet/minecraft/class_391$class_8542;method_51671(I)Iofficial aLfls$c;a(I)I
-
getRight
public static int getRight(int packed) - Mappings:
Namespace Name Mixin selector named getRightLnet/minecraft/client/font/UnihexFont$Dimensions;getRight(I)Iintermediary method_51674Lnet/minecraft/class_391$class_8542;method_51674(I)Iofficial bLfls$c;b(I)I
-
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. All components in this record class are compared with '=='. -
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public int right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-