Fixes and docs.

This commit is contained in:
Vasco Lavos committed 2014-01-24 19:56:31 +00:00
1 parent 7f7ff14146
commit 3226e369ac
2 files changed
+5 -3

No files matched your search

@@ -35,13 +35,15 @@ public class SubTileEntity {
/**
* Writes some extra data to a network packet. This data is read
* by readFromPacketNBT on the client that receives the packet.
* by readFromPacketNBT on the client that receives the packet.
* Note: This method is also used to write to the world NBT.
*/
public void writeToPacketNBT(NBTTagCompound cmp) { }
/**
* Reads data from a network packet. This data is written by
* writeToPacketNBT in the server.
* writeToPacketNBT in the server. Note: This method is also used
* to read from the world NBT.
*/
public void readFromPacketNBT(NBTTagCompound cmp) { }
@@ -75,7 +75,7 @@ public abstract class TileSpecialFlower<T extends SubTileEntity> extends TileMod
if(subTile == null || !BotaniaAPI.getSubTileStringMapping(subTile.getClass()).equals(subTileName))
provideSubTile(subTileName);
subTile.readFromNBT(subCmp);
subTile.readFromPacketNBT(subCmp);
}
}