示例#1
0
 public void SetTileEntity(Coordinates3D coordinates, TileEntity value)
 {
     for (int i = 0; i < TileEntities.Count; i++)
     {
         if (TileEntities[i].Coordinates == coordinates)
         {
             TileEntities[i] = value;
             return;
         }
     }
     TileEntities.Add(value);
 }
示例#2
0
文件: Chunk.cs 项目: Booser/Craft.Net
 public void SetTileEntity(Coordinates3D coordinates, TileEntity value)
 {
     LastAccessed = DateTime.Now;
     IsModified = true;
     for (int i = 0; i < TileEntities.Count; i++)
     {
         if (TileEntities[i].Coordinates == coordinates)
         {
             TileEntities[i] = value;
             return;
         }
     }
     TileEntities.Add(value);
 }