0.1.4 • Published 6 months ago
@types/mojang-minecraft-server-admin v0.1.4
Installation
npm install --save @types/mojang-minecraft-server-admin
Summary
This package contains type definitions for Minecraft Bedrock Edition script APIs (experimental) (https://docs.microsoft.com/minecraft/creator/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mojang-minecraft-server-admin.
index.d.ts
// Type definitions for Minecraft Bedrock Edition script APIs (experimental) 0.1
// Project: https://docs.microsoft.com/minecraft/creator/
// Definitions by: Jake Shirley <https://github.com/JakeShirley>
// Mike Ammerlaan <https://github.com/mammerla>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* *****************************************************************************
Copyright (c) Microsoft Corporation.
***************************************************************************** */
/**
* This represents a placeholder object that represents a
* secret string. The contents of that string are not available
* to script; this object is just a placeholder.
*/
export class SecretString {
constructor(value: string);
equals(other: SecretString): boolean;
}
/**
* A collection of server secrets defined in dedicated server
* configuration.
*/
export class ServerSecrets {
/**
* A list of available, configured server secrets.
*/
readonly 'names': string[];
/**
* @remarks
* Returns a SecretString that is a placeholder for a secret
* configured in a JSON file. In certain objects, like an
* HttpHeader, this Secret is resolved at the time of execution
* but is not made available to the script environment.
* @param name
*/
get(name: string): SecretString;
protected constructor();
}
/**
* A collection of server variables defined in dedicated server
* configuration.
*/
export class ServerVariables {
/**
* A list of available, configured server variables.
*/
readonly 'names': string[];
/**
* @remarks
* Returns the value of variable that has been configured in a
* dedicated server configuration JSON file.
* @param name
*/
get(name: string): any;
protected constructor();
}
/**
* A globally available object that returns a list of
* dedicated-server configured secrets.
*/
export const secrets: ServerSecrets;
/**
* A globally available object that returns a list of
* dedicated-server configured variables.
*/
export const variables: ServerVariables;
Additional Details
- Last updated: Mon, 16 May 2022 16:31:40 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Jake Shirley, and Mike Ammerlaan.