Package net.minecraft.commands.arguments
Class NbtPathArgument.NbtPath
java.lang.Object
net.minecraft.commands.arguments.NbtPathArgument.NbtPath
- Enclosing class:
- NbtPathArgument
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NbtPathArgument.Node[]
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgument.Node>
private final String
-
Constructor Summary
ConstructorDescriptionNbtPath
(String p_99623_, NbtPathArgument.Node[] p_99624_, it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgument.Node> p_99625_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
int
countMatching
(Tag p_99644_) private com.mojang.brigadier.exceptions.CommandSyntaxException
createNotFoundException
(NbtPathArgument.Node p_99627_) private int
getOrCreate
(Tag p_99641_, Supplier<Tag> p_99642_) getOrCreateParents
(Tag p_99651_) int
insert
(int p_263397_, CompoundTag p_263348_, List<Tag> p_263419_) static boolean
int
int
toString()
-
Field Details
-
original
-
nodeToOriginalPosition
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgument.Node> nodeToOriginalPosition -
nodes
-
-
Constructor Details
-
NbtPath
public NbtPath(String p_99623_, NbtPathArgument.Node[] p_99624_, it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgument.Node> p_99625_)
-
-
Method Details
-
get
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
countMatching
-
getOrCreateParents
private List<Tag> getOrCreateParents(Tag p_99651_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getOrCreate
public List<Tag> getOrCreate(Tag p_99641_, Supplier<Tag> p_99642_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
apply
-
isTooDeep
-
set
public int set(Tag p_169536_, Tag p_169537_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
estimatePathDepth
private int estimatePathDepth() -
insert
public int insert(int p_263397_, CompoundTag p_263348_, List<Tag> p_263419_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
remove
-
createNotFoundException
private com.mojang.brigadier.exceptions.CommandSyntaxException createNotFoundException(NbtPathArgument.Node p_99627_) -
toString
-