-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Niels-NTG/entities_endpoint
Entities endpoint
- Loading branch information
Showing
8 changed files
with
1,091 additions
and
77 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/EntityInformationElement" | ||
}, | ||
"definitions": { | ||
"EntityInformationElement": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"uuid": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"data": { | ||
"type": "object", | ||
"title": "Entity Data", | ||
"description": "Object containing entity data (https://minecraft.fandom.com/wiki/Entity_format#Entity_Format) information. This is only included if URL parameter `includeData=true` is present.", | ||
"examples": [ | ||
{ | ||
"Pos": [ | ||
197.50701490860138, | ||
-2.0, | ||
35.512435215238455 | ||
], | ||
"variant": "minecraft:red", | ||
"HasVisualFire": true, | ||
"Invulnerable": true | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"uuid" | ||
], | ||
"title": "Entity Information Element" | ||
}, | ||
"PosAxis": { | ||
"type": "integer", | ||
"title": "Position Axis", | ||
"description": "Describe x/y/z absolute position of entity", | ||
"examples": [ | ||
-2, | ||
781, | ||
97.44 | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/EntityPatchInstructionElement" | ||
}, | ||
"definitions": { | ||
"EntityPatchInstructionElement": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"uuid" { | ||
"type": "string", | ||
"title": "UUID", | ||
"description": "Universally unique identifier (https://minecraft.fandom.com/wiki/Universally_unique_identifier) of an entity in the world" | ||
}, | ||
"data": { | ||
"type": "object", | ||
"title": "Entity Data", | ||
"description": "Object containing entity data (https://minecraft.fandom.com/wiki/Entity_format#Entity_Format) information", | ||
"examples": [ | ||
{ | ||
"variant": "minecraft:red", | ||
"HasVisualFire": true, | ||
"Invulnerable": true | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"data", | ||
"uuid" | ||
], | ||
"title": "Entity Patch Instruction Element" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-06/schema#", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/EntityPlacementInstructionElement" | ||
}, | ||
"definitions": { | ||
"EntityPlacementInstructionElement": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"title": "Entity ID", | ||
"description": "Any namespaced entity ID", | ||
"examples": [ | ||
"minecraft:cat", | ||
"minecraft:cow", | ||
"minecraft:painting" | ||
] | ||
}, | ||
"x": { | ||
"$ref": "#/definitions/PosAxis" | ||
}, | ||
"y": { | ||
"$ref": "#/definitions/PosAxis" | ||
}, | ||
"z": { | ||
"$ref": "#/definitions/PosAxis" | ||
}, | ||
"data": { | ||
"type": "object", | ||
"title": "Entity Data", | ||
"description": "Object containing entity data (https://minecraft.fandom.com/wiki/Entity_format#Entity_Format) information", | ||
"examples": [ | ||
{ | ||
"variant": "minecraft:red", | ||
"HasVisualFire": true, | ||
"Invulnerable": true | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"data", | ||
"id", | ||
"x", | ||
"y", | ||
"z" | ||
], | ||
"title": "Entity Placement Instruction Element" | ||
}, | ||
"PosAxis": { | ||
"anyOf": [ | ||
{ | ||
"type": "integer", | ||
"description": "Any negative or positive number to represent absolute world coordinates", | ||
"examples": [ | ||
-2, | ||
781, | ||
83.74 | ||
] | ||
}, | ||
{ | ||
"type": "string", | ||
"description": "Any negative or positive number to represent absolute world coordinates, a relative coordinate (https://minecraft.fandom.com/wiki/Coordinates#Relative_world_coordinates) or a local coordinate (https://minecraft.fandom.com/wiki/Coordinates#Local_coordinates)", | ||
"examples": [ | ||
"-2", | ||
"~84", | ||
"^-412", | ||
"~-2.22" | ||
] | ||
} | ||
], | ||
"title": "Position Axis", | ||
"description": "Describe x/y/z placement position for entity. If omitted, axis value defaults to the corresponding axis in the request URL." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.