Package net.minecraft.scoreboard.number
Record Class StyledNumberFormat
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.number.StyledNumberFormat
- Record Components:
style-
- All Implemented Interfaces:
NumberFormat
- Mappings:
Namespace Name named net/minecraft/scoreboard/number/StyledNumberFormatintermediary net/minecraft/class_9025official aaonamed styleintermediary comp_5122official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StyledNumberFormatstatic final StyledNumberFormatprivate final StyleThe field for thestylerecord component.static final NumberFormatType<StyledNumberFormat> static final StyledNumberFormat -
Constructor Summary
ConstructorsConstructorDescriptionStyledNumberFormat(Style style) Creates an instance of aStyledNumberFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format(int number) getType()final inthashCode()Returns a hash code value for this object.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
style
The field for thestylerecord component. -
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/scoreboard/number/StyledNumberFormat;TYPE:Lnet/minecraft/scoreboard/number/NumberFormatType;intermediary field_47565Lnet/minecraft/class_9025;field_47565:Lnet/minecraft/class_9023;official aLaao;a:Laam;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/scoreboard/number/StyledNumberFormat;EMPTY:Lnet/minecraft/scoreboard/number/StyledNumberFormat;intermediary field_47566Lnet/minecraft/class_9025;field_47566:Lnet/minecraft/class_9025;official bLaao;b:Laao;
-
RED
- Mappings:
Namespace Name Mixin selector named REDLnet/minecraft/scoreboard/number/StyledNumberFormat;RED:Lnet/minecraft/scoreboard/number/StyledNumberFormat;intermediary field_47567Lnet/minecraft/class_9025;field_47567:Lnet/minecraft/class_9025;official cLaao;c:Laao;
-
YELLOW
- Mappings:
Namespace Name Mixin selector named YELLOWLnet/minecraft/scoreboard/number/StyledNumberFormat;YELLOW:Lnet/minecraft/scoreboard/number/StyledNumberFormat;intermediary field_47568Lnet/minecraft/class_9025;field_47568:Lnet/minecraft/class_9025;official dLaao;d:Laao;
-
-
Constructor Details
-
StyledNumberFormat
Creates an instance of aStyledNumberFormatrecord class.- Parameters:
style- the value for thestylerecord component
-
-
Method Details
-
format
- Specified by:
formatin interfaceNumberFormat- Mappings:
Namespace Name Mixin selector named formatLnet/minecraft/scoreboard/number/NumberFormat;format(I)Lnet/minecraft/text/MutableText;intermediary method_55457Lnet/minecraft/class_9022;method_55457(I)Lnet/minecraft/class_5250;official aLaal;a(I)Lzb;
-
getType
- Specified by:
getTypein interfaceNumberFormat- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/scoreboard/number/NumberFormat;getType()Lnet/minecraft/scoreboard/number/NumberFormatType;intermediary method_55456Lnet/minecraft/class_9022;method_55456()Lnet/minecraft/class_9023;official aLaal;a()Laam;
-
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 withObjects::equals(Object,Object). -
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-