Ejemplo n.º 1
0
 public void LoadFromTag(CompoundTag tag)
 {
     Blocks = new Blocks(tag.GetByteArrayTag(Blocks.BLOCKS));
     Data = new Data(tag.GetByteArrayTag(Data.DATA));
     SkyLight = new SkyLight(tag.GetByteArrayTag(SkyLight.SKY_LIGHT));
     BlockLight = new BlockLight(tag.GetByteArrayTag(BlockLight.BLOCK_LIGHT));
     HeightMap = new HeightMap(tag.GetByteArrayTag(HeightMap.HEIGHT_MAP));
     Entities = new Entities(tag.GetListTag(Entities.ENTITIES));
     TileEntities = new TileEntities(tag.GetListTag(TileEntities.TILE_ENTITIES));
     LastUpdate = tag.GetLong(LAST_UPDATE);
     XPos = tag.GetInt(X_POS);
     ZPos = tag.GetInt(Z_POS);
     TerrainPopulated = tag.GetByte(TERRAIN_POPULATED);
 }
Ejemplo n.º 2
0
 public void LoadFromTag(CompoundTag tag)
 {
     Motion = new Motion(tag.GetListTag(Motion.MOTION));
     OnGround = tag.GetByte(ON_GROUND);
     HurtTime = tag.GetShort(HURT_TIME);
     Health = tag.GetShort(HEALTH);
     Dimension = tag.GetInt(DIMENSION);
     Air = tag.GetShort(AIR);
     Inventory = new Inventory(tag.GetListTag(Inventory.INVENTORY));
     Pos = new Pos(tag.GetListTag(Pos.POS));
     AttackTime = tag.GetShort(ATTACK_TIME);
     Fire = tag.GetShort(FIRE);
     FallDistance = tag.GetFloat(FALL_DISTANCE);
     Rotation = new Rotation(tag.GetListTag(Rotation.ROTATION));
     Score = tag.GetInt(SCORE);
     DeathTime = tag.GetShort(DEATH_TIME);
 }
Ejemplo n.º 3
0
 public virtual void LoadFromTag(CompoundTag tag)
 {
     Id = tag.GetString(ID);
     Pos = new Pos(tag.GetListTag(Pos.POS));
     Motion = new Motion(tag.GetListTag(Motion.MOTION));
     Rotation = new Rotation(tag.GetListTag(Rotation.ROTATION));
     FallDistance = tag.GetFloat(FALL_DISTANCE);
     Fire = tag.GetShort(FIRE);
     Air = tag.GetShort(AIR);
     OnGround = tag.GetByte(ON_GROUND);
 }
Ejemplo n.º 4
0
 public void LoadFromTag(CompoundTag tag)
 {
     Id = tag.GetShort(ID);
     Damage = tag.GetShort(DAMAGE);
     Count = tag.GetByte(COUNT);
     Slot = tag.GetByte(SLOT);
 }