This repository was archived by the owner on Apr 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMineAPI GC Beta.d.ts
More file actions
155 lines (154 loc) · 7.09 KB
/
MineAPI GC Beta.d.ts
File metadata and controls
155 lines (154 loc) · 7.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
declare const __dir__: string;
declare const __name__: string;
declare class Scope {
constructor(scope: any);
apply: (name: any, ...args: any[]) => void;
applyByArray: (name: any, args: any) => void;
has: (name: any) => any;
get: (name: any) => any;
put: (name: any, method: any) => void;
}
declare const __scope__: Scope;
declare namespace MineAPI {
function getMinecraftCode(): number;
function getEngineConfig(): {
name: string;
api: string;
author: string;
};
function getEngineCode(config: any): number;
function getLanguage(): any;
function requireGlobal(request: any): any;
}
declare namespace ItemCreator {
function defineBlock(id: any, name: any, texture: any, stack: any, destroyed: any, properties: any): void;
function defineItem(id: any, textureName: any, textureData: any, name: any, maxStack: any, properties: any): void;
function defineFoodItem(id: any, textureName: any, textureData: any, saturation: any, name: any, maxStack: any, properties: any): void;
function defineArmor(id: any, textureName: any, textureData: any, name: any, armorTexture: any, shield: any, maxDamage: any, armorType: any, properties: any): void;
function addCraftingRecipe(recipeType: any, properties: any): void;
}
declare enum ScreenType {
start_screen = "start_screen",
hud = "hud_screen",
ingame = "in_game_play_screen",
survival_inv = "survival_inventory_screen",
creative_inv = "creative_inventory_screen",
pause_screen = "pause_screen",
options_screen = "screen_controls_and_settings - touch_tab"
}
declare namespace Interface {
function getContext(): any;
function getDecor(): any;
function getDip(pixels: any): number;
function runFunc(func: any): undefined;
function setSize(view: any, size: any): void;
function setOnTouch(view: any, properties: any): void;
function formatText(text: any): any;
function createToast(text: any, time: any): void;
function createNotification(notification: any): void;
function createButton(layout: any, text: any, properties: any, click: any): undefined;
function createButtonOnDoubleTap(layout: any, text: any, properties: any, click: any): undefined;
function createText(layout: any, text: any, properties: any, click: any): undefined;
function createTextOnDoubleTap(layout: any, text: any, properties: any, click: any): undefined;
function createEditableText(layout: any, hint: any, properties: any): undefined;
function createCheckBox(layout: any, text: any, properties: any, func: any): undefined;
function createSwitch(layout: any, text: any, properties: any, func: any): undefined;
function createToggle(layout: any, text: any, properties: any, func: any): undefined;
function createRadioButton(group: any, text: any, properties: any): undefined;
function createSeekBar(layout: any, max: any, progress: any, properties: any, func: any): undefined;
function createProgressBar(layout: any, max: any, progress: any, properties: any): undefined;
function createRoundProgressBar(layout: any, width: any, height: any, properties: any): undefined;
function createDigitalClock(layout: any, properties: any): undefined;
function createWebViewer(layout: any, address: any): undefined;
function createImageViewer(layout: any, drawable: any): undefined;
function createShareViewer(text: any): void;
function createClipboardService(action: any, text: any): undefined;
function createVibrationService(time: any): void;
function createLinearLayout(orientation: any, properties: any): undefined;
function createScrollableLayout(layout: any, orientation: any, properties: any): undefined;
function createRadioGroup(layout: any, properties: any): undefined;
function createDialogScreen(layout: any, properties: any): undefined;
function createAlertDialogScreen(title: any, properties: any, button: any): undefined;
function createPopupWindow(layout: any, properties: any): undefined;
function createRemover(view: any): void;
function showError(err: any): void;
}
declare namespace MinecraftStyle {
export let Format: string[][];
export function createText_1(layout: any, text: any, properties: any, click: any): undefined;
export { createText_1 as createText };
}
declare namespace Resource {
function readFile(path: any): any;
function decodeImage(path: any): undefined;
function hasResource(path: any): boolean;
}
declare namespace SupportImmersive {
function getScreenWidth(): any;
function getScreenHeight(): any;
}
declare namespace Notification {
function showMessage(title: any, text: any, properties: any, texture: any): void;
function showPrint(title: any, text: any, properties: any, texture: any): void;
}
declare namespace File {
function createFolder(path: any): void;
function readOption(article: any): any;
function decodeFile(bytes: any, path: any): void;
function deleteDir(path: any): void;
function copyFile(file: any, path: any): void;
function readText(file: any, massive: any): string | any[] | null;
function writeBytes(file: any, bytes: any): void;
function writeText(file: any, text: any): void;
function saveData(file: any, article: any, value: any): void;
function loadData(file: any, article: any, base: any): any;
}
declare namespace Internet {
export function getSize(address: any, action: any): void;
export function downloadFile(path: any, address: any): void;
export function readFile_1(address: any, action: any): void;
export { readFile_1 as readFile };
}
declare namespace Sound {
function stop(): void;
function reset(): void;
function pause(): void;
function prepare(): void;
function start(): void;
function totalDurationView(): void;
function milliSecToMinString(mSec: any): string;
function playSoundFromFile(path: any, properties: any): void;
}
declare namespace EntityConstructor {
function createEntity(position: any, type: any, properties: any): any;
function removeEntity(mob: any): void;
function setPlayerCamera(mob: any): void;
function setPosition(prop: any, pos: any): void;
function getDistance(entity: any, entity2: any): number;
function getDistanceInRadius(entity: any, radius: any): void;
function damageHit(halfHearts: any): void;
}
declare namespace Launcher {
function getArch(): any;
function destroy(): void;
function forceCrash(): void;
function clearCapes(): void;
function closeScreen(): void;
function restart(): void;
function setScreen(uid: any): void;
}
declare namespace Handler {
function create(action: any, time: any): void;
function addHook(name: any, action: any): void;
function invokeHook(name: any, ...args: any[]): void;
}
declare namespace Block {
function setCollisionEnabled(id: any, enabled: any): void;
function setStepSound(id: any, soundId: any): void;
}
declare namespace Level {
function getExtraData(x: any, y: any, z: any): number;
function getSpecialId(): number;
function setBiome(x: any, z: any, biome: any): void;
function setExtraData(x: any, y: any, z: any, data: any): void;
}