Render, Sync Smeltery

This commit is contained in:
mDiyo committed 2013-10-10 00:51:38 -07:00
1 parent 3b9b803aad
commit de79479944
4 files changed
+85 -35

No files matched your search

@@ -36,7 +36,7 @@ public class TankLayerScan extends LogicComponent
protected ArrayList<int[]> validAirCoords = new ArrayList<int[]>();
protected CoordTuple returnStone;
private boolean debug = false;
private boolean debug = true;
public TankLayerScan(TileEntity te, Block... ids)
{
@@ -417,9 +417,15 @@ public class TankLayerScan extends LogicComponent
}
}
@Override
public void readFromNBT (NBTTagCompound tags)
/* @Override
public void readFromNBT (NBTTagCompound tags)
{
super.readFromNBT(tags);
}*/
public void readNetworkNBT (NBTTagCompound tags)
{
completeStructure = tags.getBoolean("Complete");
NBTTagList layerAir = tags.getTagList("AirLayer");
if (layerAir != null)
{
@@ -459,17 +465,17 @@ public class TankLayerScan extends LogicComponent
}
}
super.readFromNBT(tags);
}
public void readNetworkNBT (NBTTagCompound tags)
{
completeStructure = tags.getBoolean("Complete");
}
@Override
/*@Override
public void writeToNBT (NBTTagCompound tags)
{
super.writeToNBT(tags);
}*/
public void writeNetworkNBT (NBTTagCompound tags)
{
tags.setBoolean("Complete", completeStructure);
NBTTagList layerAir = new NBTTagList();
for (CoordTuple coord : layerAirCoords)
{
@@ -490,12 +496,5 @@ public class TankLayerScan extends LogicComponent
air.appendTag(new NBTTagIntArray("coord", new int[] { coord.x, coord.y, coord.z }));
}
tags.setTag("Air", air);
super.writeToNBT(tags);
}
public void writeNetworkNBT (NBTTagCompound tags)
{
tags.setBoolean("Complete", completeStructure);
}
}