Example #1
0
 public static void MakeChest(int x, int y, int z, int intBlockAgainst, TileEntityChest tec, int intMirror)
 {
     BlockShapes.MakeBlock(x, y, z, BlockInfo.Chest.ID, BlockHelper.BlockDirection(x, y, z, intBlockAgainst));
     _bmDest.SetTileEntity(x, y, z, tec);
     if (intMirror > 0)
     {
         MakeChest(City.MapLength - x, y, z, intBlockAgainst, tec, 0);
         MakeChest(x, y, City.MapLength - z, intBlockAgainst, tec, 0);
         MakeChest(City.MapLength - x, y, City.MapLength - z, intBlockAgainst, tec, 0);
         if (intMirror == 2)
         {
             MakeChest(z, y, x, intBlockAgainst, tec, 1);
         }
     }
 }
Example #2
0
 public static void MakeChest(int x, int y, int z, int intBlockAgainst, TileEntityChest tec, int intMirror)
 {
     BlockShapes.MakeBlock(x, y, z, BlockType.CHEST, BlockHelper.BlockDirection(x, y, z, intBlockAgainst));
     _bmDest.SetTileEntity(x, y, z, tec);
     if (intMirror > 0)
     {
         MakeChest(_intMapSize - x, y, z, intBlockAgainst, tec, 0);
         MakeChest(x, y, _intMapSize - z, intBlockAgainst, tec, 0);
         MakeChest(_intMapSize - x, y, _intMapSize - z, intBlockAgainst, tec, 0);
         if (intMirror == 2)
         {
             MakeChest(z, y, x, intBlockAgainst, tec, 1);
         }
     }
 }