Package net.minecraft.text
Class ScoreTextContent
java.lang.Object
net.minecraft.text.ScoreTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official wn
intermediary net/minecraft/class_2578
named net/minecraft/text/ScoreTextContent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.Type<T extends TextContent>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ScoreTextContent>
static final com.mojang.serialization.MapCodec<ScoreTextContent>
private final String
private final String
private final @Nullable EntitySelector
static final TextContent.Type<ScoreTextContent>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
private MutableText
getScore
(ScoreHolder scoreHolder, ServerCommandSource source) private ScoreHolder
getScoreHolder
(ServerCommandSource source) getType()
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
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Specified by:
getType
in interfaceTextContent
- 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
- 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
- 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
- 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
- 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 interfaceTextContent
- 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
-
hashCode
public int hashCode() -
toString
-