Esempio n. 1
0
        private void AssertLevel(Level level)
        {
            Assert.IsNotNull(level);

            AssertData(level.Data);
            AssertEntities(level.Entities);
            Assert.AreEqual(327730, level.LastUpdate);
            Assert.AreEqual(0, level.XPos);
            Assert.AreEqual(0, level.ZPos);
            AssertTileEntities(level.TileEntities);
            Assert.AreEqual(1, level.TerrainPopulated);
            AssertSkyLight(level.SkyLight);
            AssertHeightMap(level.HeightMap);
            AssertBlockLight(level.BlockLight);
            AssertBlocks(level.Blocks);
        }
Esempio n. 2
0
 public void LoadFromTag(CompoundTag tag)
 {
     Level = new Level(tag.GetCompoundTag(Level.LEVEL));
 }