Package net.minecraft.util.text
Class NBTTextComponent
java.lang.Object
net.minecraft.util.text.TextComponent
net.minecraft.util.text.NBTTextComponent
- All Implemented Interfaces:
com.mojang.brigadier.Message
,IFormattableTextComponent
,ITargetedTextComponent
,ITextComponent
,ITextProperties
- Direct Known Subclasses:
NBTTextComponent.Block
,NBTTextComponent.Entity
,NBTTextComponent.Storage
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
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
Modifier and TypeFieldDescriptionprotected final NBTPathArgument.NBTPath
protected final boolean
private static final org.apache.logging.log4j.Logger
protected final String
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
Constructor Summary
ModifierConstructorDescriptionNBTTextComponent
(String p_i50781_1_, boolean p_i50781_2_) protected
NBTTextComponent
(String p_i50782_1_, NBTPathArgument.NBTPath p_i50782_2_, boolean p_i50782_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NBTPathArgument.NBTPath
compileNbtPath
(String p_218672_0_) protected abstract Stream<CompoundNBT>
getData
(CommandSource p_218673_1_) boolean
resolve
(CommandSource p_230535_1_, Entity p_230535_2_, int p_230535_3_) Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, equals, getContents, getSiblings, getStyle, getVisualOrderText, hashCode, plainCopy, setStyle, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
interpreting
protected final boolean interpreting -
nbtPathPattern
-
compiledNbtPath
-
-
Constructor Details
-
NBTTextComponent
-
NBTTextComponent
protected NBTTextComponent(String p_i50782_1_, @Nullable NBTPathArgument.NBTPath p_i50782_2_, boolean p_i50782_3_)
-
-
Method Details
-
compileNbtPath
-
getData
protected abstract Stream<CompoundNBT> getData(CommandSource p_218673_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNbtPath
-
isInterpreting
public boolean isInterpreting() -
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
-