@serenityjs/core 0.8.9 → 0.8.10-beta-20250817204429
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 +14 -0
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +56 -3
- package/dist/index.mjs +56 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @serenityjs/core
|
|
2
2
|
|
|
3
|
+
## 0.8.10-beta-20250817204429
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`039bf3f`](https://github.com/SerenityJS/serenity/commit/039bf3f4319cd1f9bc0740c8f5aefd6ff0a0e9f4) Thanks [@PMK744](https://github.com/PMK744)! - init v0.8.10-beta
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`039bf3f`](https://github.com/SerenityJS/serenity/commit/039bf3f4319cd1f9bc0740c8f5aefd6ff0a0e9f4)]:
|
|
10
|
+
- @serenityjs/data@0.8.10-beta-20250817204429
|
|
11
|
+
- @serenityjs/emitter@0.8.10-beta-20250817204429
|
|
12
|
+
- @serenityjs/logger@0.8.10-beta-20250817204429
|
|
13
|
+
- @serenityjs/nbt@0.8.10-beta-20250817204429
|
|
14
|
+
- @serenityjs/protocol@0.8.10-beta-20250817204429
|
|
15
|
+
- @serenityjs/raknet@0.8.10-beta-20250817204429
|
|
16
|
+
|
|
3
17
|
## 0.8.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -11766,7 +11766,11 @@ declare class WorldProvider {
|
|
|
11766
11766
|
/**
|
|
11767
11767
|
* The cached chunks for the provider.
|
|
11768
11768
|
*/
|
|
11769
|
-
readonly chunks:
|
|
11769
|
+
readonly chunks: WeakMap<Dimension, Map<bigint, Chunk>>;
|
|
11770
|
+
/**
|
|
11771
|
+
* The barrowers map for the provider.
|
|
11772
|
+
*/
|
|
11773
|
+
readonly barrowers: WeakMap<Dimension, Map<bigint, number>>;
|
|
11770
11774
|
/**
|
|
11771
11775
|
* The world that the provider belongs to.
|
|
11772
11776
|
*/
|
|
@@ -11827,6 +11831,18 @@ declare class WorldProvider {
|
|
|
11827
11831
|
* @param player The player data to write.
|
|
11828
11832
|
*/
|
|
11829
11833
|
writePlayer(_player: PlayerLevelStorage): void;
|
|
11834
|
+
/**
|
|
11835
|
+
* Rents a chunk from the provider, this will increment the barrower count for the chunk.
|
|
11836
|
+
* @param hash The hash of the chunk to rent.
|
|
11837
|
+
* @param dimension The dimension to rent the chunk from.
|
|
11838
|
+
*/
|
|
11839
|
+
rentChunk(hash: bigint, dimension: Dimension): void;
|
|
11840
|
+
/**
|
|
11841
|
+
* Returns a chunk to the provider, this will decrement the barrower count for the chunk.
|
|
11842
|
+
* @param hash The hash of the chunk to return.
|
|
11843
|
+
* @param dimension The dimension to return the chunk to.
|
|
11844
|
+
*/
|
|
11845
|
+
returnChunk(hash: bigint, dimension: Dimension): void;
|
|
11830
11846
|
/**
|
|
11831
11847
|
* Initializes the provider with the specified properties.
|
|
11832
11848
|
* @param serenity The serenity instance to use.
|
package/dist/index.d.ts
CHANGED
|
@@ -11766,7 +11766,11 @@ declare class WorldProvider {
|
|
|
11766
11766
|
/**
|
|
11767
11767
|
* The cached chunks for the provider.
|
|
11768
11768
|
*/
|
|
11769
|
-
readonly chunks:
|
|
11769
|
+
readonly chunks: WeakMap<Dimension, Map<bigint, Chunk>>;
|
|
11770
|
+
/**
|
|
11771
|
+
* The barrowers map for the provider.
|
|
11772
|
+
*/
|
|
11773
|
+
readonly barrowers: WeakMap<Dimension, Map<bigint, number>>;
|
|
11770
11774
|
/**
|
|
11771
11775
|
* The world that the provider belongs to.
|
|
11772
11776
|
*/
|
|
@@ -11827,6 +11831,18 @@ declare class WorldProvider {
|
|
|
11827
11831
|
* @param player The player data to write.
|
|
11828
11832
|
*/
|
|
11829
11833
|
writePlayer(_player: PlayerLevelStorage): void;
|
|
11834
|
+
/**
|
|
11835
|
+
* Rents a chunk from the provider, this will increment the barrower count for the chunk.
|
|
11836
|
+
* @param hash The hash of the chunk to rent.
|
|
11837
|
+
* @param dimension The dimension to rent the chunk from.
|
|
11838
|
+
*/
|
|
11839
|
+
rentChunk(hash: bigint, dimension: Dimension): void;
|
|
11840
|
+
/**
|
|
11841
|
+
* Returns a chunk to the provider, this will decrement the barrower count for the chunk.
|
|
11842
|
+
* @param hash The hash of the chunk to return.
|
|
11843
|
+
* @param dimension The dimension to return the chunk to.
|
|
11844
|
+
*/
|
|
11845
|
+
returnChunk(hash: bigint, dimension: Dimension): void;
|
|
11830
11846
|
/**
|
|
11831
11847
|
* Initializes the provider with the specified properties.
|
|
11832
11848
|
* @param serenity The serenity instance to use.
|