|
89af4aaee2
|
resource: extend BlockTypes with legacy block type data
Allow to directly map from id/data values to BlockType.
|
2023-03-02 00:24:56 +01:00 |
|
|
4c2fd6c1a9
|
resource: rename BlockTypeMap to BlockTypes
The block_types() function it turned into a Default implementation.
|
2023-03-01 23:59:27 +01:00 |
|
|
95e4e45974
|
resource: remove "minecraft:" prefix from hash keys
Shorter keys mean less data to hash.
|
2023-03-01 22:03:09 +01:00 |
|
|
cbbc6d8f35
|
resource: make BlockTypeMap return BlockType without reference
|
2023-03-01 21:58:29 +01:00 |
|
|
551056803d
|
Add Serialize/Deserialize impls to various types
We want to be able to store this data to disk temporarily.
|
2023-02-26 00:46:50 +01:00 |
|
|
339e0b6a05
|
resource: add BlockType::is() method to check for flags
|
2023-02-15 00:34:59 +01:00 |
|
|
2a941e5283
|
resource: add BlockTypeMap type for convenience
|
2023-02-15 00:34:59 +01:00 |
|
|
db289bc077
|
resource: rename BlockFlags to BlockFlag
The enum only holds a single flag at a time.
|
2023-02-15 00:34:59 +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 |
|
|
3cee4a4247
|
resource: port legacy block type mapping from old implementation
|
2023-02-12 23:03:57 +01:00 |
|
|
718ecf5909
|
resource: update block type code generator for Rust
|
2023-02-07 22:18:44 +01:00 |
|