|
10 | 10 | "Predicate",
|
11 | 11 | "Recipe",
|
12 | 12 | "Structure",
|
| 13 | + "TrimPattern", |
| 14 | + "TrimMaterial", |
13 | 15 | "TagFile",
|
14 | 16 | "BlockTag",
|
15 | 17 | "EntityTypeTag",
|
@@ -174,6 +176,20 @@ def to_bytes(self, content: StructureFileData) -> bytes:
|
174 | 176 | return dst.getvalue()
|
175 | 177 |
|
176 | 178 |
|
| 179 | +class TrimPattern(JsonFile): |
| 180 | + """Class representing a trim pattern.""" |
| 181 | + |
| 182 | + scope: ClassVar[Tuple[str, ...]] = ("trim_pattern",) |
| 183 | + extension: ClassVar[str] = ".json" |
| 184 | + |
| 185 | + |
| 186 | +class TrimMaterial(JsonFile): |
| 187 | + """Class representing a trim material.""" |
| 188 | + |
| 189 | + scope: ClassVar[Tuple[str, ...]] = ("trim_material",) |
| 190 | + extension: ClassVar[str] = ".json" |
| 191 | + |
| 192 | + |
177 | 193 | class TagFile(JsonFile):
|
178 | 194 | """Base class for tag files."""
|
179 | 195 |
|
@@ -288,6 +304,8 @@ class DataPackNamespace(Namespace):
|
288 | 304 | loot_tables: NamespacePin[LootTable] = NamespacePin(LootTable)
|
289 | 305 | predicates: NamespacePin[Predicate] = NamespacePin(Predicate)
|
290 | 306 | recipes: NamespacePin[Recipe] = NamespacePin(Recipe)
|
| 307 | + trim_pattern: NamespacePin[TrimPattern] = NamespacePin(TrimPattern) |
| 308 | + trim_material: NamespacePin[TrimMaterial] = NamespacePin(TrimMaterial) |
291 | 309 | structures: NamespacePin[Structure] = NamespacePin(Structure)
|
292 | 310 | chat_type: NamespacePin[ChatType] = NamespacePin(ChatType)
|
293 | 311 | damage_type: NamespacePin[DamageType] = NamespacePin(DamageType)
|
@@ -326,6 +344,8 @@ class DataPack(Pack[DataPackNamespace]):
|
326 | 344 | loot_tables: NamespaceProxyDescriptor[LootTable] = NamespaceProxyDescriptor(LootTable)
|
327 | 345 | predicates: NamespaceProxyDescriptor[Predicate] = NamespaceProxyDescriptor(Predicate)
|
328 | 346 | recipes: NamespaceProxyDescriptor[Recipe] = NamespaceProxyDescriptor(Recipe)
|
| 347 | + trim_pattern: NamespaceProxyDescriptor[TrimPattern] = NamespaceProxyDescriptor(TrimPattern) |
| 348 | + trim_material: NamespaceProxyDescriptor[TrimMaterial] = NamespaceProxyDescriptor(TrimMaterial) |
329 | 349 | structures: NamespaceProxyDescriptor[Structure] = NamespaceProxyDescriptor(Structure)
|
330 | 350 | chat_type: NamespaceProxyDescriptor[ChatType] = NamespaceProxyDescriptor(ChatType)
|
331 | 351 | damage_type: NamespaceProxyDescriptor[DamageType] = NamespaceProxyDescriptor(DamageType)
|
|
0 commit comments