@minecraft/server-ui 1.0.0-beta.00001b41 → 1.0.0-beta.11940b23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/tests.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-ui",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.11940b23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "1.0.0-beta.
|
|
16
|
+
"@minecraft/server": "1.0.0-beta.11940b23"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|
package/tests.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
2
|
import * as mc from '@minecraft/server';
|
|
2
3
|
|
|
3
|
-
export async function showActionForm(log: (message: string, status?: number) => void) {
|
|
4
|
+
export async function showActionForm(log: (message: string, status?: number) => void, targetLocation: mc.Location) {
|
|
4
5
|
const players = mc.world.getPlayers();
|
|
5
6
|
|
|
6
7
|
const playerList = Array.from(players);
|
|
@@ -25,7 +26,7 @@ export async function showActionForm(log: (message: string, status?: number) =>
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
export function showFavoriteMonth(log: (message: string, status?: number) => void) {
|
|
29
|
+
export function showFavoriteMonth(log: (message: string, status?: number) => void, targetLocation: mc.Location) {
|
|
29
30
|
const players = mc.world.getPlayers();
|
|
30
31
|
|
|
31
32
|
const playerList = Array.from(players);
|
|
@@ -157,7 +158,7 @@ export default class SampleManager {
|
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
import * as mcui from '@minecraft/server-ui';
|
|
161
|
+
import * as mcui from '@minecraft/server-ui'; // keep in for ui samples
|
|
161
162
|
|
|
162
163
|
const mojangMinecraftUIFuncs: {
|
|
163
164
|
[name: string]: Array<(log: (message: string, status?: number) => void, location: mc.Location) => void>;
|