05a8056cbf
Add documentation comments for all items
2023-08-20 11:21:29 +02:00
ddc515a9d7
world/section: implement biome_at()
2023-04-08 21:20:00 +02:00
aa2edc3d13
world/section: move biome_types field out of BiomesV0 enum
2023-04-08 21:20:00 +02:00
c6843cfb9c
world: resolve biome palette entries for v1.18 biome data
2023-04-07 09:38:31 +02:00
b8b0e0627f
world: correctly name BiomesV1_18
2023-04-07 09:37:02 +02:00
e117c76937
world: pass biome data into chunk/section structures
2023-04-07 09:34:56 +02:00
f2b7808e84
world: distinguish pre-v1.18 biome data structures
2023-04-02 18:17:13 +02:00
b4eb0d39f9
world/section: add BlockLight type
2023-03-04 17:38:56 +01:00
66f8d155f5
world/section: reorder type definitions
2023-03-04 16:58:52 +01:00
47dc3795a3
world: introduce SectionIterItem struct
2023-03-04 16:57:59 +01:00
56573640fd
world/section: prefer slice references to Vec and fastnbt types
...
Makes the code a bit nicer and saves repeated deref calls into fastnbt.
2023-03-04 00:36:58 +01:00
04bc3e5d53
world/section: perform palette lookups early
...
Look up block types for all palette entries once during section
construction, rather than on block_at(), reducing the number of HashMap
lookups by ~1000.
2023-03-02 00:37:25 +01:00
5c82b80924
world/section: replace block_id_at() method with block_at()
...
Directly return a BlockType, preparing for early lookup of palettes.
2023-03-02 00:31:34 +01:00
f2ab424590
world: store BlockTypes in section types
...
Prepare for sections returning BlockType data directly instead of block IDs.
2023-03-02 00:24:59 +01:00
decb5c67a6
world/section: to not use u128 type
...
Getting the block index for unaligned blocks can be done just fine with
only u64.
2023-02-18 10:57:11 +01:00
921a218d56
types: split BlockCoords into SectionBlockCoords and LayerBlockCoords
2023-02-15 00:35:18 +01:00
9f8446885e
treewide: remove get_ prefix from function names
...
Follow the conventions of the std library.
2023-02-12 23:36:58 +01:00
96736bd7ed
Replace DivRem trait with num-integer crate
2023-02-12 23:08:53 +01:00
9146c06bec
treewide: rename "old" data structures to "v0"
...
"v0" doesn't refer to a specific version of Minecraft; it is just the
oldest data format supported by MinedMap.
2023-02-12 23:03:58 +01:00
493608ebc8
treewide: add more documentation
2023-02-12 23:03:58 +01:00
c34f531546
world/section: temporarily rename PaletteSectionBiomes fields
...
These fields are unused for now. Add an underscore to supress linter
warnings.
2023-02-12 23:03:58 +01:00
65c39ea153
types: make CHUNKS_PER_REGION and BLOCKS_PER_CHUNK usize
...
Having these as usize is more convenient.
2023-02-12 23:03:58 +01:00
b918ff6106
world/section: add method to get block ID at coordinate
2023-02-12 23:03:58 +01:00
c130f3cdae
world: add section iterator
...
An (empty for now) trait is introduced to abstract over the two section
types.
2023-02-12 23:03:57 +01:00
2d782f25b1
world: add types to wrap common parts of section data
2023-02-12 23:03:57 +01:00