Uses of Interface
net.minecraft.server.commands.data.DataAccessor
Packages that use DataAccessor
-
Uses of DataAccessor in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type DataAccessorModifier and TypeMethodDescriptionprivate static int
ExecuteCommand.checkMatchingData
(DataAccessor accessor, NbtPathArgument.NbtPath path) (package private) static CompoundTag
FunctionCommand.getArgumentTag
(NbtPathArgument.NbtPath nbtPath, DataAccessor dataAccessor) private static CommandSourceStack
ExecuteCommand.storeData
(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path, IntFunction<Tag> tagConverter, boolean storingResult) -
Uses of DataAccessor in net.minecraft.server.commands.data
Classes in net.minecraft.server.commands.data that implement DataAccessorModifier and TypeClassDescriptionclass
class
class
Methods in net.minecraft.server.commands.data that return DataAccessorModifier and TypeMethodDescriptionDataCommands.DataProvider.access
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) Creates an accessor based on the command context.Methods in net.minecraft.server.commands.data with parameters of type DataAccessorModifier and TypeMethodDescriptionprivate static int
DataCommands.getData
(CommandSourceStack source, DataAccessor accessor) Gets all NBT on the object, and applies syntax highlighting.private static int
DataCommands.getData
(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path) Gets a value, which can be of any known NBT type.private static int
DataCommands.getNumeric
(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path, double scale) Gets a single numeric element, scaled by the given amount.static Tag
DataCommands.getSingleTag
(NbtPathArgument.NbtPath path, DataAccessor accessor) private static int
DataCommands.mergeData
(CommandSourceStack source, DataAccessor accessor, CompoundTag nbt) Merges the given NBT into the targeted object's NBT.private static int
DataCommands.removeData
(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path) Removes the tag at the end of the path.