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
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
private static EntitySelector
parseSelector
(String pSelector) resolve
(CommandSourceStack pNbtPathPattern, Entity pEntity, int pRecursionDepth) toString()
type()
<T> Optional
<T> visit
(FormattedText.ContentConsumer<T> pContentConsumer) <T> Optional
<T> visit
(FormattedText.StyledContentConsumer<T> pStyledContentConsumer, Style pStyle)
-
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 pNbtPathPattern, @Nullable Entity pEntity, int pRecursionDepth) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceComponentContents
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
visit
public <T> Optional<T> visit(FormattedText.StyledContentConsumer<T> pStyledContentConsumer, Style pStyle) - Specified by:
visit
in interfaceComponentContents
-
visit
- Specified by:
visit
in interfaceComponentContents
-
equals
-
hashCode
public int hashCode() -
toString
-