Record Class FixedFormat
java.lang.Object
java.lang.Record
net.minecraft.network.chat.numbers.FixedFormat
- All Implemented Interfaces:
NumberFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumberFormatType<FixedFormat> private final ComponentThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFixedFormat(Component value) Creates an instance of aFixedFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format(int value) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
TYPE
-
-
Constructor Details
-
FixedFormat
Creates an instance of aFixedFormatrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
format
- Specified by:
formatin interfaceNumberFormat
-
type
- Specified by:
typein interfaceNumberFormat
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-