Package net.minecraft.text
Class ScoreTextContent
java.lang.Object
net.minecraft.text.ScoreTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name named net/minecraft/text/ScoreTextContent
intermediary net/minecraft/class_2578
official yx
-
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 named INNER_CODEC
Lnet/minecraft/text/ScoreTextContent;INNER_CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46626
Lnet/minecraft/class_2578;field_46626:Lcom/mojang/serialization/MapCodec;
official a
Lyx;a:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/text/ScoreTextContent;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46627
Lnet/minecraft/class_2578;field_46627:Lcom/mojang/serialization/MapCodec;
official b
Lyx;b:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPE
Lnet/minecraft/text/ScoreTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;
intermediary field_46628
Lnet/minecraft/class_2578;field_46628:Lnet/minecraft/class_7417$class_8823;
official c
Lyx;c:Lxq$a;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/text/ScoreTextContent;name:Ljava/lang/String;
intermediary field_11787
Lnet/minecraft/class_2578;field_11787:Ljava/lang/String;
official d
Lyx;d:Ljava/lang/String;
-
selector
- Mappings:
Namespace Name Mixin selector named selector
Lnet/minecraft/text/ScoreTextContent;selector:Lnet/minecraft/command/EntitySelector;
intermediary field_11786
Lnet/minecraft/class_2578;field_11786:Lnet/minecraft/class_2300;
official e
Lyx;e:Lhe;
-
objective
- Mappings:
Namespace Name Mixin selector named objective
Lnet/minecraft/text/ScoreTextContent;objective:Ljava/lang/String;
intermediary field_11785
Lnet/minecraft/class_2578;field_11785:Ljava/lang/String;
official f
Lyx;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;)V
intermediary <init>
Lnet/minecraft/class_2578;<init>(Ljava/lang/String;Ljava/lang/String;)V
official <init>
Lyx;<init>(Ljava/lang/String;Ljava/lang/String;)V
-
-
Method Details
-
parseEntitySelector
- Mappings:
Namespace Name Mixin selector named parseEntitySelector
Lnet/minecraft/text/ScoreTextContent;parseEntitySelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
intermediary method_27701
Lnet/minecraft/class_2578;method_27701(Ljava/lang/String;)Lnet/minecraft/class_2300;
official a
Lyx;a(Ljava/lang/String;)Lhe;
-
getType
- Specified by:
getType
in interfaceTextContent
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
intermediary method_54163
Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;
official a
Lxq;a()Lxq$a;
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/text/ScoreTextContent;getName()Ljava/lang/String;
intermediary method_10930
Lnet/minecraft/class_2578;method_10930()Ljava/lang/String;
official b
Lyx;b()Ljava/lang/String;
-
getSelector
- Mappings:
Namespace Name Mixin selector named getSelector
Lnet/minecraft/text/ScoreTextContent;getSelector()Lnet/minecraft/command/EntitySelector;
intermediary method_36137
Lnet/minecraft/class_2578;method_36137()Lnet/minecraft/class_2300;
official c
Lyx;c()Lhe;
-
getObjective
- Mappings:
Namespace Name Mixin selector named getObjective
Lnet/minecraft/text/ScoreTextContent;getObjective()Ljava/lang/String;
intermediary method_10928
Lnet/minecraft/class_2578;method_10928()Ljava/lang/String;
official d
Lyx;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 getScoreHolder
Lnet/minecraft/text/ScoreTextContent;getScoreHolder(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/scoreboard/ScoreHolder;
intermediary method_27699
Lnet/minecraft/class_2578;method_27699(Lnet/minecraft/class_2168;)Lnet/minecraft/class_9015;
official a
Lyx;a(Lep;)Leww;
-
getScore
- Mappings:
Namespace Name Mixin selector named getScore
Lnet/minecraft/text/ScoreTextContent;getScore(Lnet/minecraft/scoreboard/ScoreHolder;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/text/MutableText;
intermediary method_27700
Lnet/minecraft/class_2578;method_27700(Lnet/minecraft/class_9015;Lnet/minecraft/class_2168;)Lnet/minecraft/class_5250;
official a
Lyx;a(Leww;Lep;)Lyd;
-
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 named parse
Lnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
intermediary method_10890
Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
official a
Lxq;a(Lep;Lbsw;I)Lyd;
-
equals
-
hashCode
public int hashCode() -
toString
-