Class NbtContents
java.lang.Object
net.minecraft.network.chat.contents.NbtContents
- All Implemented Interfaces:
ComponentContents
-
Field Summary
Modifier and TypeFieldDescriptionprotected final NbtPathArgument.NbtPath
private final DataSource
private final boolean
private static final org.slf4j.Logger
private final String
Fields inherited from interface net.minecraft.network.chat.ComponentContents
EMPTY
-
Constructor Summary
ModifierConstructorDescriptionNbtContents
(String p_237395_, boolean p_237396_, Optional<Component> p_237397_, DataSource p_237398_) private
NbtContents
(String p_237389_, NbtPathArgument.NbtPath p_237390_, boolean p_237391_, Optional<Component> p_237392_, DataSource p_237393_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NbtPathArgument.NbtPath
compileNbtPath
(String p_237410_) boolean
int
hashCode()
boolean
resolve
(CommandSourceStack p_237401_, Entity p_237402_, int p_237403_) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.chat.ComponentContents
visit, visit
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
interpreting
private final boolean interpreting -
separator
-
nbtPathPattern
-
dataSource
-
compiledNbtPath
-
-
Constructor Details
-
NbtContents
public NbtContents(String p_237395_, boolean p_237396_, Optional<Component> p_237397_, DataSource p_237398_) -
NbtContents
private NbtContents(String p_237389_, @Nullable NbtPathArgument.NbtPath p_237390_, boolean p_237391_, Optional<Component> p_237392_, DataSource p_237393_)
-
-
Method Details
-
compileNbtPath
-
getNbtPath
-
isInterpreting
public boolean isInterpreting() -
getSeparator
-
getDataSource
-
equals
-
hashCode
public int hashCode() -
toString
-
resolve
public MutableComponent resolve(@Nullable CommandSourceStack p_237401_, @Nullable Entity p_237402_, int p_237403_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
resolve
in interfaceComponentContents
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-