From c35566e0f4899c16bcc3eef507de35b85bc32dec Mon Sep 17 00:00:00 2001 From: Orbi-bot Date: Sun, 16 Mar 2025 19:49:13 +0000 Subject: [PATCH] auto: generated json schemas 2025-03-16 --- resource/textures/ui_texture_definition.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/textures/ui_texture_definition.json b/resource/textures/ui_texture_definition.json index 72262ec4..0ed765be 100644 --- a/resource/textures/ui_texture_definition.json +++ b/resource/textures/ui_texture_definition.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.texture.ui_definition","additionalProperties":false,"description":"The file that specifies either 9slice texture or Aseprite flipbook.","title":"UI Texture File","type":"object","oneOf":[{"$ref":"#/definitions/A"},{"$ref":"#/definitions/B"}],"definitions":{"A":{"additionalProperties":false,"description":"The file that specifies 9Slice textures.","title":"9Slice Texture File","type":"object","properties":{"nineslice_size":{"title":"9Slice offsets","oneOf":[{"description":"Offset from left, top, right and bottom of the texture file.","type":"number","minimum":0},{"description":"Offsets from left, top, right and bottom of the texture file (in this exact order).","type":"array","minItems":4,"maxItems":4,"items":{"type":"number","minimum":0}}]},"base_size":{"title":"Size of the texture","description":"Width and height of the texture (in this exact order).","type":"array","minItems":2,"maxItems":2,"items":{"type":"number","minimum":0}}}},"B":{"additionalProperties":false,"description":"The file that specifies Aseprite/libresprite flipbook animation.","title":"Aseprite Flipbook File","type":"object","required":["meta","frames"],"properties":{"meta":{"title":"Meta","type":"object","description":"The meta data of the flipbook.","additionalProperties":true,"required":["size","image"],"properties":{"size":{"type":"object","title":"Size","description":"The size of the flipbook sprite sheet.","required":["w","h"],"examples":[{"w":16,"h":16}],"properties":{"w":{"title":"Width","description":"The width of the sprite sheet.","type":"integer","default":16},"h":{"title":"Height","description":"The height of the sprite sheet.","type":"integer","default":16}}},"image":{"title":"Image","description":"The path to the sprite sheet. The value is required, but not used.","type":"string"}}},"frames":{"title":"Frames","type":"array","description":"The frames of the flipbook.","items":{"title":"Frame","description":"A frame of the flipbook.","type":"object","additionalProperties":true,"required":["duration","frame"],"properties":{"duration":{"title":"Duration","description":"The duration of the frame in milliseconds.","type":"integer","minimum":1},"frame":{"title":"Frame","type":"object","description":"The position of the frame in the sprite sheet (UV).","required":["x","y"],"examples":[{"x":0,"y":0}],"properties":{"x":{"title":"X","type":"integer","description":"The x position of the frame in the sprite sheet.","minimum":0},"y":{"title":"Y","type":"integer","description":"The y position of the frame in the sprite sheet.","minimum":0}}}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.texture.ui_definition","additionalProperties":false,"description":"The file that specifies either 9slice texture or Aseprite flipbook.","title":"UI Texture File","type":"object","anyOf":[{"$ref":"#/definitions/A"},{"$ref":"#/definitions/B"}],"definitions":{"A":{"additionalProperties":false,"description":"The file that specifies 9Slice textures.","title":"9Slice Texture File","type":"object","properties":{"nineslice_size":{"title":"9Slice offsets","oneOf":[{"description":"Offset from left, top, right and bottom of the texture file.","type":"number","minimum":0},{"description":"Offsets from left, top, right and bottom of the texture file (in this exact order).","type":"array","minItems":4,"maxItems":4,"items":{"type":"number","minimum":0}}]},"base_size":{"title":"Size of the texture","description":"Width and height of the texture (in this exact order).","type":"array","minItems":2,"maxItems":2,"items":{"type":"number","minimum":0}}}},"B":{"additionalProperties":false,"description":"The file that specifies Aseprite/libresprite flipbook animation.","title":"Aseprite Flipbook File","type":"object","required":["meta","frames"],"properties":{"meta":{"title":"Meta","type":"object","description":"The meta data of the flipbook.","additionalProperties":true,"required":["size","image"],"properties":{"size":{"type":"object","title":"Size","description":"The size of the flipbook sprite sheet.","required":["w","h"],"examples":[{"w":16,"h":16}],"properties":{"w":{"title":"Width","description":"The width of the sprite sheet.","type":"integer","default":16},"h":{"title":"Height","description":"The height of the sprite sheet.","type":"integer","default":16}}},"image":{"title":"Image","description":"The path to the sprite sheet. The value is required, but not used.","type":"string"}}},"frames":{"title":"Frames","type":"array","description":"The frames of the flipbook.","items":{"title":"Frame","description":"A frame of the flipbook.","type":"object","additionalProperties":true,"required":["duration","frame"],"properties":{"duration":{"title":"Duration","description":"The duration of the frame in milliseconds.","type":"integer","minimum":1},"frame":{"title":"Frame","type":"object","description":"The position of the frame in the sprite sheet (UV).","required":["x","y"],"examples":[{"x":0,"y":0}],"properties":{"x":{"title":"X","type":"integer","description":"The x position of the frame in the sprite sheet.","minimum":0},"y":{"title":"Y","type":"integer","description":"The y position of the frame in the sprite sheet.","minimum":0}}}}}}}}}} \ No newline at end of file