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
public class ScoreText extends BaseText implements ParsableText
- Mappings:
Namespace Name official oq
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
Fields Modifier and Type Field Description private String
name
private String
objective
private EntitySelector
selector
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description ScoreText
copy()
Copies the text itself, excluding the styles or siblings.boolean
equals(Object obj)
String
getName()
String
getObjective()
private String
getPlayerName(ServerCommandSource source)
private String
getScore(String playerName, ServerCommandSource source)
MutableText
parse(ServerCommandSource source, Entity sender, int depth)
private static EntitySelector
parseEntitySelector(String name)
String
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
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
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
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 interfaceParsableText
- 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
-
toString
-