Package net.minecraft.util.text
Class SelectorTextComponent
- java.lang.Object
-
- net.minecraft.util.text.TextComponent
-
- net.minecraft.util.text.SelectorTextComponent
-
- All Implemented Interfaces:
com.mojang.brigadier.Message,IFormattableTextComponent,ITargetedTextComponent,ITextComponent,ITextProperties
public class SelectorTextComponent extends TextComponent implements ITargetedTextComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.LoggerLOGGERprivate java.lang.Stringpatternprivate EntitySelectorselector-
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
-
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
-
Constructor Summary
Constructors Constructor Description SelectorTextComponent(java.lang.String p_i45996_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object p_equals_1_)java.lang.StringgetContents()java.lang.StringgetPattern()SelectorTextComponentplainCopy()IFormattableTextComponentresolve(CommandSource p_230535_1_, Entity p_230535_2_, int p_230535_3_)java.lang.StringtoString()-
Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
pattern
private final java.lang.String pattern
-
selector
@Nullable private final EntitySelector selector
-
-
Method Detail
-
getPattern
public java.lang.String getPattern()
-
resolve
public IFormattableTextComponent resolve(@Nullable CommandSource p_230535_1_, @Nullable Entity p_230535_2_, int p_230535_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
resolvein interfaceITargetedTextComponent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getContents
public java.lang.String getContents()
- Specified by:
getContentsin interfaceITextComponent- Overrides:
getContentsin classTextComponent
-
plainCopy
public SelectorTextComponent plainCopy()
- Specified by:
plainCopyin interfaceITextComponent- Specified by:
plainCopyin classTextComponent
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classTextComponent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTextComponent
-
-