Package net.minecraft
Record Class class_8113.class_8123.class_8126
java.lang.Object
java.lang.Record
net.minecraft.class_8113.class_8123.class_8126
- Record Components:
contents-width-
- Enclosing class:
class_8113.class_8123
public static record class_8113.class_8123.class_8126(OrderedText contents, int width)
extends Record
- Mappings:
Namespace Name official bex$j$cintermediary net/minecraft/class_8113$class_8123$class_8126named net/minecraft/class_8113$class_8123$class_8126official aintermediary comp_1249named contentsofficial bintermediary comp_1250named width
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OrderedTextThe field for thecontentsrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
Constructor Details
-
class_8126
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-