net.minecraft.command.argument

public class NbtPathArgumentType$NbtPath

net.minecraft.commands.arguments.NbtPathArgument$NbtPath
net.minecraft.commands.arguments.NbtPathArgument$NbtPath
net.minecraft.class_2203$class_2209
net.minecraft.command.argument.NbtPathArgumentType$NbtPath

Field summary

Modifier and TypeField
private final String
original
original
field_9909
string
private final it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgumentType$PathNode>
nodeToOriginalPosition
nodeToOriginalPosition
field_9910
nodeEndIndices
private final NbtPathArgumentType$PathNode[]
nodes
nodes
field_9911
nodes
public static final com.mojang.serialization.Codec<NbtPathArgumentType$NbtPath>
CODEC
CODEC
field_50034
CODEC

Constructor summary

ModifierConstructor
public (String string, NbtPathArgumentType$PathNode[] nodes, it.unimi.dsi.fastutil.objects.Object2IntMap<NbtPathArgumentType$PathNode> nodeEndIndices)

Method summary

Modifier and TypeMethod
public static NbtPathArgumentType$NbtPath
of(String string)
of(String string)
method_58472(String arg0)
parse(String path)
public List<NbtElement>
get(Tag tag)
get(Tag tag)
method_9366(class_2520 arg0)
get(NbtElement element)
public int
countMatching(Tag tag)
countMatching(Tag tag)
method_9374(class_2520 arg0)
count(NbtElement element)
private List<NbtElement>
getOrCreateParents(Tag tag)
getOrCreateParents(Tag tag)
method_9369(class_2520 arg0)
getTerminals(NbtElement start)
public List<NbtElement>
getOrCreate(Tag tag, Supplier<Tag> newTagValue)
getOrCreate(Tag tag, Supplier<Tag> newTagValue)
method_9367(class_2520 arg0, Supplier<class_2520> arg1)
getOrInit(NbtElement element, Supplier<NbtElement> source)
private static int
apply(List<Tag> targets, Function<Tag, Integer> operation)
apply(List<Tag> targets, Function<Tag, Integer> operation)
method_9371(List<class_2520> arg0, Function<class_2520, Integer> arg1)
forEach(List<NbtElement> elements, Function<NbtElement, Integer> operation)
public static boolean
isTooDeep(Tag tag, int depth)
isTooDeep(Tag tag, int depth)
method_47975(class_2520 arg0, int arg1)
isTooDeep(NbtElement element, int depth)
public int
set(Tag tag, Tag toAdd)
set(Tag tag, Tag toAdd)
method_35722(class_2520 arg0, class_2520 arg1)
put(NbtElement element, NbtElement source)
private int
estimatePathDepth()
estimatePathDepth()
method_47971()
getDepth()
public int
insert(int index, CompoundTag target, List<Tag> toInsert)
insert(int index, CompoundTag target, List<Tag> toInsert)
method_47972(int arg0, class_2487 arg1, List<class_2520> arg2)
insert(int index, NbtCompound compound, List<NbtElement> elements)
public int
remove(Tag tag)
remove(Tag tag)
method_9372(class_2520 arg0)
remove(NbtElement element)
private com.mojang.brigadier.exceptions.CommandSyntaxException
createNotFoundException(NbtPathArgument$Node node)
createNotFoundException(NbtPathArgument$Node node)
method_9375(class_2203$class_2210 arg0)
createNothingFoundException(NbtPathArgumentType$PathNode node)
public String
asString()
asString()
method_54100()
getString()