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

Windows #41

Merged
merged 4 commits into from
Aug 25, 2015
Merged
Show file tree
Hide file tree
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
43 changes: 43 additions & 0 deletions enums/windows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[
{
"id": "minecraft:beacon",
"name": "Beacon",
"slots": [
{
"name": "input",
"index": 0
}
],
"properties": [
"level",
"effect one",
"effect two"
],
"buttons": [
"apply",
"cancel"
]
},
{
"id": "minecraft:brewing_stand",
"name": "Brewing Stand",
"slots": [
{
"name": "ingredient",
"index": 0
},
{
"name": "result",
"index": 1,
"size": 3
}
],
"properties": [
"brew time"
]
},
{
"id": "EntityHorse",
"name": "Horse"
}
]
73 changes: 73 additions & 0 deletions enums_schemas/windows_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "windows",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "window",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "The unique identifier for the window",
"type": "string"
},
"name": {
"description": "The default displayed name of the window",
"type": "string"
},
"slots": {
"description": "The slots displayed in the window",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"description": "A slot or slot range in the window",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the slot or slot range",
"type": "string"
},
"index": {
"description": "The position of the slot or begin of the slot range",
"type": "integer",
"minimum": 0
},
"size": {
"description": "The size of the slot range",
"type": "integer",
"minimum": 0
}
},
"required": [
"name",
"index"
]
}
},
"properties": {
"description": "Names of the properties of the window",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"buttons": {
"description": "Names of the buttons of the window",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
},
"required": [
"id",
"name"
]
}
}
2 changes: 1 addition & 1 deletion tools/js/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var v = new Validator();

Error.stackTraceLimit=0;

var enums=["biomes","instruments","items","materials","blocks","recipes","entities","protocol"];
var enums=["biomes","instruments","items","materials","blocks","recipes","windows","entities","protocol"];

describe("minecraft-data", function() {
this.timeout(60 * 1000);
Expand Down