1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-14 10:27:14 +00:00
bedrock-samples/metadata/script_modules/@minecraft/server-ui_1.3.0.json
Mike Ammerlaan 6e0daa70a8 v1.21.40.3
2024-10-22 09:25:09 -07:00

1300 lines
44 KiB
JSON

{
"classes" : [
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [
{
"details" : null,
"name" : "bodyText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "body",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "text",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
},
{
"details" : {
"default_value" : "null"
},
"name" : "iconPath",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "button",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormData"
}
},
{
"arguments" : [],
"is_constructor" : true,
"name" : "constructor",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "player",
"type" : {
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Player"
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "show",
"privilege" : [
{
"name" : "none"
}
],
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "promise",
"promise_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormResponse"
}
}
},
{
"arguments" : [
{
"details" : null,
"name" : "titleText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "title",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormData"
}
}
],
"name" : "ActionFormData",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormData"
}
},
{
"base_types" : [
{
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormResponse"
}
],
"constants" : [],
"functions" : [],
"name" : "ActionFormResponse",
"properties" : [
{
"is_read_only" : true,
"name" : "selection",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "uint32",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ActionFormResponse"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [],
"name" : "FormResponse",
"properties" : [
{
"is_read_only" : true,
"name" : "cancelationReason",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormCancelationReason"
}
}
},
{
"is_read_only" : true,
"name" : "canceled",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "boolean"
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormResponse"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [
{
"details" : null,
"name" : "bodyText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "body",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "text",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "button1",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "text",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "button2",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormData"
}
},
{
"arguments" : [],
"is_constructor" : true,
"name" : "constructor",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "player",
"type" : {
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Player"
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "show",
"privilege" : [
{
"name" : "none"
}
],
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "promise",
"promise_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormResponse"
}
}
},
{
"arguments" : [
{
"details" : null,
"name" : "titleText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "title",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormData"
}
}
],
"name" : "MessageFormData",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormData"
}
},
{
"base_types" : [
{
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormResponse"
}
],
"constants" : [],
"functions" : [],
"name" : "MessageFormResponse",
"properties" : [
{
"is_read_only" : true,
"name" : "selection",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "uint8",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MessageFormResponse"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [],
"is_constructor" : true,
"name" : "constructor",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "label",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
},
{
"details" : null,
"name" : "options",
"type" : {
"element_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
},
"is_bind_type" : false,
"is_errorable" : false,
"name" : "array"
}
},
{
"details" : {
"default_value" : "null"
},
"name" : "defaultValueIndex",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "int32",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "dropdown",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "player",
"type" : {
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Player"
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "show",
"privilege" : [
{
"name" : "none"
}
],
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "promise",
"promise_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormResponse"
}
}
},
{
"arguments" : [
{
"details" : null,
"name" : "label",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
},
{
"details" : {
"max_value" : 3.402823466385289e+38,
"min_value" : -3.402823466385289e+38
},
"name" : "minimumValue",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "float",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
},
{
"details" : {
"max_value" : 3.402823466385289e+38,
"min_value" : -3.402823466385289e+38
},
"name" : "maximumValue",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "float",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
},
{
"details" : {
"max_value" : 3.402823466385289e+38,
"min_value" : -3.402823466385289e+38
},
"name" : "valueStep",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "float",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
},
{
"details" : {
"default_value" : "null"
},
"name" : "defaultValue",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "float",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "slider",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "submitButtonText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "submitButton",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "label",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
},
{
"details" : null,
"name" : "placeholderText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
},
{
"details" : {
"default_value" : "null"
},
"name" : "defaultValue",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "textField",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "titleText",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "title",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "label",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "RawMessage"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
}
},
{
"details" : {
"default_value" : "null"
},
"name" : "defaultValue",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "boolean"
}
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "toggle",
"privilege" : [
{
"name" : "read_only"
}
],
"return_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
}
],
"name" : "ModalFormData",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormData"
}
},
{
"base_types" : [
{
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormResponse"
}
],
"constants" : [],
"functions" : [],
"name" : "ModalFormResponse",
"properties" : [
{
"is_read_only" : true,
"name" : "formValues",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "optional",
"optional_type" : {
"element_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "variant",
"variant_types" : [
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "boolean"
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "float",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
},
{
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
]
},
"is_bind_type" : false,
"is_errorable" : false,
"name" : "array"
}
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "ModalFormResponse"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [
{
"details" : null,
"name" : "player",
"type" : {
"from_module" : {
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
},
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Player"
}
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "closeAllForms",
"privilege" : [
{
"name" : "none"
}
],
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "undefined"
}
}
],
"name" : "UIManager",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "UIManager"
}
}
],
"constants" : [],
"dependencies" : [
{
"name" : "@minecraft/common",
"uuid" : "77ec12b4-1b2b-4c98-8d34-d1cd63f849d5",
"version" : "1.0.0"
},
{
"name" : "@minecraft/server",
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.3.0"
}
],
"enums" : [
{
"constants" : [
{
"is_read_only" : true,
"is_static" : true,
"name" : "UserBusy",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "UserBusy"
},
{
"is_read_only" : true,
"is_static" : true,
"name" : "UserClosed",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "UserClosed"
}
],
"name" : "FormCancelationReason"
},
{
"constants" : [
{
"is_read_only" : true,
"is_static" : true,
"name" : "MalformedResponse",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "MalformedResponse"
},
{
"is_read_only" : true,
"is_static" : true,
"name" : "PlayerQuit",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "PlayerQuit"
},
{
"is_read_only" : true,
"is_static" : true,
"name" : "ServerShutdown",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "ServerShutdown"
}
],
"name" : "FormRejectReason"
}
],
"errors" : [
{
"name" : "FormRejectError",
"properties" : [
{
"is_read_only" : true,
"name" : "reason",
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormRejectReason"
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "FormRejectError"
}
}
],
"functions" : [],
"interfaces" : [],
"minecraft_version" : "1.21.40-beta.3",
"module_type" : "script",
"name" : "@minecraft/server-ui",
"objects" : [
{
"is_read_only" : true,
"is_static" : true,
"name" : "uiManager",
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "UIManager"
}
}
],
"type_aliases" : [],
"uuid" : "2bd50a27-ab5f-4f40-a596-3641627c635e",
"version" : "1.3.0"
}