Package net.minecraft.command.arguments
Class NBTPathArgument.NBTPath
java.lang.Object
net.minecraft.command.arguments.NBTPathArgument.NBTPath
- Enclosing class:
- NBTPathArgument
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NBTPathArgument.INode[]
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode>
private final String
-
Constructor Summary
ConstructorDescriptionNBTPath
(String p_i51148_1_, NBTPathArgument.INode[] p_i51148_2_, it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> p_i51148_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
int
countMatching
(INBT p_218069_1_) private com.mojang.brigadier.exceptions.CommandSyntaxException
createNotFoundException
(NBTPathArgument.INode p_218070_1_) getOrCreate
(INBT p_218073_1_, Supplier<INBT> p_218073_2_) getOrCreateParents
(INBT p_218072_1_) int
int
toString()
-
Field Details
-
original
-
nodeToOriginalPosition
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> nodeToOriginalPosition -
nodes
-
-
Constructor Details
-
NBTPath
public NBTPath(String p_i51148_1_, NBTPathArgument.INode[] p_i51148_2_, it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> p_i51148_3_)
-
-
Method Details
-
get
public List<INBT> get(INBT p_218071_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
countMatching
-
getOrCreateParents
private List<INBT> getOrCreateParents(INBT p_218072_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getOrCreate
public List<INBT> getOrCreate(INBT p_218073_1_, Supplier<INBT> p_218073_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
apply
-
set
public int set(INBT p_218076_1_, Supplier<INBT> p_218076_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
remove
-
createNotFoundException
private com.mojang.brigadier.exceptions.CommandSyntaxException createNotFoundException(NBTPathArgument.INode p_218070_1_) -
toString
-