Skip to content

Commit

Permalink
feat: add support for wolf variants
Browse files Browse the repository at this point in the history
  • Loading branch information
misode authored and vberlier committed May 4, 2024
1 parent a7b4f5e commit f12de06
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions beet/library/data_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"DamageType",
"ChatType",
"BannerPattern",
"WolfVariant",
"Function",
"ItemModifier",
"LootTable",
Expand Down Expand Up @@ -80,6 +81,13 @@ class BannerPattern(JsonFile):
extension: ClassVar[str] = ".json"


class WolfVariant(JsonFile):
"""Class representing a wolf variant."""

scope: ClassVar[Tuple[str, ...]] = ("wolf_variant",)
extension: ClassVar[str] = ".json"


@dataclass(eq=False, repr=False)
class Function(TextFileBase[List[str]]):
"""Class representing a function."""
Expand Down Expand Up @@ -316,6 +324,7 @@ class DataPackNamespace(Namespace):
chat_type: NamespacePin[ChatType] = NamespacePin(ChatType)
damage_type: NamespacePin[DamageType] = NamespacePin(DamageType)
banner_patterns: NamespacePin[BannerPattern] = NamespacePin(BannerPattern)
wolf_variants: NamespacePin[WolfVariant] = NamespacePin(WolfVariant)
block_tags: NamespacePin[BlockTag] = NamespacePin(BlockTag)
entity_type_tags: NamespacePin[EntityTypeTag] = NamespacePin(EntityTypeTag)
fluid_tags: NamespacePin[FluidTag] = NamespacePin(FluidTag)
Expand Down Expand Up @@ -357,6 +366,7 @@ class DataPack(Pack[DataPackNamespace]):
chat_type: NamespaceProxyDescriptor[ChatType] = NamespaceProxyDescriptor(ChatType)
damage_type: NamespaceProxyDescriptor[DamageType] = NamespaceProxyDescriptor(DamageType)
banner_patterns: NamespaceProxyDescriptor[BannerPattern] = NamespaceProxyDescriptor(BannerPattern)
wolf_variants: NamespaceProxyDescriptor[WolfVariant] = NamespaceProxyDescriptor(WolfVariant)
block_tags: NamespaceProxyDescriptor[BlockTag] = NamespaceProxyDescriptor(BlockTag)
entity_type_tags: NamespaceProxyDescriptor[EntityTypeTag] = NamespaceProxyDescriptor(EntityTypeTag)
fluid_tags: NamespaceProxyDescriptor[FluidTag] = NamespaceProxyDescriptor(FluidTag)
Expand Down

0 comments on commit f12de06

Please sign in to comment.