public static class NbtPathArgumentType.NbtPath extends Object
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgumentType.PathNode> |
nodeEndIndices |
private NbtPathArgumentType.PathNode[] |
nodes |
private String |
string |
Constructor and Description |
---|
NbtPath(String string,
NbtPathArgumentType.PathNode[] nodes,
it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgumentType.PathNode> nodeEndIndices) |
Modifier and Type | Method and 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() |
private final String string
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgumentType.PathNode> nodeEndIndices
private final NbtPathArgumentType.PathNode[] nodes
public NbtPath(String string, NbtPathArgumentType.PathNode[] nodes, it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgumentType.PathNode> nodeEndIndices)
public int count(Tag tag)
public int remove(Tag tag)
private com.mojang.brigadier.exceptions.CommandSyntaxException createNothingFoundException(NbtPathArgumentType.PathNode node)