Class ScoreTextContent

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

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

    • INNER_CODEC

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

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

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

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Lwn;d: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 e Lwn;e:Lge;
      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 f Lwn;f: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> Lwn;<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 Lwn;a(Ljava/lang/String;)Lge;
      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;
    • getType

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

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lwn;b()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 c Lwn;c()Lge;
      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 d Lwn;d()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;
    • getScoreHolder

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

      private MutableText getScore(ScoreHolder scoreHolder, ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lwn;a(Lemw;Lds;)Lvt;
      intermediary method_27700 Lnet/minecraft/class_2578;method_27700(Lnet/minecraft/class_9015;Lnet/minecraft/class_2168;)Lnet/minecraft/class_5250;
      named getScore Lnet/minecraft/text/ScoreTextContent;getScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/text/MutableText;
    • 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 Lvg;a(Lds;Lblv;I)Lvt;
      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 Lwn;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