Package net.minecraft.command.arguments
Class NBTPathArgument.NBTPath
- java.lang.Object
-
- net.minecraft.command.arguments.NBTPathArgument.NBTPath
-
- Enclosing class:
- NBTPathArgument
public static class NBTPathArgument.NBTPath extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private NBTPathArgument.INode[]
nodes
private it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode>
nodeToOriginalPosition
private java.lang.String
original
-
Constructor Summary
Constructors Constructor Description NBTPath(java.lang.String p_i51148_1_, NBTPathArgument.INode[] p_i51148_2_, it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> p_i51148_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
apply(java.util.List<INBT> p_218075_0_, java.util.function.Function<INBT,java.lang.Integer> p_218075_1_)
int
countMatching(INBT p_218069_1_)
private com.mojang.brigadier.exceptions.CommandSyntaxException
createNotFoundException(NBTPathArgument.INode p_218070_1_)
java.util.List<INBT>
get(INBT p_218071_1_)
java.util.List<INBT>
getOrCreate(INBT p_218073_1_, java.util.function.Supplier<INBT> p_218073_2_)
private java.util.List<INBT>
getOrCreateParents(INBT p_218072_1_)
int
remove(INBT p_218068_1_)
int
set(INBT p_218076_1_, java.util.function.Supplier<INBT> p_218076_2_)
java.lang.String
toString()
-
-
-
Field Detail
-
original
private final java.lang.String original
-
nodeToOriginalPosition
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> nodeToOriginalPosition
-
nodes
private final NBTPathArgument.INode[] nodes
-
-
Constructor Detail
-
NBTPath
public NBTPath(java.lang.String p_i51148_1_, NBTPathArgument.INode[] p_i51148_2_, it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> p_i51148_3_)
-
-
Method Detail
-
get
public java.util.List<INBT> get(INBT p_218071_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
countMatching
public int countMatching(INBT p_218069_1_)
-
getOrCreateParents
private java.util.List<INBT> getOrCreateParents(INBT p_218072_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getOrCreate
public java.util.List<INBT> getOrCreate(INBT p_218073_1_, java.util.function.Supplier<INBT> p_218073_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
apply
private static int apply(java.util.List<INBT> p_218075_0_, java.util.function.Function<INBT,java.lang.Integer> p_218075_1_)
-
set
public int set(INBT p_218076_1_, java.util.function.Supplier<INBT> p_218076_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
remove
public int remove(INBT p_218068_1_)
-
createNotFoundException
private com.mojang.brigadier.exceptions.CommandSyntaxException createNotFoundException(NBTPathArgument.INode p_218070_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-