public BiomeCacheBlock getBiomeCacheBlock(int par1, int par2) { par1 >>= 4; par2 >>= 4; long l = (long)par1 & 0xffffffffL | ((long)par2 & 0xffffffffL) << 32; BiomeCacheBlock biomecacheblock = (BiomeCacheBlock)cacheMap.getValueByKey(l); if (biomecacheblock == null) { biomecacheblock = new BiomeCacheBlock(this, par1, par2); cacheMap.add(l, biomecacheblock); cache.Add(biomecacheblock); } biomecacheblock.lastAccessTime = Convert.ToInt64(((TimeSpan)(DateTime.UtcNow - new DateTime(1970, 1, 1))).TotalMilliseconds); return(biomecacheblock); }
public BiomeCacheBlock getBiomeCacheBlock(int par1, int par2) { par1 >>= 4; par2 >>= 4; long l = (long)par1 & 0xffffffffL | ((long)par2 & 0xffffffffL) << 32; BiomeCacheBlock biomecacheblock = (BiomeCacheBlock)cacheMap.getValueByKey(l); if (biomecacheblock == null) { biomecacheblock = new BiomeCacheBlock(this, par1, par2); cacheMap.add(l, biomecacheblock); cache.Add(biomecacheblock); } biomecacheblock.lastAccessTime = Convert.ToInt64(((TimeSpan)(DateTime.UtcNow - new DateTime(1970, 1, 1))).TotalMilliseconds); return biomecacheblock; }