Package net.minecraft.text
Class ScoreTextContent
java.lang.Object
net.minecraft.text.ScoreTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official sgintermediary net/minecraft/class_2578named net/minecraft/text/ScoreTextContent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final @Nullable EntitySelectorprivate static final StringFields inherited from interface net.minecraft.text.TextContent
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()private StringgetPlayerName(ServerCommandSource source) private StringgetScore(String playerName, ServerCommandSource source) inthashCode()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 EntitySelectorparseEntitySelector(String name) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.text.TextContent
visit, visit
-
Field Details
-
SENDER_PLACEHOLDER
- See Also:
- Mappings:
Namespace Name Mixin selector official bLsg;b:Ljava/lang/String;intermediary field_33290Lnet/minecraft/class_2578;field_33290:Ljava/lang/String;named SENDER_PLACEHOLDERLnet/minecraft/text/ScoreTextContent;SENDER_PLACEHOLDER:Ljava/lang/String;
-
name
- Mappings:
Namespace Name Mixin selector official cLsg;c:Ljava/lang/String;intermediary field_11787Lnet/minecraft/class_2578;field_11787:Ljava/lang/String;named nameLnet/minecraft/text/ScoreTextContent;name:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector official dLsg;d:Lfz;intermediary field_11786Lnet/minecraft/class_2578;field_11786:Lnet/minecraft/class_2300;named selectorLnet/minecraft/text/ScoreTextContent;selector:Lnet/minecraft/command/EntitySelector;
-
objective
- Mappings:
Namespace Name Mixin selector official eLsg;e:Ljava/lang/String;intermediary field_11785Lnet/minecraft/class_2578;field_11785:Ljava/lang/String;named objectiveLnet/minecraft/text/ScoreTextContent;objective:Ljava/lang/String;
-
-
Constructor Details
-
ScoreTextContent
- Mappings:
Namespace Name Mixin selector official <init>Lsg;<init>(Ljava/lang/String;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2578;<init>(Ljava/lang/String;Ljava/lang/String;)Vnamed <init>Lnet/minecraft/text/ScoreTextContent;<init>(Ljava/lang/String;Ljava/lang/String;)V
-
-
Method Details
-
parseEntitySelector
- Mappings:
Namespace Name Mixin selector official aLsg;a(Ljava/lang/String;)Lfz;intermediary method_27701Lnet/minecraft/class_2578;method_27701(Ljava/lang/String;)Lnet/minecraft/class_2300;named parseEntitySelectorLnet/minecraft/text/ScoreTextContent;parseEntitySelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
-
getName
- Mappings:
Namespace Name Mixin selector official aLsg;a()Ljava/lang/String;intermediary method_10930Lnet/minecraft/class_2578;method_10930()Ljava/lang/String;named getNameLnet/minecraft/text/ScoreTextContent;getName()Ljava/lang/String;
-
getSelector
- Mappings:
Namespace Name Mixin selector official bLsg;b()Lfz;intermediary method_36137Lnet/minecraft/class_2578;method_36137()Lnet/minecraft/class_2300;named getSelectorLnet/minecraft/text/ScoreTextContent;getSelector()Lnet/minecraft/command/EntitySelector;
-
getObjective
- Mappings:
Namespace Name Mixin selector official cLsg;c()Ljava/lang/String;intermediary method_10928Lnet/minecraft/class_2578;method_10928()Ljava/lang/String;named getObjectiveLnet/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 aLsg;a(Ldr;)Ljava/lang/String;intermediary method_27699Lnet/minecraft/class_2578;method_27699(Lnet/minecraft/class_2168;)Ljava/lang/String;named getPlayerNameLnet/minecraft/text/ScoreTextContent;getPlayerName(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/lang/String;
-
getScore
- Mappings:
Namespace Name Mixin selector official aLsg;a(Ljava/lang/String;Ldr;)Ljava/lang/String;intermediary method_27700Lnet/minecraft/class_2578;method_27700(Ljava/lang/String;Lnet/minecraft/class_2168;)Ljava/lang/String;named getScoreLnet/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:
parsein interfaceTextContent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLrn;a(Ldr;Lbas;I)Lrt;intermediary method_10890Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;named parseLnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-
equals
-
hashCode
public int hashCode() -
toString
-