public class BlockDataAccessor extends java.lang.Object implements IDataAccessor
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<java.lang.String,DataCommand.IDataProvider> |
DATA_PROVIDER |
| 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) |
public static final java.util.function.Function<java.lang.String,DataCommand.IDataProvider> DATA_PROVIDER
public BlockDataAccessor(TileEntity tileEntityIn, BlockPos posIn)
public void mergeData(CompoundNBT other)
mergeData in interface IDataAccessorpublic 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