Package net.minecraft.command.impl.data
Class EntityDataAccessor
- java.lang.Object
-
- net.minecraft.command.impl.data.EntityDataAccessor
-
- All Implemented Interfaces:
IDataAccessor
public class EntityDataAccessor extends java.lang.Object implements IDataAccessor
-
-
Field Summary
Fields Modifier and Type Field Description private Entity
entity
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NO_PLAYERS
static java.util.function.Function<java.lang.String,DataCommand.IDataProvider>
PROVIDER
-
Constructor Summary
Constructors Constructor Description EntityDataAccessor(Entity p_i47917_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompoundNBT
getData()
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
-
ERROR_NO_PLAYERS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_PLAYERS
-
PROVIDER
public static final java.util.function.Function<java.lang.String,DataCommand.IDataProvider> PROVIDER
-
entity
private final Entity entity
-
-
Constructor Detail
-
EntityDataAccessor
public EntityDataAccessor(Entity p_i47917_1_)
-
-
Method Detail
-
setData
public void setData(CompoundNBT p_198925_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
setData
in interfaceIDataAccessor
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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
-
-