@serenityjs/core 0.8.12 → 0.8.13-beta-20250826230048

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @serenityjs/core
2
2
 
3
+ ## 0.8.13-beta-20250826230048
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8e38833`](https://github.com/SerenityJS/serenity/commit/8e388337a890ce89f61415742966bdc39f972337) Thanks [@PMK744](https://github.com/PMK744)! - init v0.8.13-beta
8
+
9
+ - Updated dependencies [[`8e38833`](https://github.com/SerenityJS/serenity/commit/8e388337a890ce89f61415742966bdc39f972337)]:
10
+ - @serenityjs/data@0.8.13-beta-20250826230048
11
+ - @serenityjs/emitter@0.8.13-beta-20250826230048
12
+ - @serenityjs/logger@0.8.13-beta-20250826230048
13
+ - @serenityjs/nbt@0.8.13-beta-20250826230048
14
+ - @serenityjs/protocol@0.8.13-beta-20250826230048
15
+ - @serenityjs/raknet@0.8.13-beta-20250826230048
16
+
3
17
  ## 0.8.12
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -11729,7 +11729,7 @@ declare class Dimension {
11729
11729
  * @param ticks The amount of ticks to wait before the schedule is complete.
11730
11730
  * @returns The created tick schedule.
11731
11731
  */
11732
- schedule(ticks: number): TickSchedule;
11732
+ schedule(ticks: number, callback?: () => void): TickSchedule;
11733
11733
  /**
11734
11734
  * Schedules an execution of a function after a specified amount of ticks asynchronously.
11735
11735
  * @param ticks The amount of ticks to wait before the schedule is complete.
@@ -14210,7 +14210,7 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
14210
14210
  * Sends a chunk to the player.
14211
14211
  * @param chunks The chunks to send to the player.
14212
14212
  */
14213
- send(...chunks: Array<Chunk>): void;
14213
+ send(...chunks: Array<Chunk>): Promise<void>;
14214
14214
  /**
14215
14215
  * Checks if a chunk has been sent to the player.
14216
14216
  * @param hash The hash of the chunk to check.
@@ -14235,7 +14235,15 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
14235
14235
  * @param position The position of the chunk to clear.
14236
14236
  */
14237
14237
  clear(position?: ChunkCoords): void;
14238
- onTick(): void;
14238
+ onTick(): Promise<void>;
14239
+ /**
14240
+ * Sorts chunks in a radial order from the center chunk.
14241
+ * @param chunks The chunks to sort.
14242
+ * @param cx The x coordinate of the center chunk.
14243
+ * @param cz The z coordinate of the center chunk.
14244
+ * @returns The sorted chunks.
14245
+ */
14246
+ private radialSort;
14239
14247
  onRemove(): void;
14240
14248
  onDespawn(options: EntityDespawnOptions): void;
14241
14249
  onSpawn(details: EntitySpawnOptions): void;
package/dist/index.d.ts CHANGED
@@ -11729,7 +11729,7 @@ declare class Dimension {
11729
11729
  * @param ticks The amount of ticks to wait before the schedule is complete.
11730
11730
  * @returns The created tick schedule.
11731
11731
  */
11732
- schedule(ticks: number): TickSchedule;
11732
+ schedule(ticks: number, callback?: () => void): TickSchedule;
11733
11733
  /**
11734
11734
  * Schedules an execution of a function after a specified amount of ticks asynchronously.
11735
11735
  * @param ticks The amount of ticks to wait before the schedule is complete.
@@ -14210,7 +14210,7 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
14210
14210
  * Sends a chunk to the player.
14211
14211
  * @param chunks The chunks to send to the player.
14212
14212
  */
14213
- send(...chunks: Array<Chunk>): void;
14213
+ send(...chunks: Array<Chunk>): Promise<void>;
14214
14214
  /**
14215
14215
  * Checks if a chunk has been sent to the player.
14216
14216
  * @param hash The hash of the chunk to check.
@@ -14235,7 +14235,15 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
14235
14235
  * @param position The position of the chunk to clear.
14236
14236
  */
14237
14237
  clear(position?: ChunkCoords): void;
14238
- onTick(): void;
14238
+ onTick(): Promise<void>;
14239
+ /**
14240
+ * Sorts chunks in a radial order from the center chunk.
14241
+ * @param chunks The chunks to sort.
14242
+ * @param cx The x coordinate of the center chunk.
14243
+ * @param cz The z coordinate of the center chunk.
14244
+ * @returns The sorted chunks.
14245
+ */
14246
+ private radialSort;
14239
14247
  onRemove(): void;
14240
14248
  onDespawn(options: EntityDespawnOptions): void;
14241
14249
  onSpawn(details: EntitySpawnOptions): void;