@serenityjs/core 0.8.12 → 0.8.13-beta-20250827233051

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-20250827233051
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-20250827233051
11
+ - @serenityjs/emitter@0.8.13-beta-20250827233051
12
+ - @serenityjs/logger@0.8.13-beta-20250827233051
13
+ - @serenityjs/nbt@0.8.13-beta-20250827233051
14
+ - @serenityjs/protocol@0.8.13-beta-20250827233051
15
+ - @serenityjs/raknet@0.8.13-beta-20250827233051
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;
@@ -14795,7 +14803,7 @@ declare class EntityEquipmentTrait extends EntityTrait {
14795
14803
  * @param slot The equipment slot to set the item stack to.
14796
14804
  * @param itemStack The item stack to set to the equipment slot.
14797
14805
  */
14798
- setEqupment(slot: EquipmentSlot, itemStack: ItemStack): void;
14806
+ setEquipment(slot: EquipmentSlot, itemStack: ItemStack): void;
14799
14807
  /**
14800
14808
  * Gets the item stack from a specific equipment slot.
14801
14809
  * @param slot The equipment slot to get the item stack from.
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;
@@ -14795,7 +14803,7 @@ declare class EntityEquipmentTrait extends EntityTrait {
14795
14803
  * @param slot The equipment slot to set the item stack to.
14796
14804
  * @param itemStack The item stack to set to the equipment slot.
14797
14805
  */
14798
- setEqupment(slot: EquipmentSlot, itemStack: ItemStack): void;
14806
+ setEquipment(slot: EquipmentSlot, itemStack: ItemStack): void;
14799
14807
  /**
14800
14808
  * Gets the item stack from a specific equipment slot.
14801
14809
  * @param slot The equipment slot to get the item stack from.