Package net.minecraft.text
Class ScoreTextContent
java.lang.Object
net.minecraft.text.ScoreTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official ud
intermediary net/minecraft/class_2578
named net/minecraft/text/ScoreTextContent
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final String
private final @Nullable EntitySelector
private static final String
Fields inherited from interface net.minecraft.text.TextContent
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
private String
getPlayerName
(ServerCommandSource source) private String
getScore
(String playerName, ServerCommandSource source) int
hashCode()
parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.private static @Nullable EntitySelector
parseEntitySelector
(String name) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.text.TextContent
visit, visit
-
Field Details
-
SENDER_PLACEHOLDER
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lud;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
- Mappings:
Namespace Name Mixin selector official c
Lud;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
- Mappings:
Namespace Name Mixin selector official d
Lud;d:Lga;
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
- Mappings:
Namespace Name Mixin selector official e
Lud;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
- Mappings:
Namespace Name Mixin selector official <init>
Lud;<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
- Mappings:
Namespace Name Mixin selector official a
Lud;a(Ljava/lang/String;)Lga;
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
- Mappings:
Namespace Name Mixin selector official a
Lud;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
- Mappings:
Namespace Name Mixin selector official b
Lud;b()Lga;
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
- Mappings:
Namespace Name Mixin selector official c
Lud;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
Lud;a(Lds;)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
- Mappings:
Namespace Name Mixin selector official a
Lud;a(Ljava/lang/String;Lds;)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 interfaceTextContent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lsx;a(Lds;Lbfh;I)Ltj;
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
-
hashCode
public int hashCode() -
toString
-