Package net.minecraft.scoreboard
Record Class ScoreboardObjective.Packed
java.lang.Object
java.lang.Record
net.minecraft.scoreboard.ScoreboardObjective.Packed
- Record Components:
name-criteria-displayName-renderType-displayAutoUpdate-numberFormat-
- Enclosing class:
ScoreboardObjective
public static record ScoreboardObjective.Packed(String name, ScoreboardCriterion criteria, Text displayName, ScoreboardCriterion.RenderType renderType, boolean displayAutoUpdate, Optional<NumberFormat> numberFormat)
extends Record
- Mappings:
Namespace Name named net/minecraft/scoreboard/ScoreboardObjective$Packedintermediary net/minecraft/class_266$class_10742official fgz$anamed nameintermediary comp_3645official bnamed criteriaintermediary comp_3646official cnamed displayNameintermediary comp_3647official dnamed renderTypeintermediary comp_3648official enamed displayAutoUpdateintermediary comp_3649official fnamed numberFormatintermediary comp_3650official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ScoreboardObjective.Packed> private final ScoreboardCriterionThe field for thecriteriarecord component.private final booleanThe field for thedisplayAutoUpdaterecord component.private final TextThe field for thedisplayNamerecord component.private final StringThe field for thenamerecord component.private final Optional<NumberFormat> The field for thenumberFormatrecord component.private final ScoreboardCriterion.RenderTypeThe field for therenderTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked(String string, ScoreboardCriterion scoreboardCriterion, Text text, ScoreboardCriterion.RenderType renderType, boolean bool, Optional<NumberFormat> optional) -
Method Summary
Modifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord component.booleanReturns the value of thedisplayAutoUpdaterecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thenumberFormatrecord component.Returns the value of therenderTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
criteria
The field for thecriteriarecord component. -
displayName
The field for thedisplayNamerecord component. -
renderType
The field for therenderTyperecord component. -
displayAutoUpdate
private final boolean displayAutoUpdateThe field for thedisplayAutoUpdaterecord component. -
numberFormat
The field for thenumberFormatrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/scoreboard/ScoreboardObjective$Packed;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56481Lnet/minecraft/class_266$class_10742;field_56481:Lcom/mojang/serialization/Codec;official aLfgz$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Packed
public Packed(String string, ScoreboardCriterion scoreboardCriterion, Text text, ScoreboardCriterion.RenderType renderType, boolean bool, Optional<NumberFormat> optional)
-
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
displayAutoUpdate
public boolean displayAutoUpdate()Returns the value of thedisplayAutoUpdaterecord component.- Returns:
- the value of the
displayAutoUpdaterecord component
-
numberFormat
Returns the value of thenumberFormatrecord component.- Returns:
- the value of the
numberFormatrecord component
-