public readonly int CalculateLightIndex(BlockPosition position) => CalculateStateIndex(position) / 2;
public ref BlockState this[BlockPosition position] => ref States.Span[CalculateStateIndex(position)];
// DO NOT CHANGE. LARGE PARTS OF CODE AND OPTIMIZATIONS RELY ON THE X-Z-Y LAYOUT public readonly int CalculateStateIndex(BlockPosition position) => position.X + Width * (position.Z + Depth * position.Y);