Class SelectorContents
java.lang.Object
net.minecraft.network.chat.contents.SelectorContents
- All Implemented Interfaces:
ComponentContents
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final String
private final EntitySelector
Fields inherited from interface net.minecraft.network.chat.ComponentContents
EMPTY
-
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()
<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 -
pattern
-
selector
-
separator
-
-
Constructor Details
-
SelectorContents
-
-
Method Details
-
parseSelector
-
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
-