예제 #1
0
파일: Chunk.cs 프로젝트: andywhite37/NCraft
 public void LoadFromTag(CompoundTag tag)
 {
     Id = tag.GetString(ID);
     X = tag.GetInt(X_NAME);
     Y = tag.GetInt(Y_NAME);
     Z = tag.GetInt(Z_NAME);
 }
예제 #2
0
파일: Chunk.cs 프로젝트: andywhite37/NCraft
 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);
 }