Record Class UnihexProvider.Dimensions
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.UnihexProvider.Dimensions
- Enclosing class:
UnihexProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<UnihexProvider.Dimensions>
private final int
The field for theleft
record component.static final com.mojang.serialization.MapCodec<UnihexProvider.Dimensions>
private final int
The field for theright
record component. -
Constructor Summary
ConstructorDescriptionDimensions
(int left, int right) Creates an instance of aDimensions
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
left()
Returns the value of theleft
record component.static int
left
(int p_285195_) int
pack()
static int
pack
(int p_285339_, int p_285120_) int
right()
Returns the value of theright
record component.static int
right
(int p_285419_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
left
private final int leftThe field for theleft
record component. -
right
private final int rightThe field for theright
record component. -
MAP_CODEC
-
CODEC
-
-
Constructor Details
-
Dimensions
public Dimensions(int left, int right) Creates an instance of aDimensions
record class.- Parameters:
left
- the value for theleft
record componentright
- the value for theright
record 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 theleft
record component.- Returns:
- the value of the
left
record component
-
right
public int right()Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-