Improved Schematic Class

Improved the Schematic class. Added support for reading schematic files.
That functionality still needs to be integrated and tested. Made minor
changes to WorldOperation and its derived classes. Also fixed a few bugs
in Schematic's export functions that were found during testing. The
exporting code still doesn't do all the changes (e.g. block
standardization) that had been implemented before.
This commit is contained in:
SenseiKiwi
2013-07-27 17:29:55 -04:00
parent 210c791af4
commit 77efb63a5f
5 changed files with 212 additions and 36 deletions

View File

@@ -20,11 +20,11 @@ public class WorldCopyOperation extends WorldOperation
super("WorldCopyOperation");
blockIDs = null;
metadata = null;
tileEntities = new NBTTagList();
tileEntities = null;
}
@Override
protected boolean start(World world, int x, int y, int z, int width, int height, int length)
protected boolean initialize(World world, int x, int y, int z, int width, int height, int length)
{
index = 0;
originX = x;
@@ -32,6 +32,7 @@ public class WorldCopyOperation extends WorldOperation
originZ = z;
blockIDs = new short[width * height * length];
metadata = new byte[width * height * length];
tileEntities = new NBTTagList();
return true;
}