Package net.minecraft.commands.arguments
Class NbtPathArgument.NbtPath
java.lang.Object
net.minecraft.commands.arguments.NbtPathArgument.NbtPath
- Enclosing class:
- NbtPathArgument
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NbtPathArgument.Node[]private final it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgument.Node>private final String -
Constructor Summary
ConstructorsConstructorDescriptionNbtPath(String p_99623_, NbtPathArgument.Node[] p_99624_, it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgument.Node> p_99625_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intintcountMatching(Tag p_99644_) private com.mojang.brigadier.exceptions.CommandSyntaxExceptioncreateNotFoundException(NbtPathArgument.Node p_99627_) getOrCreate(Tag p_99641_, Supplier<Tag> p_99642_) getOrCreateParents(Tag p_99651_) intintinttoString()
-
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
-
set
public int set(Tag p_169536_, Tag p_169537_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
set
public int set(Tag p_99646_, Supplier<Tag> p_99647_) 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
-