Record Class Scoreboard.PackedEntry

java.lang.Object
java.lang.Record
net.minecraft.scoreboard.Scoreboard.PackedEntry
Record Components:
owner -
objective -
score -
Enclosing class:
Scoreboard

public static record Scoreboard.PackedEntry(String owner, String objective, ScoreboardScore score) extends Record
Mappings:
Namespace Name
named net/minecraft/scoreboard/Scoreboard$PackedEntry
intermediary net/minecraft/class_269$class_10744
official fhh$a
named owner
intermediary comp_3662
official b
named objective
intermediary comp_3663
official c
named score
intermediary comp_3664
official d
  • Field Details Link icon

    • owner Link icon

      private final String owner
      The field for the owner record component.
    • objective Link icon

      private final String objective
      The field for the objective record component.
    • score Link icon

      private final ScoreboardScore score
      The field for the score record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<Scoreboard.PackedEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/scoreboard/Scoreboard$PackedEntry;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56484 Lnet/minecraft/class_269$class_10744;field_56484:Lcom/mojang/serialization/Codec;
      official a Lfhh$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • owner Link icon

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • objective Link icon

      public String objective()
      Returns the value of the objective record component.
      Returns:
      the value of the objective record component
    • score Link icon

      public ScoreboardScore score()
      Returns the value of the score record component.
      Returns:
      the value of the score record component