Assuming you already have the
writeToNBT
and the
readFromNBT
method, you only need to override the
getDescriptionMethod
to return a new
S35PacketUpdateTileEntity(x,y,z,3,tag)
with tag the a NBTTagCompound on which you called
writeToNBT
, and the
onDataPacket(NetworkManager,S35PacketUpdateTileEntity)
method in which you call the
readFromNBT
with
S35PacketUpdateTileEntity#func_148857_g()