Class ScoreTextContent

java.lang.Object
net.minecraft.text.ScoreTextContent
All Implemented Interfaces:
TextContent

public class ScoreTextContent extends Object implements TextContent
Mappings:
Namespace Name
named net/minecraft/text/ScoreTextContent
intermediary net/minecraft/class_2578
official yc
  • Field Details

    • INNER_CODEC

      public static final com.mojang.serialization.MapCodec<ScoreTextContent> INNER_CODEC
      Mappings:
      Namespace Name Mixin selector
      named INNER_CODEC Lnet/minecraft/text/ScoreTextContent;INNER_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46626 Lnet/minecraft/class_2578;field_46626:Lcom/mojang/serialization/MapCodec;
      official a Lyc;a:Lcom/mojang/serialization/MapCodec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<ScoreTextContent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/ScoreTextContent;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46627 Lnet/minecraft/class_2578;field_46627:Lcom/mojang/serialization/MapCodec;
      official b Lyc;b:Lcom/mojang/serialization/MapCodec;
    • TYPE

      public static final TextContent.Type<ScoreTextContent> TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/text/ScoreTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;
      intermediary field_46628 Lnet/minecraft/class_2578;field_46628:Lnet/minecraft/class_7417$class_8823;
      official c Lyc;c:Lwv$a;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/text/ScoreTextContent;name:Ljava/lang/String;
      intermediary field_11787 Lnet/minecraft/class_2578;field_11787:Ljava/lang/String;
      official d Lyc;d:Ljava/lang/String;
    • selector

      @Nullable private final @Nullable EntitySelector selector
      Mappings:
      Namespace Name Mixin selector
      named selector Lnet/minecraft/text/ScoreTextContent;selector:Lnet/minecraft/command/EntitySelector;
      intermediary field_11786 Lnet/minecraft/class_2578;field_11786:Lnet/minecraft/class_2300;
      official e Lyc;e:Lhf;
    • objective

      private final String objective
      Mappings:
      Namespace Name Mixin selector
      named objective Lnet/minecraft/text/ScoreTextContent;objective:Ljava/lang/String;
      intermediary field_11785 Lnet/minecraft/class_2578;field_11785:Ljava/lang/String;
      official f Lyc;f:Ljava/lang/String;
  • Constructor Details

    • ScoreTextContent

      public ScoreTextContent(String name, String objective)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/ScoreTextContent;<init>(Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2578;<init>(Ljava/lang/String;Ljava/lang/String;)V
      official <init> Lyc;<init>(Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • parseEntitySelector

      @Nullable private static @Nullable EntitySelector parseEntitySelector(String name)
      Mappings:
      Namespace Name Mixin selector
      named parseEntitySelector Lnet/minecraft/text/ScoreTextContent;parseEntitySelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
      intermediary method_27701 Lnet/minecraft/class_2578;method_27701(Ljava/lang/String;)Lnet/minecraft/class_2300;
      official a Lyc;a(Ljava/lang/String;)Lhf;
    • getType

      public TextContent.Type<?> getType()
      Specified by:
      getType in interface TextContent
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
      intermediary method_54163 Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;
      official a Lwv;a()Lwv$a;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/text/ScoreTextContent;getName()Ljava/lang/String;
      intermediary method_10930 Lnet/minecraft/class_2578;method_10930()Ljava/lang/String;
      official b Lyc;b()Ljava/lang/String;
    • getSelector

      @Nullable public @Nullable EntitySelector getSelector()
      Mappings:
      Namespace Name Mixin selector
      named getSelector Lnet/minecraft/text/ScoreTextContent;getSelector()Lnet/minecraft/command/EntitySelector;
      intermediary method_36137 Lnet/minecraft/class_2578;method_36137()Lnet/minecraft/class_2300;
      official c Lyc;c()Lhf;
    • getObjective

      public String getObjective()
      Mappings:
      Namespace Name Mixin selector
      named getObjective Lnet/minecraft/text/ScoreTextContent;getObjective()Ljava/lang/String;
      intermediary method_10928 Lnet/minecraft/class_2578;method_10928()Ljava/lang/String;
      official d Lyc;d()Ljava/lang/String;
    • getScoreHolder

      private ScoreHolder getScoreHolder(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named getScoreHolder Lnet/minecraft/text/ScoreTextContent;getScoreHolder(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/scoreboard/ScoreHolder;
      intermediary method_27699 Lnet/minecraft/class_2578;method_27699(Lnet/minecraft/class_2168;)Lnet/minecraft/class_9015;
      official a Lyc;a(Leq;)Lexk;
    • getScore

      private MutableText getScore(ScoreHolder scoreHolder, ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      named getScore Lnet/minecraft/text/ScoreTextContent;getScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/text/MutableText;
      intermediary method_27700 Lnet/minecraft/class_2578;method_27700(Lnet/minecraft/class_9015;Lnet/minecraft/class_2168;)Lnet/minecraft/class_5250;
      official a Lyc;a(Lexk;Leq;)Lxi;
    • parse

      public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Parses this content into a basic mutable text without custom style or siblings. The resulting text may or may not have this content.
      Specified by:
      parse in interface TextContent
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
      intermediary method_10890 Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
      official a Lwv;a(Leq;Lbsh;I)Lxi;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/text/ScoreTextContent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2578;equals(Ljava/lang/Object;)Z
      official equals Lyc;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object