Package net.minecraft.util.text
Class NBTTextComponent.Entity
- java.lang.Object
-
- net.minecraft.util.text.TextComponent
-
- net.minecraft.util.text.NBTTextComponent
-
- net.minecraft.util.text.NBTTextComponent.Entity
-
- All Implemented Interfaces:
com.mojang.brigadier.Message
,IFormattableTextComponent
,ITargetedTextComponent
,ITextComponent
,ITextProperties
- Enclosing class:
- NBTTextComponent
public static class NBTTextComponent.Entity extends NBTTextComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.util.text.NBTTextComponent
NBTTextComponent.Block, NBTTextComponent.Entity, NBTTextComponent.Storage
-
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 EntitySelector
compiledSelector
private java.lang.String
selectorPattern
-
Fields inherited from class net.minecraft.util.text.NBTTextComponent
compiledNbtPath, interpreting, nbtPathPattern
-
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 Modifier Constructor Description Entity(java.lang.String p_i51292_1_, boolean p_i51292_2_, java.lang.String p_i51292_3_)
private
Entity(java.lang.String p_i51293_1_, NBTPathArgument.NBTPath p_i51293_2_, boolean p_i51293_3_, java.lang.String p_i51293_4_, EntitySelector p_i51293_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static EntitySelector
compileSelector(java.lang.String p_218686_0_)
boolean
equals(java.lang.Object p_equals_1_)
protected java.util.stream.Stream<CompoundNBT>
getData(CommandSource p_218673_1_)
java.lang.String
getSelector()
NBTTextComponent.Entity
plainCopy()
java.lang.String
toString()
-
Methods inherited from class net.minecraft.util.text.NBTTextComponent
getNbtPath, isInterpreting, resolve
-
Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
selectorPattern
private final java.lang.String selectorPattern
-
compiledSelector
@Nullable private final EntitySelector compiledSelector
-
-
Constructor Detail
-
Entity
public Entity(java.lang.String p_i51292_1_, boolean p_i51292_2_, java.lang.String p_i51292_3_)
-
Entity
private Entity(java.lang.String p_i51293_1_, @Nullable NBTPathArgument.NBTPath p_i51293_2_, boolean p_i51293_3_, java.lang.String p_i51293_4_, @Nullable EntitySelector p_i51293_5_)
-
-
Method Detail
-
compileSelector
@Nullable private static EntitySelector compileSelector(java.lang.String p_218686_0_)
-
getSelector
public java.lang.String getSelector()
-
plainCopy
public NBTTextComponent.Entity plainCopy()
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
getData
protected java.util.stream.Stream<CompoundNBT> getData(CommandSource p_218673_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
getData
in classNBTTextComponent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classTextComponent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTextComponent
-
-