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>
nodeEndIndices
private NbtPathArgumentType.PathNode[]
nodes
private String
string
-
Constructor Summary
Constructors Constructor Description NbtPath(String string, NbtPathArgumentType.PathNode[] nodes, Object2IntMap<NbtPathArgumentType.PathNode> nodeEndIndices)
-
Method Summary
Modifier and Type Method Description int
count(Tag tag)
private com.mojang.brigadier.exceptions.CommandSyntaxException
createNothingFoundException(NbtPathArgumentType.PathNode node)
private static int
forEach(List<Tag> tags, Function<Tag,Integer> operation)
List<Tag>
get(Tag tag)
List<Tag>
getOrInit(Tag tag, Supplier<Tag> source)
private List<Tag>
getTerminals(Tag start)
int
put(Tag tag, Supplier<Tag> source)
int
remove(Tag tag)
String
toString()
-
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
-