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 DataCommandObject
public CompoundTag getTag()
getTag
in interface DataCommandObject
public Text feedbackModify()
feedbackModify
in interface DataCommandObject
public Text feedbackQuery(Tag tag)
feedbackQuery
in interface DataCommandObject
public Text feedbackGet(NbtPathArgumentType.NbtPath nbtPath, double scale, int result)
feedbackGet
in interface DataCommandObject