hytopia 0.5.23 → 0.6.1
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/bun-server.mjs +126 -126
- package/docs/server.defaultplayerentitycontroller.applydirectionalmovementrotations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.jumplandheavyoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.jumplandlightoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.md +77 -1
- package/docs/server.defaultplayerentitycontroller.swimidleloopedanimations.md +13 -0
- package/docs/server.defaultplayerentitycontroller.swimloopedanimations.md +1 -1
- package/docs/server.defaultplayerentitycontrolleroptions.applydirectionalmovementrotations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.jumplandheavyoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.jumplandlightoneshotanimations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.md +77 -1
- package/docs/server.defaultplayerentitycontrolleroptions.swimidleloopedanimations.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.swimloopedanimations.md +1 -1
- package/docs/server.entity.md +43 -1
- package/docs/server.entity.modelscale.md +1 -1
- package/docs/server.entity.stopallmodelanimations.md +53 -0
- package/docs/server.entity.stopallmodelloopedanimations.md +53 -0
- package/docs/server.entity.stopallmodeloneshotanimations.md +53 -0
- package/docs/server.moveoptions.md +1 -0
- package/docs/server.simpleentitycontroller.idleloopedanimations.md +13 -0
- package/docs/server.simpleentitycontroller.idleloopedanimationsspeed.md +13 -0
- package/docs/server.simpleentitycontroller.jumponeshotanimations.md +13 -0
- package/docs/server.simpleentitycontroller.md +153 -0
- package/docs/server.simpleentitycontroller.moveloopedanimations.md +13 -0
- package/docs/server.simpleentitycontroller.moveloopedanimationsspeed.md +13 -0
- package/docs/server.simpleentitycontroller.movespeed.md +13 -0
- package/docs/server.simpleentitycontroller.spawn.md +53 -0
- package/node-server.mjs +144 -144
- package/package.json +1 -1
- package/server.api.json +649 -48
- package/server.d.ts +83 -3
@@ -37,6 +37,145 @@ myEntity.controller.move({ x: 10, y: 1, z: 10 }, 4, {
|
|
37
37
|
});
|
38
38
|
```
|
39
39
|
|
40
|
+
## Properties
|
41
|
+
|
42
|
+
<table><thead><tr><th>
|
43
|
+
|
44
|
+
Property
|
45
|
+
|
46
|
+
|
47
|
+
</th><th>
|
48
|
+
|
49
|
+
Modifiers
|
50
|
+
|
51
|
+
|
52
|
+
</th><th>
|
53
|
+
|
54
|
+
Type
|
55
|
+
|
56
|
+
|
57
|
+
</th><th>
|
58
|
+
|
59
|
+
Description
|
60
|
+
|
61
|
+
|
62
|
+
</th></tr></thead>
|
63
|
+
<tbody><tr><td>
|
64
|
+
|
65
|
+
[idleLoopedAnimations](./server.simpleentitycontroller.idleloopedanimations.md)
|
66
|
+
|
67
|
+
|
68
|
+
</td><td>
|
69
|
+
|
70
|
+
|
71
|
+
</td><td>
|
72
|
+
|
73
|
+
string\[\]
|
74
|
+
|
75
|
+
|
76
|
+
</td><td>
|
77
|
+
|
78
|
+
The animations to loop when the entity is idle.
|
79
|
+
|
80
|
+
|
81
|
+
</td></tr>
|
82
|
+
<tr><td>
|
83
|
+
|
84
|
+
[idleLoopedAnimationsSpeed](./server.simpleentitycontroller.idleloopedanimationsspeed.md)
|
85
|
+
|
86
|
+
|
87
|
+
</td><td>
|
88
|
+
|
89
|
+
|
90
|
+
</td><td>
|
91
|
+
|
92
|
+
number \| undefined
|
93
|
+
|
94
|
+
|
95
|
+
</td><td>
|
96
|
+
|
97
|
+
The speed at which to loop the idle animations.
|
98
|
+
|
99
|
+
|
100
|
+
</td></tr>
|
101
|
+
<tr><td>
|
102
|
+
|
103
|
+
[jumpOneshotAnimations](./server.simpleentitycontroller.jumponeshotanimations.md)
|
104
|
+
|
105
|
+
|
106
|
+
</td><td>
|
107
|
+
|
108
|
+
|
109
|
+
</td><td>
|
110
|
+
|
111
|
+
string\[\]
|
112
|
+
|
113
|
+
|
114
|
+
</td><td>
|
115
|
+
|
116
|
+
The animations to play when the entity jumps.
|
117
|
+
|
118
|
+
|
119
|
+
</td></tr>
|
120
|
+
<tr><td>
|
121
|
+
|
122
|
+
[moveLoopedAnimations](./server.simpleentitycontroller.moveloopedanimations.md)
|
123
|
+
|
124
|
+
|
125
|
+
</td><td>
|
126
|
+
|
127
|
+
|
128
|
+
</td><td>
|
129
|
+
|
130
|
+
string\[\]
|
131
|
+
|
132
|
+
|
133
|
+
</td><td>
|
134
|
+
|
135
|
+
The animations to loop when the entity is moving.
|
136
|
+
|
137
|
+
|
138
|
+
</td></tr>
|
139
|
+
<tr><td>
|
140
|
+
|
141
|
+
[moveLoopedAnimationsSpeed](./server.simpleentitycontroller.moveloopedanimationsspeed.md)
|
142
|
+
|
143
|
+
|
144
|
+
</td><td>
|
145
|
+
|
146
|
+
|
147
|
+
</td><td>
|
148
|
+
|
149
|
+
number \| undefined
|
150
|
+
|
151
|
+
|
152
|
+
</td><td>
|
153
|
+
|
154
|
+
The speed at which to loop the move animations.
|
155
|
+
|
156
|
+
|
157
|
+
</td></tr>
|
158
|
+
<tr><td>
|
159
|
+
|
160
|
+
[moveSpeed](./server.simpleentitycontroller.movespeed.md)
|
161
|
+
|
162
|
+
|
163
|
+
</td><td>
|
164
|
+
|
165
|
+
|
166
|
+
</td><td>
|
167
|
+
|
168
|
+
number
|
169
|
+
|
170
|
+
|
171
|
+
</td><td>
|
172
|
+
|
173
|
+
The speed at which to move the entity. Can be altered while moving.
|
174
|
+
|
175
|
+
|
176
|
+
</td></tr>
|
177
|
+
</tbody></table>
|
178
|
+
|
40
179
|
## Methods
|
41
180
|
|
42
181
|
<table><thead><tr><th>
|
@@ -96,5 +235,19 @@ Applies an upwards impulse to the entity to simulate a jump, only supported for
|
|
96
235
|
Moves the entity at a given speed in a straight line to a target coordinate.
|
97
236
|
|
98
237
|
|
238
|
+
</td></tr>
|
239
|
+
<tr><td>
|
240
|
+
|
241
|
+
[spawn(entity)](./server.simpleentitycontroller.spawn.md)
|
242
|
+
|
243
|
+
|
244
|
+
</td><td>
|
245
|
+
|
246
|
+
|
247
|
+
</td><td>
|
248
|
+
|
249
|
+
Override of the [BaseEntityController.spawn()](./server.baseentitycontroller.spawn.md) method. Starts the set idle animations (if any) when the entity is spawned.
|
250
|
+
|
251
|
+
|
99
252
|
</td></tr>
|
100
253
|
</tbody></table>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [moveLoopedAnimations](./server.simpleentitycontroller.moveloopedanimations.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.moveLoopedAnimations property
|
6
|
+
|
7
|
+
The animations to loop when the entity is moving.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
moveLoopedAnimations: string[];
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [moveLoopedAnimationsSpeed](./server.simpleentitycontroller.moveloopedanimationsspeed.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.moveLoopedAnimationsSpeed property
|
6
|
+
|
7
|
+
The speed at which to loop the move animations.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
moveLoopedAnimationsSpeed: number | undefined;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [moveSpeed](./server.simpleentitycontroller.movespeed.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.moveSpeed property
|
6
|
+
|
7
|
+
The speed at which to move the entity. Can be altered while moving.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
moveSpeed: number;
|
13
|
+
```
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [SimpleEntityController](./server.simpleentitycontroller.md) > [spawn](./server.simpleentitycontroller.spawn.md)
|
4
|
+
|
5
|
+
## SimpleEntityController.spawn() method
|
6
|
+
|
7
|
+
Override of the [BaseEntityController.spawn()](./server.baseentitycontroller.spawn.md) method. Starts the set idle animations (if any) when the entity is spawned.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
spawn(entity: Entity): void;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Parameter
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Type
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
entity
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Entity](./server.entity.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The entity that was spawned.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|