public class StorageDataObject extends Object implements DataCommandObject
| Modifier and Type | Field and Description |
|---|---|
private Identifier |
id |
private DataCommandStorage |
storage |
private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> |
SUGGESTION_PROVIDER |
static Function<String,DataCommand.ObjectType> |
TYPE_FACTORY |
| Modifier | Constructor and Description |
|---|---|
private |
StorageDataObject(DataCommandStorage storage,
Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
Text |
feedbackGet(NbtPathArgumentType.NbtPath nbtPath,
double scale,
int result) |
Text |
feedbackModify() |
Text |
feedbackQuery(Tag tag) |
CompoundTag |
getTag() |
private static DataCommandStorage |
of(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) |
void |
setTag(CompoundTag tag) |
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
public static final Function<String,DataCommand.ObjectType> TYPE_FACTORY
private final DataCommandStorage storage
private final Identifier id
private StorageDataObject(DataCommandStorage storage, Identifier id)
private static DataCommandStorage of(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)
public void setTag(CompoundTag tag)
setTag in interface DataCommandObjectpublic CompoundTag getTag()
getTag in interface DataCommandObjectpublic Text feedbackModify()
feedbackModify in interface DataCommandObjectpublic Text feedbackQuery(Tag tag)
feedbackQuery in interface DataCommandObjectpublic Text feedbackGet(NbtPathArgumentType.NbtPath nbtPath, double scale, int result)
feedbackGet in interface DataCommandObject