Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for wolf variants #437

Merged
merged 1 commit into from
May 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading