public int GetIndex(int x, int y, int z) { return(_array1.GetIndex(x, y, z)); }
/// <summary> /// Returns a new <see cref="AlphaBlockRef"/> object from local coordaintes relative to this collection. /// </summary> /// <param name="x">Local X-coordinate of block.</param> /// <param name="y">Local Y-coordinate of block.</param> /// <param name="z">Local Z-coordinate of block.</param> /// <returns>A new <see cref="AlphaBlockRef"/> object representing context-dependent data of a single block.</returns> /// <remarks>Context-depdendent data includes all data associated with this block. Since a <see cref="AlphaBlockRef"/> represents /// a view of a block within this container, any updates to data in the container will be reflected in the <see cref="AlphaBlockRef"/>, /// and vice-versa for updates to the <see cref="AlphaBlockRef"/>.</remarks> public AlphaBlockRef GetBlockRef(int x, int y, int z) { return(new AlphaBlockRef(this, _blocks.GetIndex(x, y, z))); }