Create a sort order for interfaces based on their location.

This commit is contained in:
AlgorithmX2
2014-07-12 20:20:21 -05:00
parent f343ac36e8
commit 423e6be0c8
4 changed files with 38 additions and 10 deletions
+6
View File
@@ -1045,4 +1045,10 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
return "Nothing";
}
public long getSortValue()
{
TileEntity te = iHost.getTileEntity();
return (te.zCoord << 24) ^ (te.xCoord << 8) ^ te.yCoord;
}
}