From e75716e3ba546db649cf4eedad441ea08d4ce181 Mon Sep 17 00:00:00 2001 From: Blockception Bot Date: Wed, 27 Oct 2021 17:31:57 +0000 Subject: [PATCH] auto: Generated Json Schemas --- resource/sounds/sound_definitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/sounds/sound_definitions.json b/resource/sounds/sound_definitions.json index abbaa00c..66bd1511 100644 --- a/resource/sounds/sound_definitions.json +++ b/resource/sounds/sound_definitions.json @@ -1 +1 @@ -{"$id":"blockception.minecraft.sound_definition.json","examples":[{"format_version":"1.14.0","sound_definitions":{"music.game":{"category":"music","sounds":[""]}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string"}}},"else":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.14.0"}}},"then":{"$ref":"#/definitions/B"}},{"properties":{"format_version":{"$ref":"#/definitions/C"}}}],"definitions":{"A_SoundPath":{"$id":"SoundFilepath","type":"string","title":"Sound Filepath Schema","description":"The filepath to the sound, starts with `sounds/'","pattern":"(^sounds/.*$|^$)","additionalItems":true},"A_SoundSpec":{"additionalItems":false,"additionalProperties":false,"type":"object","$id":"#/Sound","title":"Sound","required":["sounds"],"properties":{"category":{"type":"string","$id":"#/Sound/category","title":"Sound Category","enum":["block","music","weather","ui","bucket","neutral","player","hostile","record"],"description":"UNDOCUMENTED: category"},"sounds":{"items":{"anyOf":[{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/A_SoundPath","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"},{"additionalItems":false,"$id":"#/Sound/sounds/ObjectItem","type":"object","required":["name"],"properties":{"pitch":{"description":"The pitch of the audio, 1 is nomial","type":"number","minimum":0,"maximum":2,"title":"Pitch"},"volume":{"description":"The volume of the audio, 1 is nomial","type":"number","minimum":0,"maximum":2,"title":"Volume"},"load_on_low_memory":{"type":"boolean","description":"Marks if this audio should be loaded or not on low memory","title":"Load On Low Memory"},"stream":{"description":"If marked true then minecraft will stream the audio","type":"boolean","title":"Stream"},"name":{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/A_SoundPath","description":"UNDOCUMENTED: name","title":"Name"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"}],"description":"UNDOCUMENTED: sounds","title":"Sounds"},"description":"UNDOCUMENTED: sounds","title":"Sounds"}}},"A":{"type":"object","title":"Sound File, Unknown Version","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","additionalProperties":{"$ref":"#/definitions/A_SoundSpec"},"properties":{"format_version":{"type":"string","description":"A version that tells minecraft what type of data format can be expected when reading this file.","title":"Format Version"},"sound_definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/A_SoundSpec"},"description":"UNDOCUMENTED: sound definitions","title":"Sound Definitions"}}},"B_SoundPath":{"$id":"SoundFilepath","type":"string","title":"Sound Filepath Schema","description":"The filepath to the sound, starts with `sounds/'","pattern":"(^sounds/.*$|^$)","additionalItems":true},"B_SoundSpec":{"additionalItems":false,"additionalProperties":false,"type":"object","$id":"#/Sound","title":"Sound","required":["sounds"],"properties":{"category":{"type":"string","$id":"#/Sound/category","title":"Sound Category","enum":["ambient","block","music","weather","ui","bucket","neutral","player","hostile","record","bottle"],"description":"UNDOCUMENTED: category"},"sounds":{"items":{"anyOf":[{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/B_SoundPath","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"},{"additionalItems":false,"$id":"#/Sound/sounds/ObjectItem","type":"object","required":["name"],"properties":{"pitch":{"description":"The pitch of the audio, 1 is nomial","type":"number","minimum":0,"maximum":2,"title":"Pitch"},"volume":{"description":"The volume of the audio, 1 is nomial","type":"number","minimum":0,"title":"Volume"},"load_on_low_memory":{"type":"boolean","description":"Marks if this audio should be loaded or not on low memory","title":"Load On Low Memory"},"stream":{"description":"If marked true then minecraft will stream the audio","type":"boolean","title":"Stream"},"name":{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/B_SoundPath","description":"UNDOCUMENTED: name","title":"Name"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"}],"description":"UNDOCUMENTED: sounds","title":"Sounds"},"description":"UNDOCUMENTED: sounds","title":"Sounds"}}},"B":{"type":"object","additionalItems":false,"title":"Sound File For 1.14.0","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","properties":{"format_version":{"type":"string","description":"A version that tells minecraft what type of data format can be expected when reading this file.","title":"Format Version"},"sound_definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/B_SoundSpec"},"description":"UNDOCUMENTED: sound definitions","title":"Sound Definitions"},"__use_legacy_max_distance":{"description":"UNDOCUMENTED: use legacy Maximum distance","title":"Use Legacy Maximum Distance","type":"string","enum":["true","false"]}},"additionalProperties":false},"C":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","enum":["1.17.40","1.17.30","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"]}}} \ No newline at end of file +{"$id":"blockception.minecraft.sound_definition.json","examples":[{"format_version":"1.14.0","sound_definitions":{"music.game":{"category":"music","sounds":[""]}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string"}}},"else":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.14.0"}}},"then":{"$ref":"#/definitions/B"}},{"properties":{"format_version":{"$ref":"#/definitions/C"}}}],"definitions":{"A_SoundPath":{"$id":"SoundFilepath","type":"string","title":"Sound Filepath Schema","description":"The filepath to the sound, starts with `sounds/'","pattern":"(^sounds/.*$|^$)","additionalItems":true},"A_SoundSpec":{"additionalItems":false,"additionalProperties":false,"type":"object","$id":"#/Sound","title":"Sound","required":["sounds"],"properties":{"category":{"type":"string","$id":"#/Sound/category","title":"Sound Category","enum":["block","music","weather","ui","bucket","neutral","player","hostile","record"],"description":"UNDOCUMENTED: category"},"sounds":{"items":{"anyOf":[{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/A_SoundPath","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"},{"additionalItems":false,"$id":"#/Sound/sounds/ObjectItem","type":"object","required":["name"],"properties":{"pitch":{"description":"The pitch of the audio, 1 is nomial","type":"number","minimum":0,"maximum":2,"title":"Pitch"},"volume":{"description":"The volume of the audio, 1 is nomial","type":"number","minimum":0,"maximum":2,"title":"Volume"},"load_on_low_memory":{"type":"boolean","description":"Marks if this audio should be loaded or not on low memory","title":"Load On Low Memory"},"stream":{"description":"If marked true then minecraft will stream the audio","type":"boolean","title":"Stream"},"name":{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/A_SoundPath","description":"UNDOCUMENTED: name","title":"Name"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"}],"description":"UNDOCUMENTED: sounds","title":"Sounds"},"description":"UNDOCUMENTED: sounds","title":"Sounds"}}},"A":{"type":"object","title":"Sound File, Unknown Version","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","additionalProperties":{"$ref":"#/definitions/A_SoundSpec"},"properties":{"format_version":{"type":"string","description":"A version that tells minecraft what type of data format can be expected when reading this file.","title":"Format Version"},"sound_definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/A_SoundSpec"},"description":"UNDOCUMENTED: sound definitions","title":"Sound Definitions"}}},"B_SoundPath":{"$id":"SoundFilepath","type":"string","title":"Sound Filepath Schema","description":"The filepath to the sound, starts with `sounds/'","pattern":"(^sounds/.*$|^$)","additionalItems":true,"examples":["sounds/"]},"B_SoundSpec":{"additionalProperties":false,"type":"object","$id":"#/Sound","title":"Sound","required":["sounds"],"properties":{"__use_legacy_max_distance":{"type":"boolean","title":"Use Legacy Max Distance","description":"UNDOCUMENTED"},"category":{"type":"string","title":"Sound Category","enum":["ambient","block","music","weather","ui","bucket","neutral","player","hostile","record","bottle"],"description":"UNDOCUMENTED: category"},"sounds":{"title":"Sounds","description":"UNDOCUMENTED: sounds","items":{"title":"Sounds","description":"UNDOCUMENTED: sounds","anyOf":[{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/B_SoundPath","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"},{"additionalProperties":false,"$id":"#/Sound/sounds/ObjectItem","type":"object","required":["name"],"properties":{"is3D":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Is 3D","type":"boolean"},"pitch":{"description":"The pitch of the audio, 1 is nomial","type":"number","minimum":0,"maximum":2,"title":"Pitch"},"volume":{"description":"The volume of the audio, 1 is nomial","type":"number","minimum":0,"title":"Volume"},"load_on_low_memory":{"type":"boolean","description":"Marks if this audio should be loaded or not on low memory","title":"Load On Low Memory"},"stream":{"description":"If marked true then minecraft will stream the audio","type":"boolean","title":"Stream"},"name":{"$id":"#/Sound/sounds/stringItem","type":"string","$ref":"#/definitions/B_SoundPath","description":"UNDOCUMENTED: name","title":"Name"},"weight":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Weight","type":"integer","minimum":0}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Sounds"}]}},"max_distance":{"title":"Max Distance","description":"UNDOCUMENTED"}}},"B":{"type":"object","additionalItems":false,"title":"Sound File For 1.14.0","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","properties":{"format_version":{"type":"string","description":"A version that tells minecraft what type of data format can be expected when reading this file.","title":"Format Version"},"sound_definitions":{"type":"object","additionalProperties":{"$ref":"#/definitions/B_SoundSpec"},"description":"UNDOCUMENTED: sound definitions","title":"Sound Definitions"},"__use_legacy_max_distance":{"description":"UNDOCUMENTED: use legacy Maximum distance","title":"Use Legacy Maximum Distance","type":"string","enum":["true","false"]}},"additionalProperties":false},"C":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","enum":["1.17.40","1.17.30","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"]}}} \ No newline at end of file