public class EntityDataAccessor extends java.lang.Object implements IDataAccessor
| Modifier and Type | Field and Description |
|---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DATA_ENTITY_INVALID |
static java.util.function.Function<java.lang.String,DataCommand.IDataProvider> |
DATA_PROVIDER |
private Entity |
entity |
| Constructor and Description |
|---|
EntityDataAccessor(Entity entityIn) |
| Modifier and Type | Method and Description |
|---|---|
CompoundNBT |
getData() |
ITextComponent |
getGetMessage(NBTPathArgument.NBTPath pathIn,
double scale,
int value) |
ITextComponent |
getModifiedMessage() |
ITextComponent |
getQueryMessage(INBT nbt) |
void |
mergeData(CompoundNBT other) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DATA_ENTITY_INVALID
public static final java.util.function.Function<java.lang.String,DataCommand.IDataProvider> DATA_PROVIDER
private final Entity entity
public EntityDataAccessor(Entity entityIn)
public void mergeData(CompoundNBT other) throws com.mojang.brigadier.exceptions.CommandSyntaxException
mergeData in interface IDataAccessorcom.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic CompoundNBT getData()
getData in interface IDataAccessorpublic ITextComponent getModifiedMessage()
getModifiedMessage in interface IDataAccessorpublic ITextComponent getQueryMessage(INBT nbt)
getQueryMessage in interface IDataAccessorpublic ITextComponent getGetMessage(NBTPathArgument.NBTPath pathIn, double scale, int value)
getGetMessage in interface IDataAccessor