@block_factory/lib 0.0.5 → 0.0.8
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/_module/BlockFactory.ts +10 -20
- package/_module/util/Command.ts +1 -9
- package/_module/util/Forms/Form.ts +5 -31
- package/_module/util/Forms/FormAction.ts +2 -1
- package/_module/util/Forms/FormMessage.ts +2 -1
- package/_module/util/Forms/FormModal.ts +9 -10
- package/_module/util/Forms/FormRegistry.ts +20 -23
- package/_module/util/Forms/IForm.ts +31 -0
- package/_module/util/Globals.ts +26 -0
- package/_module/util/ISystem.ts +58 -0
- package/_module/util/IVector.ts +420 -0
- package/_module/util/Math.ts +2 -0
- package/_module/util/Navigation.ts +130 -0
- package/_module/util/Signal.ts +71 -7
- package/_module/util/TempLeaker.ts +137 -0
- package/_module/util/Wrapper/IEntity.ts +93 -25
- package/_module/util/Wrapper/IItemStack.ts +63 -0
- package/_module/util/Wrapper/IPlayer.ts +73 -29
- package/_module/util/Wrapper/_Common.ts +130 -0
- package/_module/util/Wrapper/{Container.ts → _Container.ts} +5 -5
- package/index.js +3911 -521
- package/package.json +10 -4
- package/typedoc.json +6 -0
- package/_module/Framework/EntityTasks.ts +0 -203
- package/_module/Framework/Threads.ts +0 -72
- package/_module/Framework/_INIT.ts +0 -39
- package/_module/Types.ts +0 -10
- package/_module/util/System.ts +0 -21
- package/_module/util/Vector.ts +0 -388
- package/_types/_module/BlockFactory.d.ts +0 -19
- package/_types/_module/BlockFactory.d.ts.map +0 -1
- package/_types/_module/Framework/EntityTasks.d.ts +0 -40
- package/_types/_module/Framework/EntityTasks.d.ts.map +0 -1
- package/_types/_module/Framework/Threads.d.ts +0 -22
- package/_types/_module/Framework/Threads.d.ts.map +0 -1
- package/_types/_module/Framework/_INIT.d.ts +0 -19
- package/_types/_module/Framework/_INIT.d.ts.map +0 -1
- package/_types/_module/Types.d.ts +0 -10
- package/_types/_module/Types.d.ts.map +0 -1
- package/_types/_module/util/Command.d.ts +0 -92
- package/_types/_module/util/Command.d.ts.map +0 -1
- package/_types/_module/util/Forms/Form.d.ts +0 -12
- package/_types/_module/util/Forms/Form.d.ts.map +0 -1
- package/_types/_module/util/Forms/FormAction.d.ts +0 -73
- package/_types/_module/util/Forms/FormAction.d.ts.map +0 -1
- package/_types/_module/util/Forms/FormMessage.d.ts +0 -24
- package/_types/_module/util/Forms/FormMessage.d.ts.map +0 -1
- package/_types/_module/util/Forms/FormModal.d.ts +0 -66
- package/_types/_module/util/Forms/FormModal.d.ts.map +0 -1
- package/_types/_module/util/Forms/FormRegistry.d.ts +0 -12
- package/_types/_module/util/Forms/FormRegistry.d.ts.map +0 -1
- package/_types/_module/util/Math.d.ts +0 -20
- package/_types/_module/util/Math.d.ts.map +0 -1
- package/_types/_module/util/RawText.d.ts +0 -60
- package/_types/_module/util/RawText.d.ts.map +0 -1
- package/_types/_module/util/Signal.d.ts +0 -11
- package/_types/_module/util/Signal.d.ts.map +0 -1
- package/_types/_module/util/System.d.ts +0 -4
- package/_types/_module/util/System.d.ts.map +0 -1
- package/_types/_module/util/Vector.d.ts +0 -212
- package/_types/_module/util/Vector.d.ts.map +0 -1
- package/_types/_module/util/Wrapper/Container.d.ts +0 -9
- package/_types/_module/util/Wrapper/Container.d.ts.map +0 -1
- package/_types/_module/util/Wrapper/IEntity.d.ts +0 -12
- package/_types/_module/util/Wrapper/IEntity.d.ts.map +0 -1
- package/_types/_module/util/Wrapper/IPlayer.d.ts +0 -13
- package/_types/_module/util/Wrapper/IPlayer.d.ts.map +0 -1
- package/_types/index.d.ts +0 -3
- package/_types/index.d.ts.map +0 -1
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { IForm } from "./Form";
|
|
2
|
-
import { Player, RawMessage } from "@minecraft/server";
|
|
3
|
-
import { ActionFormData, FormCancelationReason } from "@minecraft/server-ui";
|
|
4
|
-
/**
|
|
5
|
-
* Constructor type for ActionForm classes.
|
|
6
|
-
* Used for sub-form navigation and chaining.
|
|
7
|
-
*/
|
|
8
|
-
export type ActionFormCtor<T extends IActionFormData = IActionFormData> = new () => T;
|
|
9
|
-
/**
|
|
10
|
-
* Options used when adding a button to an ActionForm.
|
|
11
|
-
*/
|
|
12
|
-
export interface IButtonOptions {
|
|
13
|
-
/**
|
|
14
|
-
* Logical identifier returned in the form response.
|
|
15
|
-
* If omitted, the numeric button index is used.
|
|
16
|
-
*/
|
|
17
|
-
id?: string | number;
|
|
18
|
-
/**
|
|
19
|
-
* Optional icon path from a resource pack.
|
|
20
|
-
*/
|
|
21
|
-
iconPath?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Form class to open when this button is selected.
|
|
24
|
-
*/
|
|
25
|
-
subForm?: ActionFormCtor;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the sub-form is allowed to return to this form.
|
|
28
|
-
* Defaults to true.
|
|
29
|
-
*/
|
|
30
|
-
allowReturn?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Normalized response object returned by IActionFormData.
|
|
34
|
-
*/
|
|
35
|
-
export interface IActionFormResponse {
|
|
36
|
-
/**Reason the form was canceled, if applicable.*/
|
|
37
|
-
readonly cancelationReason?: FormCancelationReason;
|
|
38
|
-
/** Whether the form was canceled by the player.*/
|
|
39
|
-
readonly canceled: boolean;
|
|
40
|
-
/**Raw button index selected by the player.*/
|
|
41
|
-
readonly selection?: number;
|
|
42
|
-
/**Logical button id associated with the selection.*/
|
|
43
|
-
readonly id?: string | number;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Abstract base class for ActionForm-based menus.
|
|
47
|
-
*
|
|
48
|
-
* Provides:
|
|
49
|
-
* - Button id mapping
|
|
50
|
-
* - Occupied player handling
|
|
51
|
-
* - Sub-form chaining with automatic Back navigation
|
|
52
|
-
* - Normalized response objects
|
|
53
|
-
*/
|
|
54
|
-
export declare abstract class IActionFormData extends IForm {
|
|
55
|
-
protected form: ActionFormData;
|
|
56
|
-
private _buttons;
|
|
57
|
-
private _nextButtonIndex;
|
|
58
|
-
private _id;
|
|
59
|
-
protected abstract build(player: Player): void;
|
|
60
|
-
protected abstract onSubmit(player: Player, response: IActionFormResponse): void;
|
|
61
|
-
protected onCancel?(player: Player, response: IActionFormResponse): void;
|
|
62
|
-
title(titleText: RawMessage | string): this;
|
|
63
|
-
body(bodyText: RawMessage | string): this;
|
|
64
|
-
divider(): this;
|
|
65
|
-
header(text: RawMessage | string): this;
|
|
66
|
-
label(text: RawMessage | string): this;
|
|
67
|
-
button(text: RawMessage | string, options?: IButtonOptions): this;
|
|
68
|
-
show(player: Player): Promise<IActionFormResponse>;
|
|
69
|
-
protected _showChained(player: Player, returnStack: ActionFormCtor[]): Promise<IActionFormResponse>;
|
|
70
|
-
private _wrapResponse;
|
|
71
|
-
private _showInternal;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=FormAction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormAction.d.ts","sourceRoot":"","sources":["../../../../_module/util/Forms/FormAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAsB,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAIjG;;;GAGG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,UAAU,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAQD;;GAEG;AACH,MAAM,WAAW,mBAAmB;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AAc,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIzG,OAAO,CAAC,aAAa;YASP,aAAa;CAwD9B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IForm } from "./Form";
|
|
2
|
-
import { Player, RawMessage } from "@minecraft/server";
|
|
3
|
-
import { MessageFormData, MessageFormResponse } from "@minecraft/server-ui";
|
|
4
|
-
/**
|
|
5
|
-
* Abstract base class for MessageFormData.
|
|
6
|
-
*
|
|
7
|
-
* Provides:
|
|
8
|
-
* - occupied player handling
|
|
9
|
-
*/
|
|
10
|
-
export type IMessageFormResponse = MessageFormResponse;
|
|
11
|
-
export declare abstract class IMessageFormData extends IForm {
|
|
12
|
-
protected form: MessageFormData;
|
|
13
|
-
private _id;
|
|
14
|
-
protected abstract build(player: Player): void;
|
|
15
|
-
protected abstract onSubmit(player: Player, response: IMessageFormResponse): void;
|
|
16
|
-
protected onCancel?(player: Player, response: IMessageFormResponse): void;
|
|
17
|
-
title(titleText: RawMessage | string): this;
|
|
18
|
-
body(bodyText: RawMessage | string): this;
|
|
19
|
-
button0(text: RawMessage | string, id?: string | number): this;
|
|
20
|
-
button1(text: RawMessage | string, id?: string | number): this;
|
|
21
|
-
show(player: Player): Promise<IMessageFormResponse>;
|
|
22
|
-
private _showInternal;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=FormMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormMessage.d.ts","sourceRoot":"","sources":["../../../../_module/util/Forms/FormMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EACH,eAAe,EACf,mBAAmB,EACtB,MAAM,sBAAsB,CAAC;AAE9B;;;;;GAKG;AAEH,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,8BAAsB,gBAAiB,SAAQ,KAAK;IAChD,SAAS,CAAC,IAAI,EAAE,eAAe,CAAyB;IAExD,OAAO,CAAC,GAAG,CAAsB;IAEjC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAE9C,SAAS,CAAC,QAAQ,CAAC,QAAQ,CACvB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,oBAAoB,GAC/B,IAAI;IAEP,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAElE,KAAK,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI;IAS3C,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI;IAIzC,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAC,EAAE,GAAE,MAAM,GAAG,MAAU,GAAG,IAAI;IAKhE,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAC,EAAE,GAAE,MAAM,GAAG,MAAU,GAAG,IAAI;IAK1D,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;YAgBlD,aAAa;CAiB9B"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { IForm } from "./Form";
|
|
2
|
-
import { Player, RawMessage } from "@minecraft/server";
|
|
3
|
-
import { ModalFormData, FormCancelationReason } from "@minecraft/server-ui";
|
|
4
|
-
export type FormValue = string | boolean | number | undefined;
|
|
5
|
-
/** Normalized response for Modal forms */
|
|
6
|
-
export interface IModalFormResponse {
|
|
7
|
-
/**Reason the form was canceled, if applicable.*/
|
|
8
|
-
readonly cancelationReason?: FormCancelationReason;
|
|
9
|
-
/** Whether the form was canceled by the player.*/
|
|
10
|
-
readonly canceled: boolean;
|
|
11
|
-
/** Raw values array from the form */
|
|
12
|
-
readonly formValues?: FormValue[];
|
|
13
|
-
/** Mapped values by widget id */
|
|
14
|
-
readonly widget?: Map<string, FormValue>;
|
|
15
|
-
}
|
|
16
|
-
/** Options for each widget type */
|
|
17
|
-
export interface ITextFieldOptions {
|
|
18
|
-
id: string;
|
|
19
|
-
placeholder: string | RawMessage;
|
|
20
|
-
defaultValue?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IDropdownOptions {
|
|
23
|
-
id: string;
|
|
24
|
-
choices: string[];
|
|
25
|
-
defaultValueIndex?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface ISliderOptions {
|
|
28
|
-
id: string;
|
|
29
|
-
min: number;
|
|
30
|
-
max: number;
|
|
31
|
-
step: number;
|
|
32
|
-
defaultValue?: number;
|
|
33
|
-
}
|
|
34
|
-
export interface IToggleOptions {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultValue?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Abstract base class for ModalFormData-based menus.
|
|
40
|
-
*
|
|
41
|
-
* Provides:
|
|
42
|
-
* - Occupied player handling
|
|
43
|
-
* - Widget id mapping into a Map<string, FormValue>
|
|
44
|
-
* - Normalized response object
|
|
45
|
-
*/
|
|
46
|
-
export declare abstract class IModalFormData extends IForm {
|
|
47
|
-
protected form: ModalFormData;
|
|
48
|
-
private _id;
|
|
49
|
-
private _widgetMeta;
|
|
50
|
-
protected abstract build(player: Player): void;
|
|
51
|
-
protected abstract onSubmit(player: Player, response: IModalFormResponse): void;
|
|
52
|
-
protected onCancel?(player: Player, response: IModalFormResponse): void;
|
|
53
|
-
title(titleText: RawMessage | string): this;
|
|
54
|
-
divider(): this;
|
|
55
|
-
header(text: RawMessage | string): this;
|
|
56
|
-
label(text: RawMessage | string): this;
|
|
57
|
-
textField(label: string | RawMessage, options: ITextFieldOptions): this;
|
|
58
|
-
dropdown(label: string | RawMessage, options: IDropdownOptions): this;
|
|
59
|
-
slider(label: string | RawMessage, options: ISliderOptions): this;
|
|
60
|
-
toggle(label: string | RawMessage, options: IToggleOptions): this;
|
|
61
|
-
show(player: Player): Promise<IModalFormResponse>;
|
|
62
|
-
private _wrapResponse;
|
|
63
|
-
private _mapValues;
|
|
64
|
-
private _showInternal;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=FormModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormModal.d.ts","sourceRoot":"","sources":["../../../../_module/util/Forms/FormModal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EACH,aAAa,EAEb,qBAAqB,EAKxB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9D,0CAA0C;AAC1C,MAAM,WAAW,kBAAkB;IAC/B,iDAAiD;IACjD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IACnD,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAClC,iCAAiC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAC5C;AAED,mCAAmC;AACnC,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AACD,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,GA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M,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAc9D,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,UAAU;YAYJ,aAAa;CAoB9B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IActionFormData } from "./FormAction";
|
|
2
|
-
import { IModalFormData } from "./FormModal";
|
|
3
|
-
import { IMessageFormData } from "./FormMessage";
|
|
4
|
-
type AnyShowableForm = IActionFormData | IModalFormData | IMessageFormData;
|
|
5
|
-
type AnyShowableCtor = new () => AnyShowableForm;
|
|
6
|
-
export interface IFormRegistration {
|
|
7
|
-
itemId: string;
|
|
8
|
-
formCtor: AnyShowableCtor;
|
|
9
|
-
}
|
|
10
|
-
export declare function RegisterForm(itemId: string): <T extends AnyShowableCtor>(formCtor: T) => void;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=FormRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormRegistry.d.ts","sourceRoot":"","sources":["../../../../_module/util/Forms/FormRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,KAAK,eAAe,GAAG,eAAe,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAC3E,KAAK,eAAe,GAAG,UAAU,eAAe,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,eAAe,CAAC;CAC7B;AAID,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,IACtB,CAAC,SAAS,eAAe,EAAE,UAAU,CAAC,KAAG,IAAI,CAKjE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Vector2, Vector3 } from "@minecraft/server";
|
|
2
|
-
export declare namespace MathUtils {
|
|
3
|
-
/** Clamps a number between a minimum and maximum value */
|
|
4
|
-
function clamp(value: number, min: number, max: number): number;
|
|
5
|
-
/** Linearly interpolates between two values based on a given factor (0 to 1) */
|
|
6
|
-
function lerp(start: number, end: number, factor: number): number;
|
|
7
|
-
/** Converts degrees to radians */
|
|
8
|
-
function toRadians(degrees: number): number;
|
|
9
|
-
/** Converts radians to degrees */
|
|
10
|
-
function toDegrees(radians: number): number;
|
|
11
|
-
function fromRotation(rotation: Vector2): Vector3;
|
|
12
|
-
function rotateOffset(offset: Vector3, yawDegrees: number): Vector3;
|
|
13
|
-
/** Calculates the distance between two points in 3D space */
|
|
14
|
-
function distance3D(pointA: Vector3, pointB: Vector3): number;
|
|
15
|
-
/** Generates a random integer between min and max (inclusive) */
|
|
16
|
-
function randomInt(min: number, max: number): number;
|
|
17
|
-
/** Generates a random float between min and max */
|
|
18
|
-
function randomFloat(min: number, max: number): number;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=Math.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Math.d.ts","sourceRoot":"","sources":["../../../_module/util/Math.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAErD,yBAAiB,SAAS,CAAC;IACxB,0DAA0D;IACzD,SAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;IAED,gFAAgF;IAChF,SAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE;IAED,kCAAkC;IAClC,SAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjD;IAED,kCAAkC;IAClC,SAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjD;IAED,SAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAcvD;IAED,SAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CASzE;IAED,6DAA6D;IAC7D,SAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAKnE;IAED,iEAAiE;IACjE,SAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;IAED,mDAAmD;IACnD,SAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5D;CACJ"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { RawMessage } from '@minecraft/server';
|
|
2
|
-
/**
|
|
3
|
-
* Utility helpers for building rawtext messages.
|
|
4
|
-
*/
|
|
5
|
-
export declare class RawText {
|
|
6
|
-
/**
|
|
7
|
-
* Creates a simple text component.
|
|
8
|
-
* @param value - The text value.
|
|
9
|
-
* @returns Text component object.
|
|
10
|
-
*/
|
|
11
|
-
static text(value: string): RawMessage;
|
|
12
|
-
/**
|
|
13
|
-
* Creates a translation component with optional 'with' parameters.
|
|
14
|
-
* @param key - The translation key.
|
|
15
|
-
* @param params - The optional parameters for translation.
|
|
16
|
-
* @returns Translation component object.
|
|
17
|
-
*/
|
|
18
|
-
static translate(key: string, ...params: string[]): RawMessage;
|
|
19
|
-
/**
|
|
20
|
-
* Creates a score component.
|
|
21
|
-
* @param name - The entity's name whose score is being displayed.
|
|
22
|
-
* @param objective - The name of the score objective.
|
|
23
|
-
* @returns Score component object.
|
|
24
|
-
*/
|
|
25
|
-
static score(name: string, objective: string): RawMessage;
|
|
26
|
-
/**
|
|
27
|
-
* Wraps various text components into a rawtext structure.
|
|
28
|
-
* @param rawText - The raw text components.
|
|
29
|
-
* @returns Raw text object.
|
|
30
|
-
*/
|
|
31
|
-
static message(...rawText: RawMessage[]): RawMessage;
|
|
32
|
-
/**
|
|
33
|
-
* Common formatting and color codes.
|
|
34
|
-
*/
|
|
35
|
-
static FORMAT: {
|
|
36
|
-
DarkRed: string;
|
|
37
|
-
Red: string;
|
|
38
|
-
Gold: string;
|
|
39
|
-
Yellow: string;
|
|
40
|
-
Green: string;
|
|
41
|
-
Lime: string;
|
|
42
|
-
Aqua: string;
|
|
43
|
-
Cyan: string;
|
|
44
|
-
DarkBlue: string;
|
|
45
|
-
Blue: string;
|
|
46
|
-
Magenta: string;
|
|
47
|
-
Purple: string;
|
|
48
|
-
White: string;
|
|
49
|
-
Gray: string;
|
|
50
|
-
DarkGray: string;
|
|
51
|
-
Black: string;
|
|
52
|
-
Obfuscated: string;
|
|
53
|
-
Bold: string;
|
|
54
|
-
StrikeThrough: string;
|
|
55
|
-
Italic: string;
|
|
56
|
-
Reset: string;
|
|
57
|
-
NewLine: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=RawText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RawText.d.ts","sourceRoot":"","sources":["../../../_module/util/RawText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,qBAAa,OAAO;IAChB;;;;OAIG;WACW,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAI7C;;;;;OAKG;WACW,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU;IAOrE;;;;;OAKG;WACW,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU;IAIhE;;;;OAIG;WACW,OAAO,CAAC,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU;IAI3D;;OAEG;IACH,OAAc,MAAM;;;;;;;;;;;;;;;;;;;;;;;MAuBnB;CACJ"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type Callback<T> = (data: T) => void;
|
|
2
|
-
export declare class Signal<T = void> {
|
|
3
|
-
private readonly listeners;
|
|
4
|
-
get count(): number;
|
|
5
|
-
connect(callback: Callback<T>): void;
|
|
6
|
-
disconnect(callback: Callback<T>): boolean;
|
|
7
|
-
clear(): void;
|
|
8
|
-
isConnected(callback: Callback<T>): boolean;
|
|
9
|
-
emit(data: T): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=Signal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Signal.d.ts","sourceRoot":"","sources":["../../../_module/util/Signal.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;AAE5C,qBAAa,MAAM,CAAC,CAAC,GAAG,IAAI;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B;IAEpD,IAAW,KAAK,IAAI,MAAM,CAEzB;IAEM,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;IAIpC,UAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO;IAI1C,KAAK,IAAI,IAAI;IAIb,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO;IAI3C,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;CAO7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"System.d.ts","sourceRoot":"","sources":["../../../_module/util/System.ts"],"names":[],"mappings":"AAAA,yBAAiB,MAAM,CAAC;IACb,MAAM,gBAAgB,GAAK,WAAW,GAAG,EAAE,QAAQ,GAAG,KAiBnD,GACR,CAAA;CACL"}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 2D vector utility class.
|
|
3
|
-
* Provides common vector math operations for 2D space.
|
|
4
|
-
*/
|
|
5
|
-
export declare class Vec2 {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
/** Constant zero vector (0, 0) */
|
|
9
|
-
static ZERO: Vec2;
|
|
10
|
-
/** Up direction (0, 1) */
|
|
11
|
-
static UP: Vec2;
|
|
12
|
-
/** Down direction (0, -1) */
|
|
13
|
-
static DOWN: Vec2;
|
|
14
|
-
/** Left direction (-1, 0) */
|
|
15
|
-
static LEFT: Vec2;
|
|
16
|
-
/** Right direction (1, 0) */
|
|
17
|
-
static RIGHT: Vec2;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new Vec2.
|
|
20
|
-
* @param x X component
|
|
21
|
-
* @param y Y component
|
|
22
|
-
*/
|
|
23
|
-
constructor(x: number, y: number);
|
|
24
|
-
/**
|
|
25
|
-
* Adds a vector or scalar to a vector.
|
|
26
|
-
* @param a Base vector
|
|
27
|
-
* @param b Vector or scalar to add
|
|
28
|
-
*/
|
|
29
|
-
static add(a: Vec2, b: Vec2 | number): Vec2;
|
|
30
|
-
/**
|
|
31
|
-
* Subtracts a vector or scalar from a vector.
|
|
32
|
-
* @param a Base vector
|
|
33
|
-
* @param b Vector or scalar to subtract
|
|
34
|
-
*/
|
|
35
|
-
static subtract(a: Vec2, b: Vec2 | number): Vec2;
|
|
36
|
-
/**
|
|
37
|
-
* Multiplies a vector by another vector (component-wise) or scalar.
|
|
38
|
-
*/
|
|
39
|
-
static multiply(a: Vec2, b: Vec2 | number): Vec2;
|
|
40
|
-
/**
|
|
41
|
-
* Divides a vector by another vector (component-wise) or scalar.
|
|
42
|
-
*/
|
|
43
|
-
static divide(a: Vec2, b: Vec2 | number): Vec2;
|
|
44
|
-
/**
|
|
45
|
-
* Linearly interpolates between two vectors.
|
|
46
|
-
* @param t Interpolation factor (0–1)
|
|
47
|
-
*/
|
|
48
|
-
static lerp(a: Vec2, b: Vec2, t: number): Vec2;
|
|
49
|
-
/**
|
|
50
|
-
* Clamps a vector between a minimum and maximum vector.
|
|
51
|
-
*/
|
|
52
|
-
static clamp(v: Vec2, min: Vec2, max: Vec2): Vec2;
|
|
53
|
-
/**
|
|
54
|
-
* Dot product of two vectors.
|
|
55
|
-
*/
|
|
56
|
-
static dot(a: Vec2, b: Vec2): number;
|
|
57
|
-
/**
|
|
58
|
-
* Length (magnitude) of a vector.
|
|
59
|
-
*/
|
|
60
|
-
static magnitude(a: Vec2): number;
|
|
61
|
-
/**
|
|
62
|
-
* Returns a normalized (unit length) vector.
|
|
63
|
-
* If magnitude is zero, returns (0, 0).
|
|
64
|
-
*/
|
|
65
|
-
static normalize(a: Vec2): Vec2;
|
|
66
|
-
/**
|
|
67
|
-
* Distance between two vectors.
|
|
68
|
-
*/
|
|
69
|
-
static distance(a: Vec2, b: Vec2): number;
|
|
70
|
-
/**
|
|
71
|
-
* Returns the negated vector.
|
|
72
|
-
*/
|
|
73
|
-
static negate(a: Vec2): Vec2;
|
|
74
|
-
/**
|
|
75
|
-
* Checks exact equality between two vectors.
|
|
76
|
-
*/
|
|
77
|
-
static equals(a: Vec2, b: Vec2): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Checks approximate equality between two vectors.
|
|
80
|
-
* @param epsilon Allowed difference threshold
|
|
81
|
-
*/
|
|
82
|
-
static approxEquals(a: Vec2, b: Vec2, epsilon?: number): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Returns the angle (in radians) between two vectors.
|
|
85
|
-
* Returns 0 if either vector has zero length.
|
|
86
|
-
*/
|
|
87
|
-
static angle(a: Vec2, b: Vec2): number;
|
|
88
|
-
/**
|
|
89
|
-
* Returns a perpendicular vector (-y, x).
|
|
90
|
-
*/
|
|
91
|
-
static perpendicular(a: Vec2): Vec2;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* 3D vector utility class.
|
|
95
|
-
* Provides common vector math operations for 3D space.
|
|
96
|
-
*/
|
|
97
|
-
export declare class Vec3 {
|
|
98
|
-
x: number;
|
|
99
|
-
y: number;
|
|
100
|
-
z: number;
|
|
101
|
-
/** Constant zero vector (0, 0, 0) */
|
|
102
|
-
static ZERO: Vec3;
|
|
103
|
-
/** Up direction (0, 1, 0) */
|
|
104
|
-
static UP: Vec3;
|
|
105
|
-
/** Down direction (0, -1, 0) */
|
|
106
|
-
static DOWN: Vec3;
|
|
107
|
-
/** Left direction (-1, 0, 0) */
|
|
108
|
-
static LEFT: Vec3;
|
|
109
|
-
/** Right direction (1, 0, 0) */
|
|
110
|
-
static RIGHT: Vec3;
|
|
111
|
-
/** Forward direction (0, 0, 1) */
|
|
112
|
-
static FORWARD: Vec3;
|
|
113
|
-
/** Backward direction (0, 0, -1) */
|
|
114
|
-
static BACK: Vec3;
|
|
115
|
-
/** West direction (-1, 0, 0) */
|
|
116
|
-
static WEST: Vec3;
|
|
117
|
-
/** East direction (1, 0, 0) */
|
|
118
|
-
static EAST: Vec3;
|
|
119
|
-
/** North direction (0, 0, 1) */
|
|
120
|
-
static NORTH: Vec3;
|
|
121
|
-
/** South direction (0, 0, -1) */
|
|
122
|
-
static SOUTH: Vec3;
|
|
123
|
-
/**
|
|
124
|
-
* Creates a new Vec3.
|
|
125
|
-
* @param x X component
|
|
126
|
-
* @param y Y component
|
|
127
|
-
* @param z Z component
|
|
128
|
-
*/
|
|
129
|
-
constructor(x: number, y: number, z: number);
|
|
130
|
-
/**
|
|
131
|
-
* Adds a vector or scalar to a vector.
|
|
132
|
-
* @param a Base vector
|
|
133
|
-
* @param b Vector or scalar to add
|
|
134
|
-
*/
|
|
135
|
-
static add(a: Vec3, b: Vec3 | number): Vec3;
|
|
136
|
-
/**
|
|
137
|
-
* Subtracts a vector or scalar from a vector.
|
|
138
|
-
* @param a Base vector
|
|
139
|
-
* @param b Vector or scalar to subtract
|
|
140
|
-
*/
|
|
141
|
-
static subtract(a: Vec3, b: Vec3 | number): Vec3;
|
|
142
|
-
/**
|
|
143
|
-
* Multiplies a vector by another vector (component-wise) or scalar.
|
|
144
|
-
*/
|
|
145
|
-
static multiply(a: Vec3, b: Vec3 | number): Vec3;
|
|
146
|
-
/**
|
|
147
|
-
* Divides a vector by another vector (component-wise) or scalar.
|
|
148
|
-
*/
|
|
149
|
-
static divide(a: Vec3, b: Vec3 | number): Vec3;
|
|
150
|
-
/**
|
|
151
|
-
* Linearly interpolates between two vectors.
|
|
152
|
-
* @param t Interpolation factor (0–1)
|
|
153
|
-
*/
|
|
154
|
-
static lerp(a: Vec3, b: Vec3, t: number): Vec3;
|
|
155
|
-
/**
|
|
156
|
-
* Clamps a vector between a minimum and maximum vector.
|
|
157
|
-
*/
|
|
158
|
-
static clamp(v: Vec3, min: Vec3, max: Vec3): Vec3;
|
|
159
|
-
/**
|
|
160
|
-
* Dot product of two vectors.
|
|
161
|
-
*/
|
|
162
|
-
static dot(a: Vec3, b: Vec3): number;
|
|
163
|
-
/**
|
|
164
|
-
* Cross product of two vectors.
|
|
165
|
-
* Returns a vector perpendicular to both inputs.
|
|
166
|
-
*/
|
|
167
|
-
static cross(a: Vec3, b: Vec3): Vec3;
|
|
168
|
-
/**
|
|
169
|
-
* Length (magnitude) of a vector.
|
|
170
|
-
*/
|
|
171
|
-
static magnitude(a: Vec3): number;
|
|
172
|
-
/**
|
|
173
|
-
* Returns a normalized (unit length) vector.
|
|
174
|
-
* If magnitude is zero, returns (0, 0, 0).
|
|
175
|
-
*/
|
|
176
|
-
static normalize(a: Vec3): Vec3;
|
|
177
|
-
/**
|
|
178
|
-
* Distance between two vectors.
|
|
179
|
-
*/
|
|
180
|
-
static distance(a: Vec3, b: Vec3): number;
|
|
181
|
-
/**
|
|
182
|
-
* Returns the negated vector.
|
|
183
|
-
*/
|
|
184
|
-
static negate(a: Vec3): Vec3;
|
|
185
|
-
/**
|
|
186
|
-
* Checks exact equality between two vectors.
|
|
187
|
-
*/
|
|
188
|
-
static equals(a: Vec3, b: Vec3): boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Checks approximate equality between two vectors.
|
|
191
|
-
* @param epsilon Allowed difference threshold
|
|
192
|
-
*/
|
|
193
|
-
static approxEquals(a: Vec3, b: Vec3, epsilon?: number): boolean;
|
|
194
|
-
/**
|
|
195
|
-
* Returns the angle (in radians) between two vectors.
|
|
196
|
-
* Returns 0 if either vector has zero length.
|
|
197
|
-
*/
|
|
198
|
-
static angle(a: Vec3, b: Vec3): number;
|
|
199
|
-
/**
|
|
200
|
-
* Projects vector `a` onto vector `onto`.
|
|
201
|
-
* If `onto` has zero length, returns (0, 0, 0).
|
|
202
|
-
*/
|
|
203
|
-
static project(a: Vec3, onto: Vec3): Vec3;
|
|
204
|
-
/**
|
|
205
|
-
* Converts spherical coordinates to cartesian coordinates.
|
|
206
|
-
* @param radius Distance from origin
|
|
207
|
-
* @param theta Azimuth angle (radians)
|
|
208
|
-
* @param phi Polar angle (radians)
|
|
209
|
-
*/
|
|
210
|
-
static cartesian(radius: number, theta: number, phi: number): Vec3;
|
|
211
|
-
}
|
|
212
|
-
//# sourceMappingURL=Vector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["../../../_module/util/Vector.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,qBAAa,IAAI;IAsBM,CAAC,EAAE,MAAM;IAAS,CAAC,EAAE,MAAM;IApB9C,kCAAkC;IAClC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAkB;IAEnC,0BAA0B;IAC1B,MAAM,CAAC,EAAE,EAAE,IAAI,CAAkB;IAEjC,6BAA6B;IAC7B,MAAM,CAAC,IAAI,EAAE,IAAI,CAAmB;IAEpC,6BAA6B;IAC7B,MAAM,CAAC,IAAI,EAAE,IAAI,CAAmB;IAEpC,6BAA6B;IAC7B,MAAM,CAAC,KAAK,EAAE,IAAI,CAAkB;IAEpC;;;;OAIG;gBACgB,CAAC,EAAE,MAAM,EAAS,CAAC,EAAE,MAAM;IAE9C;;;;OAIG;IACH,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,I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GAAG,OAAO;IAQhE;;;OAGG;IACH,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM;IAWtC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAQzC;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;CAOrE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Container } from "@minecraft/server";
|
|
2
|
-
export type Inventory = ContainerWrapper & Container;
|
|
3
|
-
export declare class ContainerWrapper {
|
|
4
|
-
readonly source: Container;
|
|
5
|
-
private constructor();
|
|
6
|
-
static wrap(source: Container): Inventory;
|
|
7
|
-
reduce(slot: number, amount?: number): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../_module/util/Wrapper/Container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,mBAAmB,CAAC;AAGxD,MAAM,MAAM,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAErD,qBAAa,gBAAgB;IAC1B,SAAgB,MAAM,EAAE,SAAS,CAAC;IAEjC,OAAO;WAKO,IAAI,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS;IAKzC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU;CAejD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Entity, PlayAnimationOptions } from "@minecraft/server";
|
|
2
|
-
import { Inventory } from "./Container";
|
|
3
|
-
import { Animation } from "../../Types";
|
|
4
|
-
export type IEntity = IEntityWrapper & Entity;
|
|
5
|
-
export declare class IEntityWrapper {
|
|
6
|
-
readonly source: Entity;
|
|
7
|
-
private constructor();
|
|
8
|
-
static wrap(source: Entity): IEntity;
|
|
9
|
-
get inventory(): Inventory | undefined;
|
|
10
|
-
playAnimationAsync(animation: Animation, options: PlayAnimationOptions): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=IEntity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEntity.d.ts","sourceRoot":"","sources":["../../../../_module/util/Wrapper/IEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,oBAAoB,EAA0B,MAAM,mBAAmB,CAAC;AACnH,OAAO,EAAoB,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;AAE9C,qBAAa,cAAc;IACvB,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,OAAO;WAKO,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAM3C,IAAW,SAAS,IAAI,SAAS,GAAG,SAAS,CAM5C;IAEY,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAKtG"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PlayAnimationOptions, Player, PlayerSoundOptions } from "@minecraft/server";
|
|
2
|
-
import { Inventory } from "./Container";
|
|
3
|
-
import { Animation, Sound } from "../../Types";
|
|
4
|
-
export type IPlayer = IPlayerWrapper & Player;
|
|
5
|
-
export declare class IPlayerWrapper {
|
|
6
|
-
readonly source: Player;
|
|
7
|
-
private constructor();
|
|
8
|
-
static wrap(player: Player): IPlayer;
|
|
9
|
-
get inventory(): Inventory;
|
|
10
|
-
playSoundAsync(sound: Sound, options: PlayerSoundOptions): Promise<void>;
|
|
11
|
-
playAnimationAsync(animation: Animation, options: PlayAnimationOptions): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=IPlayer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPlayer.d.ts","sourceRoot":"","sources":["../../../../_module/util/Wrapper/IPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,oBAAoB,EAAE,MAAM,EAAE,kBAAkB,EAA0B,MAAM,mBAAmB,CAAC;AACvI,OAAO,EAAoB,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;AAE9C,qBAAa,cAAc;IACvB,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,OAAO;WAKO,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAM3C,IAAW,SAAS,IAAI,SAAS,CAMhC;IAEY,cAAc,CAAC,KAAK,EAAC,KAAK,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvE,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAKtG"}
|
package/_types/index.d.ts
DELETED
package/_types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC"}
|