Class ScoreContents
java.lang.Object
net.minecraft.network.chat.contents.ScoreContents
- All Implemented Interfaces:
- ComponentContents
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.network.chat.ComponentContentsComponentContents.Type<T extends ComponentContents>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ScoreContents>static final com.mojang.serialization.MapCodec<ScoreContents>private final Stringprivate final Stringprivate final EntitySelectorstatic final ComponentContents.Type<ScoreContents>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprivate ScoreHolderfindTargetName(CommandSourceStack p_237442_) getName()private MutableComponentgetScore(ScoreHolder p_313863_, CommandSourceStack p_237451_) inthashCode()private static EntitySelectorparseSelector(String p_237448_) resolve(CommandSourceStack p_237444_, Entity p_237445_, int p_237446_) toString()type()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.chat.ComponentContentsvisit, visit
- 
Field Details- 
INNER_CODEC
- 
CODEC
- 
TYPE
- 
name
- 
selector
- 
objective
 
- 
- 
Constructor Details- 
ScoreContents
 
- 
- 
Method Details- 
parseSelector
- 
type- Specified by:
- typein interface- ComponentContents
 
- 
getName
- 
getSelector
- 
getObjective
- 
findTargetNameprivate ScoreHolder findTargetName(CommandSourceStack p_237442_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
getScore
- 
resolvepublic MutableComponent resolve(@Nullable CommandSourceStack p_237444_, @Nullable Entity p_237445_, int p_237446_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- resolvein interface- ComponentContents
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-