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(Tag tag)private com.mojang.brigadier.exceptions.CommandSyntaxExceptioncreateNothingFoundException(NbtPathArgumentType.PathNode node)private static intforEach(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)intput(Tag tag, Supplier<Tag> source)intremove(Tag 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
-