前言
這是個沒啥用的前置插件,沒有直接用途,依賴BDSJSRunner。
[LINE][/LINE]
用法
載入API
API接口定義 (INCOMPLETE DUE TO THE MAXIMUM CHARACTER COUNT OF 10k)
ABLE]
備註 Typing > before javascript in the server console runs the script
這是個沒啥用的前置插件,沒有直接用途,依賴BDSJSRunner。
[LINE][/LINE]
用法
載入API
runScript(getShareData("loadPneuAPI"))
API接口定義 (INCOMPLETE DUE TO THE MAXIMUM CHARACTER COUNT OF 10k)
類 | 函数 | 描述 | 參數 | 返回值 | 例子 |
---|---|---|---|---|---|
/ | atob | 轉換base64碼至字符串 | 字符串: encodedString | 轉換完的字符串 |
JavaScript:
|
/ | bota | 轉換字符串至base64碼 | 字符串: string | 轉換完的base64碼 |
JavaScript:
|
/ | generateId | 使用當前時間生成ID | / | 生成的ID |
JavaScript:
|
/ | setInterval | 定時執行一條指令 | 字符串/函数: code, 整型: millisec | / |
JavaScript:
|
JSON (static) | escapeAndParse | 轉換帶留言和隔行的字符串至JSON | 字符串: text, 函数: ?reviver | 轉換完的JSON |
JavaScript:
|
Object | serialize | 轉換物件至單行字符串 | / | 轉換完的單行字符串 |
JavaScript:
|
Command | / | 解析指令字符串 | 字符串: ?command | 解析完的指令和參數 |
JavaScript:
|
Command (static) | registerCommand | 字符串: method, 函数: action, 整型 : ?requiredPermissionLevel, 字符串: ?description | |||
Command (static) | registerAlias | 字符串: alias, 字符串: originalMethod | |||
Command (static) | setCommandRequiredPermissionLevel | (only supports increasing permission level for vanilla commands) | |||
SimpleForm | / | 字符串: ?title, 字符串: ?content, 數組: ?buttons | |||
SimpleForm | toString | / | |||
SimpleForm | sendToPlayer | ||||
SimpleForm | setTitle | ||||
SimpleForm | getTitle | ||||
SimpleForm | setContent | ||||
SimpleForm | getContent | ||||
SimpleForm | addButton | ||||
ModalForm | / | ||||
ModalForm | toString | ||||
ModalForm | sendToPlayer | ||||
ModalForm | setTitle | ||||
ModalForm | getTitle | ||||
ModalForm | setContent | ||||
ModalForm | getContent | ||||
ModalForm | setButton1 | ||||
ModalForm | getButton1 | ||||
ModalForm | setButton2 | ||||
ModalForm | getButton2 | ||||
CustomForm | / | ||||
CustomForm | toString | ||||
CustomForm | sendToPlayer | ||||
CustomForm | setTitle | ||||
CustomForm | getTitle | ||||
CustomForm | addContent | ||||
CustomForm | addLabel | ||||
CustomForm | addToggle | ||||
CustomForm | addSlider | ||||
CustomForm | addStepSlider | ||||
CustomForm | addDropdown | ||||
CustomForm | addInput | ||||
NBT (static) | createTag | ||||
NBT (static) | parseFromJSON | ||||
NBT (static) | parseFromNBTString | ||||
ByteTag | / | ||||
ByteTag | getName | ||||
ByteTag | setName | ||||
ByteTag | getValue | ||||
ByteTag | setValue | ||||
ByteTag | getType | ||||
ByteTag | toString | ||||
ByteTag | parseToJSON | ||||
... | |||||
Player | / | ||||
Player (static) | getPlayernameByUUID | ||||
Player (static) | getPlayernameByXUID | ||||
Player (static) | getUUIDByPlayername | ||||
Player (static) | getUUIDByXUID | ||||
Player (static) | getXUIDByPlayername | ||||
Player (static) | getXUIDByUUID | ||||
Player | getAbility | ||||
Player | setAbility | ||||
Player | getAttribute | ||||
Player | setAttribute | ||||
Player | getMaxAttribute | ||||
Player | setMaxAttribute | ||||
Player | getDimension | ||||
Player | getPosition | ||||
Player | getDisplayPosition | ||||
Player | getDisplayName | ||||
Player | setDisplayName | ||||
Player | getOriginalName |
備註 Typing > before javascript in the server console runs the script