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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.SerializerNested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NBTPathArgument.NBTPathprotected final booleanprivate static final org.apache.logging.log4j.Loggerprotected final StringFields inherited from class net.minecraft.util.text.TextComponent
siblingsFields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION -
Constructor Summary
ConstructorsModifierConstructorDescriptionNBTTextComponent(String p_i50781_1_, boolean p_i50781_2_) protectedNBTTextComponent(String p_i50782_1_, NBTPathArgument.NBTPath p_i50782_2_, boolean p_i50782_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NBTPathArgument.NBTPathcompileNbtPath(String p_218672_0_) protected abstract Stream<CompoundNBT>getData(CommandSource p_218673_1_) booleanresolve(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, toStringMethods 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:
resolvein interfaceITargetedTextComponent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-