public class EntityDataObject extends Object implements DataCommandObject
Modifier and Type | Field and Description |
---|---|
private Entity |
entity |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_ENTITY_EXCEPTION |
static Function<String,DataCommand.ObjectType> |
TYPE_FACTORY |
Constructor and Description |
---|
EntityDataObject(Entity entity) |
Modifier and Type | Method and Description |
---|---|
Text |
feedbackGet(NbtPathArgumentType.NbtPath nbtPath,
double scale,
int result) |
Text |
feedbackModify() |
Text |
feedbackQuery(Tag tag) |
CompoundTag |
getTag() |
void |
setTag(CompoundTag tag) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_ENTITY_EXCEPTION
public static final Function<String,DataCommand.ObjectType> TYPE_FACTORY
private final Entity entity
public EntityDataObject(Entity entity)
public void setTag(CompoundTag tag) throws com.mojang.brigadier.exceptions.CommandSyntaxException
setTag
in interface DataCommandObject
com.mojang.brigadier.exceptions.CommandSyntaxException
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