public interface IMixinTileEntity
Modifier and Type | Method and Description |
---|---|
net.minecraft.nbt.NBTTagCompound |
getSpongeData()
Gets the included
NBTTagCompound for a tile entity. |
void |
readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
Read extra data (SpongeData) from the tile entity's NBT tag.
|
void |
sendDataToContainer(org.spongepowered.api.data.DataView dataView)
Due to the nature of how
TileEntity instances serialize their
data with DataSerializable.toContainer() , all DataManipulator s
are serialized under a DataQuery specified query from
NbtDataUtil . |
void |
writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
Write extra data (SpongeData) to the tile entity's NBT tag.
|
net.minecraft.nbt.NBTTagCompound getSpongeData()
NBTTagCompound
for a tile entity. With Vanilla, this is
created by vanilla. With Forge, this is included.void readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
compound
- The SpongeData compound to read fromvoid writeToNbt(net.minecraft.nbt.NBTTagCompound compound)
compound
- The SpongeData compound to write tovoid sendDataToContainer(org.spongepowered.api.data.DataView dataView)
TileEntity
instances serialize their
data with DataSerializable.toContainer()
, all DataManipulator
s
are serialized under a DataQuery
specified query from
NbtDataUtil
. This is to help separate the real
required data such as position, tile type, etc. from data api manipulators.dataView
- The data view to set all data api related data