Class ScoreText

java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.ScoreText
All Implemented Interfaces:
com.mojang.brigadier.Message, MutableText, ParsableText, StringVisitable, Text

public class ScoreText extends BaseText implements ParsableText
Mappings:
Namespace Name
official qh
intermediary net/minecraft/class_2578
named net/minecraft/text/ScoreText
  • Field Details

    • SENDER_PLACEHOLDER

      private static final String SENDER_PLACEHOLDER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lqh;d:Ljava/lang/String;
      intermediary field_33290 Lnet/minecraft/class_2578;field_33290:Ljava/lang/String;
      named SENDER_PLACEHOLDER Lnet/minecraft/text/ScoreText;SENDER_PLACEHOLDER:Ljava/lang/String;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official e Lqh;e:Ljava/lang/String;
      intermediary field_11787 Lnet/minecraft/class_2578;field_11787:Ljava/lang/String;
      named name Lnet/minecraft/text/ScoreText;name:Ljava/lang/String;
    • selector

      @Nullable private final @Nullable EntitySelector selector
      Mappings:
      Namespace Name Mixin selector
      official f Lqh;f:Lfn;
      intermediary field_11786 Lnet/minecraft/class_2578;field_11786:Lnet/minecraft/class_2300;
      named selector Lnet/minecraft/text/ScoreText;selector:Lnet/minecraft/command/EntitySelector;
    • objective

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

    • ScoreText

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

      private ScoreText(String name, @Nullable @Nullable EntitySelector selector, String objective)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lqh;<init>(Ljava/lang/String;Lfn;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2578;<init>(Ljava/lang/String;Lnet/minecraft/class_2300;Ljava/lang/String;)V
      named <init> Lnet/minecraft/text/ScoreText;<init>(Ljava/lang/String;Lnet/minecraft/command/EntitySelector;Ljava/lang/String;)V
  • Method Details

    • parseEntitySelector

      @Nullable private static @Nullable EntitySelector parseEntitySelector(String name)
      Mappings:
      Namespace Name Mixin selector
      official d Lqh;d(Ljava/lang/String;)Lfn;
      intermediary method_27701 Lnet/minecraft/class_2578;method_27701(Ljava/lang/String;)Lnet/minecraft/class_2300;
      named parseEntitySelector Lnet/minecraft/text/ScoreText;parseEntitySelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
    • getName

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

      @Nullable public @Nullable EntitySelector getSelector()
      Mappings:
      Namespace Name Mixin selector
      official i Lqh;i()Lfn;
      intermediary method_36137 Lnet/minecraft/class_2578;method_36137()Lnet/minecraft/class_2300;
      named getSelector Lnet/minecraft/text/ScoreText;getSelector()Lnet/minecraft/command/EntitySelector;
    • getObjective

      public String getObjective()
      Mappings:
      Namespace Name Mixin selector
      official j Lqh;j()Ljava/lang/String;
      intermediary method_10928 Lnet/minecraft/class_2578;method_10928()Ljava/lang/String;
      named getObjective Lnet/minecraft/text/ScoreText;getObjective()Ljava/lang/String;
    • getPlayerName

      private String getPlayerName(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lqh;a(Ldm;)Ljava/lang/String;
      intermediary method_27699 Lnet/minecraft/class_2578;method_27699(Lnet/minecraft/class_2168;)Ljava/lang/String;
      named getPlayerName Lnet/minecraft/text/ScoreText;getPlayerName(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/lang/String;
    • getScore

      private String getScore(String playerName, ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lqh;a(Ljava/lang/String;Ldm;)Ljava/lang/String;
      intermediary method_27700 Lnet/minecraft/class_2578;method_27700(Ljava/lang/String;Lnet/minecraft/class_2168;)Ljava/lang/String;
      named getScore Lnet/minecraft/text/ScoreText;getScore(Ljava/lang/String;Lnet/minecraft/server/command/ServerCommandSource;)Ljava/lang/String;
    • copy

      public ScoreText copy()
      Description copied from interface: Text
      Copies the text itself, excluding the styles or siblings.
      Specified by:
      copy in interface Text
      Specified by:
      copy in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official k Lqh;k()Lqh;
      intermediary method_10929 Lnet/minecraft/class_2578;method_10929()Lnet/minecraft/class_2578;
      named copy Lnet/minecraft/text/ScoreText;copy()Lnet/minecraft/text/ScoreText;
    • parse

      public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface ParsableText
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lqb;a(Ldm;Lawt;I)Lqf;
      intermediary method_10890 Lnet/minecraft/class_2566;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
      named parse Lnet/minecraft/text/ParsableText;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official equals Lpv;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2554;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/text/BaseText;equals(Ljava/lang/Object;)Z
    • toString

      public String toString()
      Overrides:
      toString in class BaseText