public class BlockDataAccessor extends java.lang.Object implements IDataAccessor
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DATA_BLOCK_INVALID_EXCEPTION |
static java.util.function.Function<java.lang.String,DataCommand.IDataProvider> |
DATA_PROVIDER |
private BlockPos |
pos |
private TileEntity |
tileEntity |
Constructor and Description |
---|
BlockDataAccessor(TileEntity tileEntityIn,
BlockPos posIn) |
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_BLOCK_INVALID_EXCEPTION
public static final java.util.function.Function<java.lang.String,DataCommand.IDataProvider> DATA_PROVIDER
private final TileEntity tileEntity
private final BlockPos pos
public BlockDataAccessor(TileEntity tileEntityIn, BlockPos posIn)
public void mergeData(CompoundNBT other)
mergeData
in interface IDataAccessor
public CompoundNBT getData()
getData
in interface IDataAccessor
public ITextComponent getModifiedMessage()
getModifiedMessage
in interface IDataAccessor
public ITextComponent getQueryMessage(INBT nbt)
getQueryMessage
in interface IDataAccessor
public ITextComponent getGetMessage(NBTPathArgument.NBTPath pathIn, double scale, int value)
getGetMessage
in interface IDataAccessor