@serenityjs/protocol 0.8.19-beta-20260325014112 → 0.8.19

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,14 +1,14 @@
1
1
  # @serenityjs/protocol
2
2
 
3
- ## 0.8.19-beta-20260325014112
3
+ ## 0.8.19
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - [#263](https://github.com/SerenityJS/serenity/pull/263) [`c03296f`](https://github.com/SerenityJS/serenity/commit/c03296fcacccc80ea2ffb31d4adf9d0dea05e07f) Thanks [@AnyBananaGAME](https://github.com/AnyBananaGAME)! - init v0.8.19-beta
8
8
 
9
9
  - Updated dependencies [[`c03296f`](https://github.com/SerenityJS/serenity/commit/c03296fcacccc80ea2ffb31d4adf9d0dea05e07f)]:
10
- - @serenityjs/nbt@0.8.19-beta-20260325014112
11
- - @serenityjs/raknet@0.8.19-beta-20260325014112
10
+ - @serenityjs/nbt@0.8.19
11
+ - @serenityjs/raknet@0.8.19
12
12
 
13
13
  ## 0.8.18
14
14
 
package/dist/index.d.mts CHANGED
@@ -5166,6 +5166,11 @@ declare class InventoryAction extends DataType {
5166
5166
  static write(stream: BinaryStream, value: InventoryAction): void;
5167
5167
  }
5168
5168
 
5169
+ declare class SignedBlockPosition extends BlockPosition {
5170
+ static read(stream: BinaryStream): SignedBlockPosition;
5171
+ static write(stream: BinaryStream, value: SignedBlockPosition): void;
5172
+ }
5173
+
5169
5174
  /**
5170
5175
  * Represents an item use inventory transaction.
5171
5176
  */
@@ -5181,7 +5186,7 @@ declare class ItemUseInventoryTransaction extends DataType {
5181
5186
  /**
5182
5187
  * The block position of the item use inventory transaction.
5183
5188
  */
5184
- readonly blockPosition: BlockPosition;
5189
+ readonly blockPosition: SignedBlockPosition;
5185
5190
  /**
5186
5191
  * The block face of the item use inventory transaction.
5187
5192
  */
@@ -5210,6 +5215,10 @@ declare class ItemUseInventoryTransaction extends DataType {
5210
5215
  * The client prediction of the item use inventory transaction.
5211
5216
  */
5212
5217
  readonly clientPrediction: PredictedResult;
5218
+ /**
5219
+ * The client cooldown state of the item use inventory transaction.
5220
+ */
5221
+ readonly clientCooldownState: number;
5213
5222
  /**
5214
5223
  * Creates an instance of ItemUseInventoryTransaction.
5215
5224
  *
@@ -5223,8 +5232,9 @@ declare class ItemUseInventoryTransaction extends DataType {
5223
5232
  * @param clickPosition The click position of the item use inventory transaction.
5224
5233
  * @param networkBlockId The network block id of the item use inventory transaction.
5225
5234
  * @param clientPrediction The client prediction of the item use inventory transaction.
5235
+ * @param clientCooldownState The client cooldown state of the item use inventory transaction.
5226
5236
  */
5227
- constructor(type: ItemUseInventoryTransactionType, triggerType: TriggerType, blockPosition: BlockPosition, face: BlockFace, slot: number, item: NetworkItemStackDescriptor, fromPosition: Vector3f, clickPosition: Vector3f, networkBlockId: number, clientPrediction: PredictedResult);
5237
+ constructor(type: ItemUseInventoryTransactionType, triggerType: TriggerType, blockPosition: SignedBlockPosition, face: BlockFace, slot: number, item: NetworkItemStackDescriptor, fromPosition: Vector3f, clickPosition: Vector3f, networkBlockId: number, clientPrediction: PredictedResult, clientCooldownState: number);
5228
5238
  static read(stream: BinaryStream): ItemUseInventoryTransaction;
5229
5239
  static write(stream: BinaryStream, value: ItemUseInventoryTransaction): void;
5230
5240
  }
@@ -6043,11 +6053,6 @@ declare class PlayerAuthItemStackRequest extends DataType {
6043
6053
  static write(stream: BinaryStream, value: ItemStackRequest, options: PacketDataTypeOptions<PlayerAuthInputData>): void;
6044
6054
  }
6045
6055
 
6046
- declare class SignedBlockPosition extends BlockPosition {
6047
- static read(stream: BinaryStream): SignedBlockPosition;
6048
- static write(stream: BinaryStream, value: SignedBlockPosition): void;
6049
- }
6050
-
6051
6056
  declare class PlayerBlockActionData extends DataType {
6052
6057
  /**
6053
6058
  * The action type of the player.
package/dist/index.d.ts CHANGED
@@ -5166,6 +5166,11 @@ declare class InventoryAction extends DataType {
5166
5166
  static write(stream: BinaryStream, value: InventoryAction): void;
5167
5167
  }
5168
5168
 
5169
+ declare class SignedBlockPosition extends BlockPosition {
5170
+ static read(stream: BinaryStream): SignedBlockPosition;
5171
+ static write(stream: BinaryStream, value: SignedBlockPosition): void;
5172
+ }
5173
+
5169
5174
  /**
5170
5175
  * Represents an item use inventory transaction.
5171
5176
  */
@@ -5181,7 +5186,7 @@ declare class ItemUseInventoryTransaction extends DataType {
5181
5186
  /**
5182
5187
  * The block position of the item use inventory transaction.
5183
5188
  */
5184
- readonly blockPosition: BlockPosition;
5189
+ readonly blockPosition: SignedBlockPosition;
5185
5190
  /**
5186
5191
  * The block face of the item use inventory transaction.
5187
5192
  */
@@ -5210,6 +5215,10 @@ declare class ItemUseInventoryTransaction extends DataType {
5210
5215
  * The client prediction of the item use inventory transaction.
5211
5216
  */
5212
5217
  readonly clientPrediction: PredictedResult;
5218
+ /**
5219
+ * The client cooldown state of the item use inventory transaction.
5220
+ */
5221
+ readonly clientCooldownState: number;
5213
5222
  /**
5214
5223
  * Creates an instance of ItemUseInventoryTransaction.
5215
5224
  *
@@ -5223,8 +5232,9 @@ declare class ItemUseInventoryTransaction extends DataType {
5223
5232
  * @param clickPosition The click position of the item use inventory transaction.
5224
5233
  * @param networkBlockId The network block id of the item use inventory transaction.
5225
5234
  * @param clientPrediction The client prediction of the item use inventory transaction.
5235
+ * @param clientCooldownState The client cooldown state of the item use inventory transaction.
5226
5236
  */
5227
- constructor(type: ItemUseInventoryTransactionType, triggerType: TriggerType, blockPosition: BlockPosition, face: BlockFace, slot: number, item: NetworkItemStackDescriptor, fromPosition: Vector3f, clickPosition: Vector3f, networkBlockId: number, clientPrediction: PredictedResult);
5237
+ constructor(type: ItemUseInventoryTransactionType, triggerType: TriggerType, blockPosition: SignedBlockPosition, face: BlockFace, slot: number, item: NetworkItemStackDescriptor, fromPosition: Vector3f, clickPosition: Vector3f, networkBlockId: number, clientPrediction: PredictedResult, clientCooldownState: number);
5228
5238
  static read(stream: BinaryStream): ItemUseInventoryTransaction;
5229
5239
  static write(stream: BinaryStream, value: ItemUseInventoryTransaction): void;
5230
5240
  }
@@ -6043,11 +6053,6 @@ declare class PlayerAuthItemStackRequest extends DataType {
6043
6053
  static write(stream: BinaryStream, value: ItemStackRequest, options: PacketDataTypeOptions<PlayerAuthInputData>): void;
6044
6054
  }
6045
6055
 
6046
- declare class SignedBlockPosition extends BlockPosition {
6047
- static read(stream: BinaryStream): SignedBlockPosition;
6048
- static write(stream: BinaryStream, value: SignedBlockPosition): void;
6049
- }
6050
-
6051
6056
  declare class PlayerBlockActionData extends DataType {
6052
6057
  /**
6053
6058
  * The action type of the player.