Record Class UnihexProvider.Dimensions
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.Dimensions
- Enclosing class:
- UnihexProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<UnihexProvider.Dimensions>private final intThe field for theleftrecord component.static final com.mojang.serialization.MapCodec<UnihexProvider.Dimensions>private final intThe field for therightrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDimensions(int left, int right) Creates an instance of aDimensionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.static intleft(int p_285195_) intpack()static intpack(int p_285339_, int p_285120_) intright()Returns the value of therightrecord component.static intright(int p_285419_) 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
-
CODEC
-
-
Constructor Details
-
Dimensions
public Dimensions(int left, int right) Creates an instance of aDimensionsrecord class.- Parameters:
left- the value for theleftrecord componentright- the value for therightrecord component
-
-
Method Details
-
pack
public int pack() -
pack
public static int pack(int p_285339_, int p_285120_) -
left
public static int left(int p_285195_) -
right
public static int right(int p_285419_) -
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
-