Package net.minecraft.command.argument
Class NbtPathArgumentType.NbtPath
java.lang.Object
net.minecraft.command.argument.NbtPathArgumentType.NbtPath
- Enclosing class:
- NbtPathArgumentType
public static class NbtPathArgumentType.NbtPath extends Object
-
Field Summary
Fields Modifier and Type Field Description private Object2IntMap<NbtPathArgumentType.PathNode>nodeEndIndicesprivate NbtPathArgumentType.PathNode[]nodesprivate Stringstring -
Constructor Summary
Constructors Constructor Description NbtPath(String string, NbtPathArgumentType.PathNode[] nodes, Object2IntMap<NbtPathArgumentType.PathNode> nodeEndIndices) -
Method Summary
Modifier and Type Method Description intcount(NbtElement tag)private com.mojang.brigadier.exceptions.CommandSyntaxExceptioncreateNothingFoundException(NbtPathArgumentType.PathNode node)private static intforEach(List<NbtElement> tags, Function<NbtElement,Integer> operation)List<NbtElement>get(NbtElement tag)List<NbtElement>getOrInit(NbtElement tag, Supplier<NbtElement> source)private List<NbtElement>getTerminals(NbtElement start)intput(NbtElement tag, Supplier<NbtElement> source)intremove(NbtElement tag)StringtoString()
-
Field Details
-
string
-
nodeEndIndices
-
nodes
-
-
Constructor Details
-
NbtPath
public NbtPath(String string, NbtPathArgumentType.PathNode[] nodes, Object2IntMap<NbtPathArgumentType.PathNode> nodeEndIndices)
-
-
Method Details
-
get
-
count
-
getTerminals
-
getOrInit
-
forEach
-
put
-
remove
-
createNothingFoundException
private com.mojang.brigadier.exceptions.CommandSyntaxException createNothingFoundException(NbtPathArgumentType.PathNode node) -
toString
-