1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-02-25 12:29:09 +00:00
2025-02-19 09:06:29 -08:00

410 lines
11 KiB
JSON

{
"classes" : [
{
"base_types" : [],
"constants" : [],
"functions" : [],
"name" : "CommandResult",
"properties" : [
{
"get_privilege" : [
{
"name" : "read_only"
}
],
"is_baked" : false,
"is_read_only" : true,
"name" : "successCount",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "int32",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "CommandResult"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [
{
"details" : null,
"name" : "commandString",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
}
],
"call_privilege" : [
{
"name" : "read_only"
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "runCommandAsync",
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "promise",
"promise_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "CommandResult"
}
}
}
],
"name" : "Dimension",
"properties" : [
{
"get_privilege" : [
{
"name" : "read_only"
}
],
"is_baked" : true,
"is_read_only" : true,
"name" : "id",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Dimension"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [
{
"details" : null,
"name" : "commandString",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
}
],
"call_privilege" : [
{
"name" : "read_only"
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "runCommandAsync",
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "promise",
"promise_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "CommandResult"
}
}
}
],
"name" : "Entity",
"properties" : [
{
"get_privilege" : [
{
"name" : "read_only"
}
],
"is_baked" : true,
"is_read_only" : true,
"name" : "id",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
},
{
"get_privilege" : [
{
"name" : "read_only"
}
],
"is_baked" : true,
"is_read_only" : true,
"name" : "typeId",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Entity"
}
},
{
"base_types" : [],
"constants" : [
{
"is_read_only" : true,
"is_static" : true,
"name" : "nether",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "minecraft:nether"
},
{
"is_read_only" : true,
"is_static" : true,
"name" : "overworld",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "minecraft:overworld"
},
{
"is_read_only" : true,
"is_static" : true,
"name" : "theEnd",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
},
"value" : "minecraft:the_end"
}
],
"functions" : [],
"name" : "MinecraftDimensionTypes",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "MinecraftDimensionTypes"
}
},
{
"base_types" : [
{
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Entity"
}
],
"constants" : [],
"functions" : [],
"name" : "Player",
"properties" : [
{
"get_privilege" : [
{
"name" : "read_only"
}
],
"is_baked" : false,
"is_read_only" : true,
"name" : "name",
"type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "string"
}
}
],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Player"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [
{
"details" : null,
"name" : "callback",
"type" : {
"closure_type" : {
"argument_types" : [],
"return_type" : {
"is_bind_type" : false,
"is_errorable" : true,
"name" : "undefined"
}
},
"is_bind_type" : false,
"is_errorable" : false,
"name" : "closure"
}
}
],
"call_privilege" : [
{
"name" : "read_only"
},
{
"name" : "early_execution"
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "run",
"return_type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "uint32",
"valid_range" : {
"max" : 2147483647,
"min" : -2147483648
}
}
}
],
"name" : "System",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "System"
}
},
{
"base_types" : [],
"constants" : [],
"functions" : [
{
"arguments" : [],
"call_privilege" : [
{
"name" : "read_only"
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "getAllPlayers",
"return_type" : {
"element_type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "Player"
},
"is_bind_type" : false,
"is_errorable" : true,
"name" : "array"
}
},
{
"arguments" : [
{
"details" : null,
"name" : "dimensionId",
"type" : {
"is_bind_type" : false,
"is_errorable" : false,
"name" : "string"
}
}
],
"call_privilege" : [
{
"name" : "read_only"
}
],
"is_constructor" : false,
"is_static" : false,
"name" : "getDimension",
"return_type" : {
"is_bind_type" : true,
"is_errorable" : true,
"name" : "Dimension"
}
}
],
"name" : "World",
"properties" : [],
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "World"
}
}
],
"constants" : [],
"dependencies" : [
{
"name" : "@minecraft/common",
"uuid" : "77ec12b4-1b2b-4c98-8d34-d1cd63f849d5",
"versions" : [
{
"version" : "1.0.0"
}
]
}
],
"enums" : null,
"errors" : [],
"functions" : [],
"interfaces" : [],
"minecraft_version" : "1.21.70-beta.24",
"module_type" : "script",
"name" : "@minecraft/server",
"objects" : [
{
"is_read_only" : true,
"is_static" : true,
"name" : "system",
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "System"
}
},
{
"is_read_only" : true,
"is_static" : true,
"name" : "world",
"type" : {
"is_bind_type" : true,
"is_errorable" : false,
"name" : "World"
}
}
],
"type_aliases" : [],
"uuid" : "b26a4d4c-afdf-4690-88f8-931846312678",
"version" : "1.0.0"
}