public LevelInfo(TagCompound tag) { Tag = tag; SpawnX = tag.GetIntValue("SpawnX"); SpawnY = tag.GetIntValue("SpawnY"); SpawnZ = tag.GetIntValue("SpawnZ"); Version = tag.GetTag("Version"); }
public BlockEntity(TagCompound tag) { Tag = tag; Id = tag.GetStringValue("id"); X = tag.GetIntValue("x"); Y = tag.GetIntValue("y"); Z = tag.GetIntValue("z"); }
public void GetIntValue_returns_default_value() { // arrange TagCompound target; int expected; int actual; string name; expected = 1073741823; name = "alpha"; target = new TagCompound(); // act actual = target.GetIntValue(name, expected); // assert Assert.AreEqual(expected, actual); }