Class SelectorContents
java.lang.Object
net.minecraft.network.chat.contents.SelectorContents
- 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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SelectorContents> private static final org.slf4j.Logger
private final String
private final EntitySelector
static final ComponentContents.Type
<SelectorContents> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private static EntitySelector
parseSelector
(String p_237472_) resolve
(CommandSourceStack p_237468_, Entity p_237469_, int p_237470_) toString()
type()
<T> Optional
<T> visit
(FormattedText.ContentConsumer<T> p_237474_) <T> Optional
<T> visit
(FormattedText.StyledContentConsumer<T> p_237476_, Style p_237477_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CODEC
-
TYPE
-
pattern
-
selector
-
separator
-
-
Constructor Details
-
SelectorContents
-
-
Method Details
-
parseSelector
-
type
- Specified by:
type
in interfaceComponentContents
-
getPattern
-
getSelector
-
getSeparator
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack p_237468_, @Nullable Entity p_237469_, int p_237470_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceComponentContents
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
visit
- Specified by:
visit
in interfaceComponentContents
-
visit
- Specified by:
visit
in interfaceComponentContents
-
equals
-
hashCode
public int hashCode() -
toString
-