Package net.minecraft.command.impl.data
Class StorageAccessor
- java.lang.Object
-
- net.minecraft.command.impl.data.StorageAccessor
-
- All Implemented Interfaces:
IDataAccessor
public class StorageAccessor extends java.lang.Object implements IDataAccessor
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
id
static java.util.function.Function<java.lang.String,DataCommand.IDataProvider>
PROVIDER
private CommandStorage
storage
private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
SUGGEST_STORAGE
-
Constructor Summary
Constructors Modifier Constructor Description private
StorageAccessor(CommandStorage p_i226092_1_, ResourceLocation p_i226092_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompoundNBT
getData()
private static CommandStorage
getGlobalTags(com.mojang.brigadier.context.CommandContext<CommandSource> p_229840_0_)
ITextComponent
getModifiedSuccess()
ITextComponent
getPrintSuccess(NBTPathArgument.NBTPath p_198922_1_, double p_198922_2_, int p_198922_4_)
ITextComponent
getPrintSuccess(INBT p_198924_1_)
void
setData(CompoundNBT p_198925_1_)
-
-
-
Field Detail
-
SUGGEST_STORAGE
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_STORAGE
-
PROVIDER
public static final java.util.function.Function<java.lang.String,DataCommand.IDataProvider> PROVIDER
-
storage
private final CommandStorage storage
-
id
private final ResourceLocation id
-
-
Constructor Detail
-
StorageAccessor
private StorageAccessor(CommandStorage p_i226092_1_, ResourceLocation p_i226092_2_)
-
-
Method Detail
-
getGlobalTags
private static CommandStorage getGlobalTags(com.mojang.brigadier.context.CommandContext<CommandSource> p_229840_0_)
-
setData
public void setData(CompoundNBT p_198925_1_)
- Specified by:
setData
in interfaceIDataAccessor
-
getData
public CompoundNBT getData()
- Specified by:
getData
in interfaceIDataAccessor
-
getModifiedSuccess
public ITextComponent getModifiedSuccess()
- Specified by:
getModifiedSuccess
in interfaceIDataAccessor
-
getPrintSuccess
public ITextComponent getPrintSuccess(INBT p_198924_1_)
- Specified by:
getPrintSuccess
in interfaceIDataAccessor
-
getPrintSuccess
public ITextComponent getPrintSuccess(NBTPathArgument.NBTPath p_198922_1_, double p_198922_2_, int p_198922_4_)
- Specified by:
getPrintSuccess
in interfaceIDataAccessor
-
-