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.Logger
LOGGER
private java.lang.String
pattern
private EntitySelector
selector
-
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 boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
getContents()
java.lang.String
getPattern()
SelectorTextComponent
plainCopy()
IFormattableTextComponent
resolve(CommandSource p_230535_1_, Entity p_230535_2_, int p_230535_3_)
java.lang.String
toString()
-
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:
resolve
in interfaceITargetedTextComponent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getContents
public java.lang.String getContents()
- Specified by:
getContents
in interfaceITextComponent
- Overrides:
getContents
in classTextComponent
-
plainCopy
public SelectorTextComponent plainCopy()
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classTextComponent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTextComponent
-
-