ManicDigger.InfiniteMapCache.GetBlock C# (CSharp) Method

GetBlock() public method

public GetBlock ( int x, int y, int z ) : int
x int
y int
z int
return int
        public int GetBlock(int x, int y, int z)
        {
            byte[, ,] chunk = GetChunk(x, y, z);
            return chunk[x % chunksize, y % chunksize, z % chunksize];
        }