blockValue method

int blockValue(
  1. Block pos
)

Gets the block value from the matrix.

Implementation

int blockValue(Block pos) {
  return matrix[pos.y][pos.x];
}