@serenityjs/core 0.6.2-beta-20241121005721 → 0.6.2-beta-20241121061818

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,18 +1,18 @@
1
1
  # @serenityjs/core
2
2
 
3
- ## 0.6.2-beta-20241121005721
3
+ ## 0.6.2-beta-20241121061818
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - [`1e59642`](https://github.com/SerenityJS/serenity/commit/1e5964208aab0a356b1cb49ac8c6c40e2110d48f) Thanks [@PMK744](https://github.com/PMK744)! - init v0.6.2-beta
8
8
 
9
9
  - Updated dependencies [[`1e59642`](https://github.com/SerenityJS/serenity/commit/1e5964208aab0a356b1cb49ac8c6c40e2110d48f)]:
10
- - @serenityjs/protocol@0.6.2-beta-20241121005721
11
- - @serenityjs/emitter@0.6.2-beta-20241121005721
12
- - @serenityjs/logger@0.6.2-beta-20241121005721
13
- - @serenityjs/raknet@0.6.2-beta-20241121005721
14
- - @serenityjs/data@0.6.2-beta-20241121005721
15
- - @serenityjs/nbt@0.6.2-beta-20241121005721
10
+ - @serenityjs/protocol@0.6.2-beta-20241121061818
11
+ - @serenityjs/emitter@0.6.2-beta-20241121061818
12
+ - @serenityjs/logger@0.6.2-beta-20241121061818
13
+ - @serenityjs/raknet@0.6.2-beta-20241121061818
14
+ - @serenityjs/data@0.6.2-beta-20241121061818
15
+ - @serenityjs/nbt@0.6.2-beta-20241121061818
16
16
 
17
17
  ## 0.6.1
18
18
 
package/dist/index.d.mts CHANGED
@@ -3699,6 +3699,10 @@ declare class ItemStack<T extends keyof Items = keyof Items> {
3699
3699
  * The type of the item stack.
3700
3700
  */
3701
3701
  readonly type: ItemType<T>;
3702
+ /**
3703
+ * The identifier of the item stack.
3704
+ */
3705
+ readonly identifier: T;
3702
3706
  /**
3703
3707
  * The components of the item stack.
3704
3708
  */
@@ -4066,19 +4070,31 @@ declare class Block {
4066
4070
  readonly traits: Map<string, BlockTrait>;
4067
4071
  readonly nbt: NbtMap;
4068
4072
  permutation: BlockPermutation;
4069
- constructor(dimension: Dimension, position: BlockPosition, permutation: BlockPermutation, properties?: Partial<BlockProperties>);
4070
4073
  /**
4071
4074
  * Whether or not the block is air.
4072
4075
  */
4073
- isAir(): boolean;
4076
+ get isAir(): boolean;
4074
4077
  /**
4075
4078
  * Whether or not the block is liquid.
4076
4079
  */
4077
- isLiquid(): boolean;
4080
+ get isLiquid(): boolean;
4078
4081
  /**
4079
4082
  * Whether or not the block is solid.
4080
4083
  */
4081
- isSolid(): boolean;
4084
+ get isSolid(): boolean;
4085
+ /**
4086
+ * The block type of the block.
4087
+ */
4088
+ get type(): BlockType;
4089
+ /**
4090
+ * The block type of the block.
4091
+ */
4092
+ set type(type: BlockType);
4093
+ /**
4094
+ * The block identifier of the block.
4095
+ */
4096
+ get identifier(): BlockIdentifier;
4097
+ constructor(dimension: Dimension, position: BlockPosition, permutation: BlockPermutation, properties?: Partial<BlockProperties>);
4082
4098
  /**
4083
4099
  * Gets the chunk the block is in.
4084
4100
  * @returns The chunk the block is in.
@@ -4086,8 +4102,6 @@ declare class Block {
4086
4102
  getChunk(): Chunk;
4087
4103
  getPermutation(): BlockPermutation;
4088
4104
  setPermutation(permutation: BlockPermutation, entry?: BlockEntry): void;
4089
- setType(type: BlockType): void;
4090
- getType(): BlockType;
4091
4105
  getWorld(): World;
4092
4106
  /**
4093
4107
  * Whether the block has the specified component.
@@ -5648,7 +5662,6 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
5648
5662
  */
5649
5663
  clear(position?: ChunkCoords): void;
5650
5664
  onTick(): void;
5651
- onDespawn(): void;
5652
5665
  }
5653
5666
 
5654
5667
  declare class PlayerEntityRenderingTrait extends PlayerTrait {
@@ -5659,7 +5672,6 @@ declare class PlayerEntityRenderingTrait extends PlayerTrait {
5659
5672
  */
5660
5673
  readonly entities: Set<bigint>;
5661
5674
  onTick(): void;
5662
- onDespawn(): void;
5663
5675
  /**
5664
5676
  * Clears all the entities that have been rendered for the player.
5665
5677
  */
@@ -5947,9 +5959,13 @@ declare class Entity {
5947
5959
  */
5948
5960
  protected readonly serenity: Serenity;
5949
5961
  /**
5950
- * The type of the entity. (Identifier, NetworkId, etc)
5962
+ * The type of the entity.
5951
5963
  */
5952
5964
  readonly type: EntityType;
5965
+ /**
5966
+ * The identifier of the entity.
5967
+ */
5968
+ readonly identifier: EntityIdentifier;
5953
5969
  /**
5954
5970
  * The current runtime id of the entity. (Incremented each time an entity is created)
5955
5971
  */
package/dist/index.d.ts CHANGED
@@ -3699,6 +3699,10 @@ declare class ItemStack<T extends keyof Items = keyof Items> {
3699
3699
  * The type of the item stack.
3700
3700
  */
3701
3701
  readonly type: ItemType<T>;
3702
+ /**
3703
+ * The identifier of the item stack.
3704
+ */
3705
+ readonly identifier: T;
3702
3706
  /**
3703
3707
  * The components of the item stack.
3704
3708
  */
@@ -4066,19 +4070,31 @@ declare class Block {
4066
4070
  readonly traits: Map<string, BlockTrait>;
4067
4071
  readonly nbt: NbtMap;
4068
4072
  permutation: BlockPermutation;
4069
- constructor(dimension: Dimension, position: BlockPosition, permutation: BlockPermutation, properties?: Partial<BlockProperties>);
4070
4073
  /**
4071
4074
  * Whether or not the block is air.
4072
4075
  */
4073
- isAir(): boolean;
4076
+ get isAir(): boolean;
4074
4077
  /**
4075
4078
  * Whether or not the block is liquid.
4076
4079
  */
4077
- isLiquid(): boolean;
4080
+ get isLiquid(): boolean;
4078
4081
  /**
4079
4082
  * Whether or not the block is solid.
4080
4083
  */
4081
- isSolid(): boolean;
4084
+ get isSolid(): boolean;
4085
+ /**
4086
+ * The block type of the block.
4087
+ */
4088
+ get type(): BlockType;
4089
+ /**
4090
+ * The block type of the block.
4091
+ */
4092
+ set type(type: BlockType);
4093
+ /**
4094
+ * The block identifier of the block.
4095
+ */
4096
+ get identifier(): BlockIdentifier;
4097
+ constructor(dimension: Dimension, position: BlockPosition, permutation: BlockPermutation, properties?: Partial<BlockProperties>);
4082
4098
  /**
4083
4099
  * Gets the chunk the block is in.
4084
4100
  * @returns The chunk the block is in.
@@ -4086,8 +4102,6 @@ declare class Block {
4086
4102
  getChunk(): Chunk;
4087
4103
  getPermutation(): BlockPermutation;
4088
4104
  setPermutation(permutation: BlockPermutation, entry?: BlockEntry): void;
4089
- setType(type: BlockType): void;
4090
- getType(): BlockType;
4091
4105
  getWorld(): World;
4092
4106
  /**
4093
4107
  * Whether the block has the specified component.
@@ -5648,7 +5662,6 @@ declare class PlayerChunkRenderingTrait extends PlayerTrait {
5648
5662
  */
5649
5663
  clear(position?: ChunkCoords): void;
5650
5664
  onTick(): void;
5651
- onDespawn(): void;
5652
5665
  }
5653
5666
 
5654
5667
  declare class PlayerEntityRenderingTrait extends PlayerTrait {
@@ -5659,7 +5672,6 @@ declare class PlayerEntityRenderingTrait extends PlayerTrait {
5659
5672
  */
5660
5673
  readonly entities: Set<bigint>;
5661
5674
  onTick(): void;
5662
- onDespawn(): void;
5663
5675
  /**
5664
5676
  * Clears all the entities that have been rendered for the player.
5665
5677
  */
@@ -5947,9 +5959,13 @@ declare class Entity {
5947
5959
  */
5948
5960
  protected readonly serenity: Serenity;
5949
5961
  /**
5950
- * The type of the entity. (Identifier, NetworkId, etc)
5962
+ * The type of the entity.
5951
5963
  */
5952
5964
  readonly type: EntityType;
5965
+ /**
5966
+ * The identifier of the entity.
5967
+ */
5968
+ readonly identifier: EntityIdentifier;
5953
5969
  /**
5954
5970
  * The current runtime id of the entity. (Incremented each time an entity is created)
5955
5971
  */