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 new 1.21.2+ folders and bump pack formats #449

Merged
merged 6 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
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
18 changes: 18 additions & 0 deletions beet/library/resource_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ class Model(JsonFile):
extension: ClassVar[str] = ".json"


class EquipmentModel(JsonFile):
"""Class representing an equipment model."""

scope: ClassVar[NamespaceFileScope] = ("models", "equipment")
extension: ClassVar[str] = ".json"


class Language(JsonFile):
"""Class representing a language file."""

Expand Down Expand Up @@ -101,6 +108,13 @@ class TrueTypeFont(BinaryFile):
extension: ClassVar[str] = ".ttf"


class PostEffect(JsonFile):
"""Class representing a post effect pipeline."""

scope: ClassVar[NamespaceFileScope] = ("post_effect",)
extension: ClassVar[str] = ".json"


class ShaderPost(JsonFile):
"""Class representing a shader post-processing pipeline."""

Expand Down Expand Up @@ -298,10 +312,12 @@ class ResourcePackNamespace(Namespace):
# fmt: off
blockstates: NamespacePin[Blockstate] = NamespacePin(Blockstate)
models: NamespacePin[Model] = NamespacePin(Model)
equipment_models: NamespacePin[EquipmentModel] = NamespacePin(EquipmentModel)
languages: NamespacePin[Language] = NamespacePin(Language)
fonts: NamespacePin[Font] = NamespacePin(Font)
glyph_sizes: NamespacePin[GlyphSizes] = NamespacePin(GlyphSizes)
true_type_fonts: NamespacePin[TrueTypeFont] = NamespacePin(TrueTypeFont)
post_effects: NamespacePin[PostEffect] = NamespacePin(PostEffect)
shader_posts: NamespacePin[ShaderPost] = NamespacePin(ShaderPost)
shaders: NamespacePin[Shader] = NamespacePin(Shader)
fragment_shaders: NamespacePin[FragmentShader] = NamespacePin(FragmentShader)
Expand Down Expand Up @@ -350,10 +366,12 @@ class ResourcePack(Pack[ResourcePackNamespace]):
# fmt: off
blockstates: NamespaceProxyDescriptor[Blockstate] = NamespaceProxyDescriptor(Blockstate)
models: NamespaceProxyDescriptor[Model] = NamespaceProxyDescriptor(Model)
equipment_Models: NamespaceProxyDescriptor[EquipmentModel] = NamespaceProxyDescriptor(EquipmentModel)
misode marked this conversation as resolved.
Show resolved Hide resolved
languages: NamespaceProxyDescriptor[Language] = NamespaceProxyDescriptor(Language)
fonts: NamespaceProxyDescriptor[Font] = NamespaceProxyDescriptor(Font)
glyph_sizes: NamespaceProxyDescriptor[GlyphSizes] = NamespaceProxyDescriptor(GlyphSizes)
true_type_fonts: NamespaceProxyDescriptor[TrueTypeFont] = NamespaceProxyDescriptor(TrueTypeFont)
post_effects: NamespaceProxyDescriptor[PostEffect] = NamespaceProxyDescriptor(PostEffect)
shader_posts: NamespaceProxyDescriptor[ShaderPost] = NamespaceProxyDescriptor(ShaderPost)
shaders: NamespaceProxyDescriptor[Shader] = NamespaceProxyDescriptor(Shader)
fragment_shaders: NamespaceProxyDescriptor[FragmentShader] = NamespaceProxyDescriptor(FragmentShader)
Expand Down
Loading