public BlockMap(int var1, int var2, int var3) {
      this.width = var1 / 16;
      this.depth = var2 / 16;
      this.height = var3 / 16;
      if(this.width == 0) {
         this.width = 1;
      }

      if(this.depth == 0) {
         this.depth = 1;
      }

      if(this.height == 0) {
         this.height = 1;
      }

      this.entityGrid = new ArrayList[this.width * this.depth * this.height];

      for(var1 = 0; var1 < this.width; ++var1) {
         for(var2 = 0; var2 < this.depth; ++var2) {
            for(var3 = 0; var3 < this.height; ++var3) {
               this.entityGrid[(var3 * this.depth + var2) * this.width + var1] = new ArrayList();
            }
         }
      }

   }