@block_factory/lib 0.0.2 → 0.0.4
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 +18 -0
- package/_module/sys/Threads.ts +43 -0
- package/_module/util/Forms/Form.ts +31 -0
- package/{util → _module/util/Forms}/FormAction.ts +15 -26
- package/_module/util/Forms/FormMessage.ts +87 -0
- package/_module/util/Forms/FormModal.ts +183 -0
- package/_module/util/Forms/FormRegistry.ts +43 -0
- package/_module/util/RawText.ts +75 -0
- package/_module/util/Signal.ts +31 -0
- package/_module/util/System.ts +21 -0
- package/_module/util/Wrapper/Container.ts +34 -0
- package/_module/util/Wrapper/IEntity.ts +34 -0
- package/_module/util/Wrapper/IPlayer.ts +34 -0
- package/_types/_module/BlockFactory.d.ts +16 -0
- package/_types/_module/BlockFactory.d.ts.map +1 -0
- package/_types/_module/sys/Threads.d.ts +16 -0
- package/_types/_module/sys/Threads.d.ts.map +1 -0
- package/_types/_module/util/Command.d.ts +92 -0
- package/_types/_module/util/Command.d.ts.map +1 -0
- package/_types/_module/util/Forms/Form.d.ts +12 -0
- package/_types/_module/util/Forms/Form.d.ts.map +1 -0
- package/_types/_module/util/Forms/FormAction.d.ts +73 -0
- package/_types/_module/util/Forms/FormAction.d.ts.map +1 -0
- package/_types/_module/util/Forms/FormMessage.d.ts +24 -0
- package/_types/_module/util/Forms/FormMessage.d.ts.map +1 -0
- package/_types/_module/util/Forms/FormModal.d.ts +66 -0
- package/_types/_module/util/Forms/FormModal.d.ts.map +1 -0
- package/_types/_module/util/Forms/FormRegistry.d.ts +12 -0
- package/_types/_module/util/Forms/FormRegistry.d.ts.map +1 -0
- package/{util → _types/_module/util}/Math.d.ts +8 -2
- package/_types/_module/util/Math.d.ts.map +1 -0
- package/_types/_module/util/RawText.d.ts +60 -0
- package/_types/_module/util/RawText.d.ts.map +1 -0
- package/_types/_module/util/Signal.d.ts +11 -0
- package/_types/_module/util/Signal.d.ts.map +1 -0
- package/_types/_module/util/System.d.ts +4 -0
- package/_types/_module/util/System.d.ts.map +1 -0
- package/_types/_module/util/Vector.d.ts +212 -0
- package/_types/_module/util/Vector.d.ts.map +1 -0
- package/_types/_module/util/Wrapper/Container.d.ts +9 -0
- package/_types/_module/util/Wrapper/Container.d.ts.map +1 -0
- package/_types/_module/util/Wrapper/IEntity.d.ts +12 -0
- package/_types/_module/util/Wrapper/IEntity.d.ts.map +1 -0
- package/_types/_module/util/Wrapper/IPlayer.d.ts +12 -0
- package/_types/_module/util/Wrapper/IPlayer.d.ts.map +1 -0
- package/_types/index.d.ts +3 -0
- package/_types/index.d.ts.map +1 -0
- package/index.js +303 -215
- package/index.ts +2 -21
- package/package.json +9 -7
- package/tsconfig.types.json +13 -0
- package/index.d.ts +0 -20
- package/util/Command.d.ts +0 -23
- package/util/Form.d.ts +0 -10
- package/util/Form.ts +0 -15
- package/util/FormAction.d.ts +0 -41
- package/util/RawText.d.ts +0 -33
- package/util/RawText.ts +0 -76
- package/util/Signal.d.ts +0 -9
- package/util/Signal.ts +0 -73
- package/util/Vector.d.ts +0 -60
- package/util/_Form.ts +0 -246
- /package/{util → _module/util}/Command.ts +0 -0
- /package/{util → _module/util}/Math.ts +0 -0
- /package/{util → _module/util}/Vector.ts +0 -0
|
@@ -0,0 +1,212 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI;IAK3C;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI;IAKhD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI;IAKhD;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EA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-0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from "@minecraft/server";
|
|
2
|
+
import { Inventory } from "./Container";
|
|
3
|
+
export type IEntity = IEntityWrapper & Entity;
|
|
4
|
+
export declare class IEntityWrapper {
|
|
5
|
+
readonly source: Entity;
|
|
6
|
+
private constructor();
|
|
7
|
+
static wrap(source: Entity): IEntity;
|
|
8
|
+
isAlive: boolean;
|
|
9
|
+
get inventory(): Inventory;
|
|
10
|
+
test(): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEntity.d.ts","sourceRoot":"","sources":["../../../../_module/util/Wrapper/IEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAoB,SAAS,EAAE,MAAM,aAAa,CAAC;AAG1D,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;IAKpC,OAAO,EAAE,OAAO,CAAS;IAEhC,IAAW,SAAS,IAAI,SAAS,CAMhC;IAEM,IAAI,IAAI,IAAI;CAItB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Player } from "@minecraft/server";
|
|
2
|
+
import { Inventory } from "./Container";
|
|
3
|
+
export type IPlayer = IPlayerWrapper & Player;
|
|
4
|
+
export declare class IPlayerWrapper {
|
|
5
|
+
readonly source: Player;
|
|
6
|
+
private constructor();
|
|
7
|
+
static wrap(player: Player): IPlayer;
|
|
8
|
+
isAlive: boolean;
|
|
9
|
+
get inventory(): Inventory;
|
|
10
|
+
test(): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPlayer.d.ts","sourceRoot":"","sources":["../../../../_module/util/Wrapper/IPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAoB,SAAS,EAAE,MAAM,aAAa,CAAC;AAG1D,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;IAKpC,OAAO,EAAE,OAAO,CAAS;IAEhC,IAAW,SAAS,IAAI,SAAS,CAMhC;IAEM,IAAI,IAAI,IAAI;CAItB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC"}
|