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 oq
intermediary net/minecraft/class_2578
named net/minecraft/text/ScoreText
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Loq;d: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 EntitySelector selector
      Mappings:
      Namespace Name Mixin selector
      official e Loq;e:Lfc;
      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 f Loq;f: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> Loq;<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 EntitySelector selector, String objective)
      Mappings:
      Namespace Name Mixin selector
      official <init> Loq;<init>(Ljava/lang/String;Lfc;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 EntitySelector parseEntitySelector​(String name)
      Mappings:
      Namespace Name Mixin selector
      official d Loq;d(Ljava/lang/String;)Lfc;
      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 Loq;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;
    • getObjective

      public String getObjective()
      Mappings:
      Namespace Name Mixin selector
      official j Loq;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 Loq;a(Ldb;)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 Loq;a(Ljava/lang/String;Ldb;)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 Loq;k()Loq;
      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 ServerCommandSource source, @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 Lok;a(Ldb;Laqv;I)Loo;
      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 obj)
      Overrides:
      equals in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official equals Loe;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
      Mappings:
      Namespace Name Mixin selector
      official toString Loe;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2554;toString()Ljava/lang/String;
      named toString Lnet/minecraft/text/BaseText;toString()Ljava/lang/String;