Package net.minecraft.command
Class StorageDataObject
java.lang.Object
net.minecraft.command.StorageDataObject
- All Implemented Interfaces:
DataCommandObject
public class StorageDataObject extends Object implements DataCommandObject
-
Field Summary
Fields Modifier and Type Field Description private Identifieridprivate DataCommandStoragestorageprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SUGGESTION_PROVIDERstatic Function<String,DataCommand.ObjectType>TYPE_FACTORY -
Constructor Summary
Constructors Modifier Constructor Description privateStorageDataObject(DataCommandStorage storage, Identifier id) -
Method Summary
Modifier and Type Method Description TextfeedbackGet(NbtPathArgumentType.NbtPath nbtPath, double scale, int result)TextfeedbackModify()TextfeedbackQuery(Tag tag)CompoundTaggetTag()private static DataCommandStorageof(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)voidsetTag(CompoundTag tag)
-
Field Details
-
SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER -
TYPE_FACTORY
-
storage
-
id
-
-
Constructor Details
-
StorageDataObject
-
-
Method Details
-
of
private static DataCommandStorage of(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) -
setTag
- Specified by:
setTagin interfaceDataCommandObject
-
getTag
- Specified by:
getTagin interfaceDataCommandObject
-
feedbackModify
- Specified by:
feedbackModifyin interfaceDataCommandObject
-
feedbackQuery
- Specified by:
feedbackQueryin interfaceDataCommandObject
-
feedbackGet
- Specified by:
feedbackGetin interfaceDataCommandObject
-