Package net.minecraft.scoreboard
Record Class ScoreboardScore.class_12223
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.ScoreboardScore.class_12223
- Record Components:
value-locked-display-numberFormat-
- Enclosing class:
ScoreboardScore
public static record ScoreboardScore.class_12223(int value, boolean locked, Optional<Text> display, Optional<NumberFormat> numberFormat)
extends Record
- Mappings:
Namespace Name named net/minecraft/scoreboard/ScoreboardScore$class_12223intermediary net/minecraft/class_267$class_12223official fsf$anamed valueintermediary comp_5147official bnamed lockedintermediary comp_5148official cnamed displayintermediary comp_5149official dnamed numberFormatintermediary comp_5150official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ScoreboardScore.class_12223> The field for thedisplayrecord component.private final booleanThe field for thelockedrecord component.private final Optional<NumberFormat> The field for thenumberFormatrecord component.private final intThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12223(int value, boolean locked, Optional<Text> display, Optional<NumberFormat> numberFormat) Creates an instance of aclass_12223record class. -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlocked()Returns the value of thelockedrecord component.Returns the value of thenumberFormatrecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final int valueThe field for thevaluerecord component. -
locked
private final boolean lockedThe field for thelockedrecord component. -
display
The field for thedisplayrecord component. -
numberFormat
The field for thenumberFormatrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/scoreboard/ScoreboardScore$class_12223;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_63813Lnet/minecraft/class_267$class_12223;field_63813:Lcom/mojang/serialization/MapCodec;official aLfsf$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_12223
public class_12223(int value, boolean locked, Optional<Text> display, Optional<NumberFormat> numberFormat) Creates an instance of aclass_12223record class.- Parameters:
value- the value for thevaluerecord componentlocked- the value for thelockedrecord componentdisplay- the value for thedisplayrecord componentnumberFormat- the value for thenumberFormatrecord component
-
-
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 '=='. -
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
locked
public boolean locked()Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
numberFormat
Returns the value of thenumberFormatrecord component.- Returns:
- the value of the
numberFormatrecord component
-