public class BlockDataObject extends Object implements DataCommandObject
Modifier and Type | Field and Description |
---|---|
private BlockEntity |
blockEntity |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_BLOCK_EXCEPTION |
private BlockPos |
pos |
static Function<String,DataCommand.ObjectType> |
TYPE_FACTORY |
Constructor and Description |
---|
BlockDataObject(BlockEntity blockEntity,
BlockPos pos) |
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_BLOCK_EXCEPTION
public static final Function<String,DataCommand.ObjectType> TYPE_FACTORY
private final BlockEntity blockEntity
private final BlockPos pos
public BlockDataObject(BlockEntity blockEntity, BlockPos pos)
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