mirror of
https://github.com/thepigeongenerator/mcaselector-lite
synced 2026-02-08 07:33:35 +01:00
Reflow documentation
This commit is contained in:
@@ -63,9 +63,11 @@ The actual structure of this is best illustrated by [the wiki](https://minecraft
|
|||||||
| `sections[i].block_states.data` | `long array` | [view below](#block-state-data) |
|
| `sections[i].block_states.data` | `long array` | [view below](#block-state-data) |
|
||||||
##### block state data
|
##### block state data
|
||||||
Contains 4096 indices, which are packed in a specific way.
|
Contains 4096 indices, which are packed in a specific way.
|
||||||
All indices are the same with, though the width is decided by the minimum width required to index the palette. In versions ≥`1.16`, the indices are not packed across multiple elements of the array.
|
All indices are the same width,
|
||||||
So they have an alignment requirement of 64 bits.
|
though the width is decided by the minimum width required to index the palette.
|
||||||
There might be an additional section at the top and or bottom of the world used to store light, so that light travels properly over and under the world limits.
|
In versions ≥`1.16`, the indices are not packed across multiple elements of the array.
|
||||||
|
There might be an additional section at the top and or bottom of the world used to store light,
|
||||||
|
so that light travels properly over and under the world limits.
|
||||||
This is an example on how to access individual block info from a single section;
|
This is an example on how to access individual block info from a single section;
|
||||||
```c
|
```c
|
||||||
unsigned w = 0;
|
unsigned w = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user