Added mob spawner support; added 'info' tool.

This commit is contained in:
sk89q
2010-11-26 19:33:28 -08:00
parent efb4a7b52f
commit 0ec0b42026
10 changed files with 299 additions and 7 deletions

View File

@ -210,6 +210,17 @@ public class Chunk {
((TileEntityBlock)block).fromTileEntityNBT(tileEntity);
}
return block;
// Mob spawners
} else if (id == 52) {
MobSpawnerBlock block = new MobSpawnerBlock();
Map<String,Tag> tileEntity = getBlockTileEntity(pos);
if (tileEntity != null) {
((TileEntityBlock)block).fromTileEntityNBT(tileEntity);
}
return block;
} else {
return new BaseBlock(id, data);