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 intExecuteCommand.checkMatchingData(DataAccessor accessor, NbtPathArgument.NbtPath path) (package private) static CompoundTagFunctionCommand.getArgumentTag(NbtPathArgument.NbtPath nbtPath, DataAccessor dataAccessor) private static CommandSourceStackExecuteCommand.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 TypeClassDescriptionclassclassclassMethods 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 intDataCommands.getData(CommandSourceStack source, DataAccessor accessor) Gets all NBT on the object, and applies syntax highlighting.private static intDataCommands.getData(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path) Gets a value, which can be of any known NBT type.private static intDataCommands.getNumeric(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path, double scale) Gets a single numeric element, scaled by the given amount.static TagDataCommands.getSingleTag(NbtPathArgument.NbtPath path, DataAccessor accessor) private static intDataCommands.mergeData(CommandSourceStack source, DataAccessor accessor, CompoundTag nbt) Merges the given NBT into the targeted object's NBT.private static intDataCommands.removeData(CommandSourceStack source, DataAccessor accessor, NbtPathArgument.NbtPath path) Removes the tag at the end of the path.