Package net.minecraft.network.chat
Class NbtComponent.EntityNbtComponent
java.lang.Object
net.minecraft.network.chat.BaseComponent
net.minecraft.network.chat.NbtComponent
net.minecraft.network.chat.NbtComponent.EntityNbtComponent
- All Implemented Interfaces:
com.mojang.brigadier.Message
,Component
,ContextAwareComponent
,FormattedText
,MutableComponent
- Enclosing class:
- NbtComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.network.chat.NbtComponent
NbtComponent.BlockNbtComponent, NbtComponent.EntityNbtComponent, NbtComponent.StorageNbtComponent
Nested classes/interfaces inherited from interface net.minecraft.network.chat.Component
Component.Serializer
Nested classes/interfaces inherited from interface net.minecraft.network.chat.FormattedText
FormattedText.ContentConsumer<T>, FormattedText.StyledContentConsumer<T>
-
Field Summary
Fields inherited from class net.minecraft.network.chat.NbtComponent
compiledNbtPath, interpreting, nbtPathPattern, separator
Fields inherited from class net.minecraft.network.chat.BaseComponent
siblings
Fields inherited from interface net.minecraft.network.chat.FormattedText
EMPTY, STOP_ITERATION
-
Constructor Summary
ModifierConstructorDescriptionEntityNbtComponent
(String p_178494_, boolean p_178495_, String p_178496_, Optional<Component> p_178497_) private
EntityNbtComponent
(String p_178487_, NbtPathArgument.NbtPath p_178488_, boolean p_178489_, String p_178490_, EntitySelector p_178491_, Optional<Component> p_178492_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static EntitySelector
compileSelector
(String p_131020_) boolean
protected Stream<CompoundTag>
getData
(CommandSourceStack p_131017_) toString()
Methods inherited from class net.minecraft.network.chat.NbtComponent
getNbtPath, isInterpreting, resolve
Methods inherited from class net.minecraft.network.chat.BaseComponent
append, copy, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
selectorPattern
-
compiledSelector
-
-
Constructor Details
-
EntityNbtComponent
-
EntityNbtComponent
private EntityNbtComponent(String p_178487_, @Nullable NbtPathArgument.NbtPath p_178488_, boolean p_178489_, String p_178490_, @Nullable EntitySelector p_178491_, Optional<Component> p_178492_)
-
-
Method Details
-
compileSelector
-
getSelector
-
plainCopy
- Specified by:
plainCopy
in interfaceComponent
- Specified by:
plainCopy
in classBaseComponent
-
getData
protected Stream<CompoundTag> getData(CommandSourceStack p_131017_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getData
in classNbtComponent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
equals
- Overrides:
equals
in classBaseComponent
-
toString
- Overrides:
toString
in classBaseComponent
-