Package net.minecraft.text
Class ScoreTextContent
java.lang.Object
net.minecraft.text.ScoreTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name named net/minecraft/text/ScoreTextContentintermediary net/minecraft/class_2578official yh
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.Type<T extends TextContent> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ScoreTextContent> static final com.mojang.serialization.MapCodec<ScoreTextContent> private final Stringprivate final Stringprivate final @Nullable EntitySelectorstatic final TextContent.Type<ScoreTextContent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()private MutableTextgetScore(ScoreHolder scoreHolder, ServerCommandSource source) private ScoreHoldergetScoreHolder(ServerCommandSource source) getType()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
-
INNER_CODEC
- Mappings:
Namespace Name Mixin selector named INNER_CODECLnet/minecraft/text/ScoreTextContent;INNER_CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46626Lnet/minecraft/class_2578;field_46626:Lcom/mojang/serialization/MapCodec;official aLyh;a:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/ScoreTextContent;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46627Lnet/minecraft/class_2578;field_46627:Lcom/mojang/serialization/MapCodec;official bLyh;b:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/text/ScoreTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;intermediary field_46628Lnet/minecraft/class_2578;field_46628:Lnet/minecraft/class_7417$class_8823;official cLyh;c:Lxa$a;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/text/ScoreTextContent;name:Ljava/lang/String;intermediary field_11787Lnet/minecraft/class_2578;field_11787:Ljava/lang/String;official dLyh;d:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector named selectorLnet/minecraft/text/ScoreTextContent;selector:Lnet/minecraft/command/EntitySelector;intermediary field_11786Lnet/minecraft/class_2578;field_11786:Lnet/minecraft/class_2300;official eLyh;e:Lhi;
-
objective
- Mappings:
Namespace Name Mixin selector named objectiveLnet/minecraft/text/ScoreTextContent;objective:Ljava/lang/String;intermediary field_11785Lnet/minecraft/class_2578;field_11785:Ljava/lang/String;official fLyh;f:Ljava/lang/String;
-
-
Constructor Details
-
ScoreTextContent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/ScoreTextContent;<init>(Ljava/lang/String;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2578;<init>(Ljava/lang/String;Ljava/lang/String;)Vofficial <init>Lyh;<init>(Ljava/lang/String;Ljava/lang/String;)V
-
-
Method Details
-
parseEntitySelector
- Mappings:
Namespace Name Mixin selector named parseEntitySelectorLnet/minecraft/text/ScoreTextContent;parseEntitySelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;intermediary method_27701Lnet/minecraft/class_2578;method_27701(Ljava/lang/String;)Lnet/minecraft/class_2300;official aLyh;a(Ljava/lang/String;)Lhi;
-
getType
- Specified by:
getTypein interfaceTextContent- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;intermediary method_54163Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;official aLxa;a()Lxa$a;
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/text/ScoreTextContent;getName()Ljava/lang/String;intermediary method_10930Lnet/minecraft/class_2578;method_10930()Ljava/lang/String;official bLyh;b()Ljava/lang/String;
-
getSelector
- Mappings:
Namespace Name Mixin selector named getSelectorLnet/minecraft/text/ScoreTextContent;getSelector()Lnet/minecraft/command/EntitySelector;intermediary method_36137Lnet/minecraft/class_2578;method_36137()Lnet/minecraft/class_2300;official cLyh;c()Lhi;
-
getObjective
- Mappings:
Namespace Name Mixin selector named getObjectiveLnet/minecraft/text/ScoreTextContent;getObjective()Ljava/lang/String;intermediary method_10928Lnet/minecraft/class_2578;method_10928()Ljava/lang/String;official dLyh;d()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 named getScoreHolderLnet/minecraft/text/ScoreTextContent;getScoreHolder(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/scoreboard/ScoreHolder;intermediary method_27699Lnet/minecraft/class_2578;method_27699(Lnet/minecraft/class_2168;)Lnet/minecraft/class_9015;official aLyh;a(Let;)Leyf;
-
getScore
- Mappings:
Namespace Name Mixin selector named getScoreLnet/minecraft/text/ScoreTextContent;getScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/text/MutableText;intermediary method_27700Lnet/minecraft/class_2578;method_27700(Lnet/minecraft/class_9015;Lnet/minecraft/class_2168;)Lnet/minecraft/class_5250;official aLyh;a(Leyf;Let;)Lxn;
-
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 named parseLnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;intermediary method_10890Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;official aLxa;a(Let;Lbsr;I)Lxn;
-
equals
-
hashCode
public int hashCode() -
toString
-