Record Class UnihexProvider.Dimensions
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.Dimensions
- Enclosing class:
- UnihexProvider
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionDimensions(int left, int right) Creates an instance of aDimensionsrecord class.
- 
Method SummaryModifier 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- 
leftprivate final int leftThe field for theleftrecord component.
- 
rightprivate final int rightThe field for therightrecord component.
- 
MAP_CODEC
- 
CODEC
 
- 
- 
Constructor Details- 
Dimensionspublic Dimensions(int left, int right) Creates an instance of aDimensionsrecord class.- Parameters:
- left- the value for the- leftrecord component
- right- the value for the- rightrecord component
 
 
- 
- 
Method Details- 
packpublic int pack()
- 
packpublic static int pack(int p_285339_, int p_285120_) 
- 
leftpublic static int left(int p_285195_) 
- 
rightpublic static int right(int p_285419_) 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
leftpublic int left()Returns the value of theleftrecord component.- Returns:
- the value of the leftrecord component
 
- 
rightpublic int right()Returns the value of therightrecord component.- Returns:
- the value of the rightrecord component
 
 
-