Class ScoreContents
java.lang.Object
net.minecraft.network.chat.contents.ScoreContents
- All Implemented Interfaces:
ComponentContents
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final String
private static final String
private final EntitySelector
Fields inherited from interface net.minecraft.network.chat.ComponentContents
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
private String
findTargetName
(CommandSourceStack p_237442_) getName()
private String
getScore
(String p_237450_, CommandSourceStack p_237451_) int
hashCode()
private static EntitySelector
parseSelector
(String p_237448_) resolve
(CommandSourceStack p_237444_, Entity p_237445_, int p_237446_) toString()
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
-
SCORER_PLACEHOLDER
- See Also:
-
name
-
selector
-
objective
-
-
Constructor Details
-
ScoreContents
-
-
Method Details
-
parseSelector
-
getName
-
getSelector
-
getObjective
-
findTargetName
private String findTargetName(CommandSourceStack p_237442_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScore
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack p_237444_, @Nullable Entity p_237445_, int p_237446_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceComponentContents
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
-
hashCode
public int hashCode() -
toString
-