Package net.minecraft.text
Class ScoreText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.ScoreText
- All Implemented Interfaces:
com.mojang.brigadier.Message
,MutableText
,ParsableText
,StringVisitable
,Text
- Mappings:
Namespace Name official pa
intermediary net/minecraft/class_2578
named net/minecraft/text/ScoreText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
Nested classes/interfaces inherited from interface net.minecraft.text.Text
Text.Serializer
-
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.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies the text itself, excluding the styles or siblings.boolean
getName()
private String
getPlayerName
(ServerCommandSource source) private String
getScore
(String playerName, ServerCommandSource source) parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) private static @Nullable EntitySelector
parseEntitySelector
(String name) toString()
Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, getSiblings, getStyle, hashCode, setStyle, shallowCopy
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.text.MutableText
append, fillStyle, formatted, formatted, styled
Methods inherited from interface net.minecraft.text.Text
asTruncatedString, getString, getWithStyle, visit, visit, visitSelf, visitSelf
-
Field Details
-
SENDER_PLACEHOLDER
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lpa;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
- Mappings:
Namespace Name Mixin selector official e
Lpa;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
- Mappings:
Namespace Name Mixin selector official f
Lpa;f:Lfm;
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
- Mappings:
Namespace Name Mixin selector official g
Lpa;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
- Mappings:
Namespace Name Mixin selector official <init>
Lpa;<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
- Mappings:
Namespace Name Mixin selector official <init>
Lpa;<init>(Ljava/lang/String;Lfm;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
- Mappings:
Namespace Name Mixin selector official d
Lpa;d(Ljava/lang/String;)Lfm;
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
- Mappings:
Namespace Name Mixin selector official h
Lpa;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
- Mappings:
Namespace Name Mixin selector official i
Lpa;i()Lfm;
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
- Mappings:
Namespace Name Mixin selector official j
Lpa;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
Lpa;a(Ldl;)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
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Ljava/lang/String;Ldl;)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
Description copied from interface:Text
Copies the text itself, excluding the styles or siblings.- Specified by:
copy
in interfaceText
- Specified by:
copy
in classBaseText
- Mappings:
Namespace Name Mixin selector official k
Lpa;k()Lpa;
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 interfaceParsableText
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ldl;Latf;I)Loy;
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
-
toString
-