Class StorageDataAccessor
java.lang.Object
net.minecraft.server.commands.data.StorageDataAccessor
- All Implemented Interfaces:
DataAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocation
static final Function
<String, DataCommands.DataProvider> private final CommandStorage
(package private) static final com.mojang.brigadier.suggestion.SuggestionProvider
<CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
(package private) static CommandStorage
getGlobalTags
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139561_) getPrintSuccess
(NbtPathArgument.NbtPath pPath, double pScale, int pValue) Gets the message used as a result of querying the given path with a scale.getPrintSuccess
(Tag pNbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)void
setData
(CompoundTag pOther)
-
Field Details
-
SUGGEST_STORAGE
-
PROVIDER
-
storage
-
id
-
-
Constructor Details
-
StorageDataAccessor
StorageDataAccessor(CommandStorage pStorage, ResourceLocation pId)
-
-
Method Details
-
getGlobalTags
static CommandStorage getGlobalTags(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139561_) -
setData
- Specified by:
setData
in interfaceDataAccessor
-
getData
- Specified by:
getData
in interfaceDataAccessor
-
getModifiedSuccess
- Specified by:
getModifiedSuccess
in interfaceDataAccessor
-
getPrintSuccess
Gets the message used as a result of querying the given NBT (both for /data get and /data get path)- Specified by:
getPrintSuccess
in interfaceDataAccessor
-
getPrintSuccess
Gets the message used as a result of querying the given path with a scale.- Specified by:
getPrintSuccess
in interfaceDataAccessor
-