775fcb2d1b
treewide: cargo fmt with 1.85
2025-03-13 21:50:50 +01:00
4933d8e15f
treewide: clippy fixes
...
Fix all clippy warnings as of Rust 1.83.0.
2024-12-17 00:24:56 +01:00
fb361145eb
world: add sign position and material information to block entities
2024-01-10 22:56:29 +01:00
f0e0db63d3
world: process sign data, prepare for serialization
2024-01-10 22:56:26 +01:00
638d5046c9
world/chunk: change Chunk into a struct
...
The version-specific part is extracted as an enum ChunkInner.
2024-01-10 22:56:26 +01:00
f78dd795ca
world/de: add deserialization of sign block entities
2024-01-10 22:56:26 +01:00
e8165aa47d
world: hide unknown block/biome type warnings by default
...
While using MinedMap with modded Minecraft version is not officially
supported, it should still work reasonably well if you're okay with
custom block types being invisible and custom biomes using default
grass/color/foliage colors.
Avoid spamming the log with messages for each section in this case
without --verbose, and instead just print a single warning at the end of
processing.
2024-01-10 13:02:29 +01:00
1e41e1bc6a
world/chunk: move SectionIter structs to impl
2024-01-10 13:02:29 +01:00
74a4fc93d0
world/de: rename Variants enums to Variant
2023-11-25 19:01:36 +01:00
003b48951b
world: fix deserialize of unpopulated 1.18+ sections
2023-08-20 19:11:12 +02:00
05a8056cbf
Add documentation comments for all items
2023-08-20 11:21:29 +02:00
0d2c99dacf
world/chunk: include biomes in section iterator item
2023-04-08 21:20:00 +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
4fd316f3fc
world/layer: return None from top_layer() for empty chunks
...
Allow ignoring these chunks for the light map as well.
2023-03-04 20:33:10 +01:00
51602d5fc1
world/chunk: add block light to section iterator items
2023-03-04 17:38:56 +01:00
482471492c
world/chunk: store BlockLight data in section map
2023-03-04 17:38:56 +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
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
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
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