public abstract class MixinTileEntityBanner extends MixinTileEntity implements org.spongepowered.api.block.tileentity.Banner
tileEntityInvalid, worldObj
Constructor and Description |
---|
MixinTileEntityBanner() |
Modifier and Type | Method and Description |
---|---|
void |
markDirtyAndUpdate() |
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 . |
getContainers, getLocation, getPos, getType, isValid, markDirty, onReadFromNBT, onWriteToNBT, setRawData, setValid, supplyVanillaManipulators, toContainer, validateRawData, writeToNbt, writeToNBT
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlock, getLocation, getType, isValid, setValid
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, supports, transform, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, supports, supports
getSpongeData
public void readFromNbt(net.minecraft.nbt.NBTTagCompound compound)
MixinTileEntity
readFromNbt
in interface IMixinTileEntity
readFromNbt
in class MixinTileEntity
compound
- The SpongeData compound to read frompublic void sendDataToContainer(org.spongepowered.api.data.DataView dataView)
IMixinTileEntity
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.sendDataToContainer
in interface IMixinTileEntity
dataView
- The data view to set all data api related datapublic void markDirtyAndUpdate()