Beispiel #1
0
 private BiomeCacheBlock getBiomeCacheBlock(int i, int j)
 {
     i >>= 4;
     j >>= 4;
     long l = (long)i & 0xffffffffL | ((long)j & 0xffffffffL) << 32;
     BiomeCacheBlock biomecacheblock = (BiomeCacheBlock)field_35730_c.getValueByKey(l);
     if (biomecacheblock == null)
     {
         biomecacheblock = new BiomeCacheBlock(this, i, j);
         field_35730_c.add(l, biomecacheblock);
         field_35728_d.Add(biomecacheblock);
     }
     biomecacheblock.field_35653_f = Convert.ToInt64(((TimeSpan)(DateTime.UtcNow - new DateTime(1970, 1, 1))).TotalMilliseconds);
     return biomecacheblock;
 }
Beispiel #2
0
        private BiomeCacheBlock getBiomeCacheBlock(int i, int j)
        {
            i >>= 4;
            j >>= 4;
            long            l = (long)i & 0xffffffffL | ((long)j & 0xffffffffL) << 32;
            BiomeCacheBlock biomecacheblock = (BiomeCacheBlock)field_35730_c.getValueByKey(l);

            if (biomecacheblock == null)
            {
                biomecacheblock = new BiomeCacheBlock(this, i, j);
                field_35730_c.add(l, biomecacheblock);
                field_35728_d.Add(biomecacheblock);
            }
            biomecacheblock.field_35653_f = Convert.ToInt64(((TimeSpan)(DateTime.UtcNow - new DateTime(1970, 1, 1))).TotalMilliseconds);
            return(biomecacheblock);
        }