Class ScoreContents
java.lang.Object
net.minecraft.network.chat.contents.ScoreContents
- All Implemented Interfaces:
ComponentContents
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.chat.ComponentContents
ComponentContents.Type<T extends ComponentContents>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ScoreContents> static final com.mojang.serialization.MapCodec
<ScoreContents> private final String
private final String
private final EntitySelector
static final ComponentContents.Type
<ScoreContents> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
private ScoreHolder
findTargetName
(CommandSourceStack source) getName()
private MutableComponent
getScore
(ScoreHolder scoreHolder, CommandSourceStack source) int
hashCode()
private static EntitySelector
parseSelector
(String selector) resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) toString()
type()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.chat.ComponentContents
visit, visit
-
Field Details
-
INNER_CODEC
-
CODEC
-
TYPE
-
name
-
selector
-
objective
-
-
Constructor Details
-
ScoreContents
-
-
Method Details
-
parseSelector
-
type
- Specified by:
type
in interfaceComponentContents
-
getName
-
getSelector
-
getObjective
-
findTargetName
private ScoreHolder findTargetName(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScore
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack nbtPathPattern, @Nullable Entity entity, int recursionDepth) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceComponentContents
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode() -
toString
-