Class ScoreTextContent

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

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

    • SENDER_PLACEHOLDER

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

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

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

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

    • ScoreTextContent

      public ScoreTextContent(String name, String objective)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsg;<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/ScoreTextContent;<init>(Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • parseEntitySelector

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

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

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

      public String getObjective()
      Mappings:
      Namespace Name Mixin selector
      official c Lsg;c()Ljava/lang/String;
      intermediary method_10928 Lnet/minecraft/class_2578;method_10928()Ljava/lang/String;
      named getObjective Lnet/minecraft/text/ScoreTextContent;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 Lsg;a(Ldr;)Ljava/lang/String;
      intermediary method_27699 Lnet/minecraft/class_2578;method_27699(Lnet/minecraft/class_2168;)Ljava/lang/String;
      named getPlayerName Lnet/minecraft/text/ScoreTextContent;getPlayerName(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/lang/String;
    • getScore

      private String getScore(String playerName, ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lsg;a(Ljava/lang/String;Ldr;)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/ScoreTextContent;getScore(Ljava/lang/String;Lnet/minecraft/server/command/ServerCommandSource;)Ljava/lang/String;
    • 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
      official a Lrn;a(Ldr;Lbaq;I)Lrt;
      intermediary method_10890 Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
      named parse Lnet/minecraft/text/TextContent;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 Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lsg;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2578;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/text/ScoreTextContent;equals(Ljava/lang/Object;)Z
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object