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$Packed
intermediary net/minecraft/class_266$class_10742
official fjp$a
named name
intermediary comp_3645
official b
named criteria
intermediary comp_3646
official c
named displayName
intermediary comp_3647
official d
named renderType
intermediary comp_3648
official e
named displayAutoUpdate
intermediary comp_3649
official f
named numberFormat
intermediary comp_3650
official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ScoreboardObjective.Packed> private final ScoreboardCriterion
The field for thecriteria
record component.private final boolean
The field for thedisplayAutoUpdate
record component.private final Text
The field for thedisplayName
record component.private final String
The field for thename
record component.private final Optional
<NumberFormat> The field for thenumberFormat
record component.private final ScoreboardCriterion.RenderType
The field for therenderType
record 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 thecriteria
record component.boolean
Returns the value of thedisplayAutoUpdate
record component.Returns the value of thedisplayName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of thenumberFormat
record component.Returns the value of therenderType
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
criteria
The field for thecriteria
record component. -
displayName
The field for thedisplayName
record component. -
renderType
The field for therenderType
record component. -
displayAutoUpdate
private final boolean displayAutoUpdateThe field for thedisplayAutoUpdate
record component. -
numberFormat
The field for thenumberFormat
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/scoreboard/ScoreboardObjective$Packed;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56481
Lnet/minecraft/class_266$class_10742;field_56481:Lcom/mojang/serialization/Codec;
official a
Lfjp$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 thename
record component.- Returns:
- the value of the
name
record component
-
criteria
Returns the value of thecriteria
record component.- Returns:
- the value of the
criteria
record component
-
displayName
Returns the value of thedisplayName
record component.- Returns:
- the value of the
displayName
record component
-
renderType
Returns the value of therenderType
record component.- Returns:
- the value of the
renderType
record component
-
displayAutoUpdate
public boolean displayAutoUpdate()Returns the value of thedisplayAutoUpdate
record component.- Returns:
- the value of the
displayAutoUpdate
record component
-
numberFormat
Returns the value of thenumberFormat
record component.- Returns:
- the value of the
numberFormat
record component
-