@serenityjs/protocol 0.8.7-beta-20250805051017 → 0.8.7
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 +3 -3
- package/dist/index.d.mts +30 -5
- package/dist/index.d.ts +30 -5
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @serenityjs/protocol
|
|
2
2
|
|
|
3
|
-
## 0.8.7
|
|
3
|
+
## 0.8.7
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- [`2c0fbcd`](https://github.com/SerenityJS/serenity/commit/2c0fbcdd354a70ea2839ed1bc2214b148de2c18a) Thanks [@PMK744](https://github.com/PMK744)! - init v0.8.7-beta
|
|
8
8
|
|
|
9
9
|
- Updated dependencies [[`2c0fbcd`](https://github.com/SerenityJS/serenity/commit/2c0fbcdd354a70ea2839ed1bc2214b148de2c18a)]:
|
|
10
|
-
- @serenityjs/nbt@0.8.7
|
|
11
|
-
- @serenityjs/raknet@0.8.7
|
|
10
|
+
- @serenityjs/nbt@0.8.7
|
|
11
|
+
- @serenityjs/raknet@0.8.7
|
|
12
12
|
|
|
13
13
|
## 0.8.6
|
|
14
14
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1659,7 +1659,7 @@ declare enum ActorDataId {
|
|
|
1659
1659
|
OldSwell = 20,
|
|
1660
1660
|
SwellDirection = 21,
|
|
1661
1661
|
ChargeAmount = 22,
|
|
1662
|
-
|
|
1662
|
+
DEPRECATED_CarryBlockRuntimeId = 23,
|
|
1663
1663
|
ClientEvent = 24,
|
|
1664
1664
|
UsingItem = 25,
|
|
1665
1665
|
PlayerFlags = 26,
|
|
@@ -1901,7 +1901,8 @@ declare enum ActorFlag {
|
|
|
1901
1901
|
Collidable = 121,
|
|
1902
1902
|
WASDAirControlled = 122,
|
|
1903
1903
|
DoesServerAuthOnlyDismount = 123,
|
|
1904
|
-
|
|
1904
|
+
BodyRotationAlwaysFollowsHead = 124,
|
|
1905
|
+
Count = 125
|
|
1905
1906
|
}
|
|
1906
1907
|
|
|
1907
1908
|
declare enum ActorDataType {
|
|
@@ -4279,6 +4280,27 @@ declare class Rotation extends DataType {
|
|
|
4279
4280
|
* @returns The vector3f that was converted.
|
|
4280
4281
|
*/
|
|
4281
4282
|
static fromVector3f(vector: Vector3f): Rotation;
|
|
4283
|
+
/**
|
|
4284
|
+
* Converts the rotation to a vector3f.
|
|
4285
|
+
*
|
|
4286
|
+
* @param rotation The rotation to convert.
|
|
4287
|
+
* @returns The vector3f that was converted.
|
|
4288
|
+
*/
|
|
4289
|
+
static toVector3f(rotation: Rotation): Vector3f;
|
|
4290
|
+
/**
|
|
4291
|
+
* Converts the rotation to a vector2f.
|
|
4292
|
+
*
|
|
4293
|
+
* @param vector The vector3f to convert.
|
|
4294
|
+
* @returns The vector2f that was converted.
|
|
4295
|
+
*/
|
|
4296
|
+
static fromVector2f(vector: Vector3f): Vector2f;
|
|
4297
|
+
/**
|
|
4298
|
+
* Converts the rotation to a vector2f.
|
|
4299
|
+
*
|
|
4300
|
+
* @param rotation The rotation to convert.
|
|
4301
|
+
* @returns The vector2f that was converted.
|
|
4302
|
+
*/
|
|
4303
|
+
static toVector2f(rotation: Rotation): Vector2f;
|
|
4282
4304
|
/**
|
|
4283
4305
|
* Reads a rotation from the stream.
|
|
4284
4306
|
*
|
|
@@ -6775,6 +6797,7 @@ declare class StartGamePacket extends DataPacket {
|
|
|
6775
6797
|
worldTemplateId: string;
|
|
6776
6798
|
clientSideGeneration: boolean;
|
|
6777
6799
|
blockNetworkIdsAreHashes: boolean;
|
|
6800
|
+
tickDeathSystems: boolean;
|
|
6778
6801
|
serverControlledSounds: boolean;
|
|
6779
6802
|
}
|
|
6780
6803
|
|
|
@@ -7243,7 +7266,9 @@ declare class ClientBoundDebugRendererPacket extends DataPacket {
|
|
|
7243
7266
|
declare class CorrectPlayerMovePredictionPacket extends DataPacket {
|
|
7244
7267
|
prediction: PredictionType;
|
|
7245
7268
|
position: Vector3f;
|
|
7246
|
-
|
|
7269
|
+
positionDelta: Vector3f;
|
|
7270
|
+
rotation: Vector2f;
|
|
7271
|
+
vehicleAngularVelocity: number;
|
|
7247
7272
|
onGround: boolean;
|
|
7248
7273
|
inputTick: PlayerInputTick;
|
|
7249
7274
|
}
|
|
@@ -7543,8 +7568,8 @@ declare const DefaultAbilityValues: {
|
|
|
7543
7568
|
20: boolean;
|
|
7544
7569
|
};
|
|
7545
7570
|
|
|
7546
|
-
declare const PROTOCOL_VERSION =
|
|
7547
|
-
declare const MINECRAFT_VERSION = "1.21.
|
|
7571
|
+
declare const PROTOCOL_VERSION = 827;
|
|
7572
|
+
declare const MINECRAFT_VERSION = "1.21.100";
|
|
7548
7573
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
7549
7574
|
declare const SHIELD_NETWORK_ID = 380;
|
|
7550
7575
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1659,7 +1659,7 @@ declare enum ActorDataId {
|
|
|
1659
1659
|
OldSwell = 20,
|
|
1660
1660
|
SwellDirection = 21,
|
|
1661
1661
|
ChargeAmount = 22,
|
|
1662
|
-
|
|
1662
|
+
DEPRECATED_CarryBlockRuntimeId = 23,
|
|
1663
1663
|
ClientEvent = 24,
|
|
1664
1664
|
UsingItem = 25,
|
|
1665
1665
|
PlayerFlags = 26,
|
|
@@ -1901,7 +1901,8 @@ declare enum ActorFlag {
|
|
|
1901
1901
|
Collidable = 121,
|
|
1902
1902
|
WASDAirControlled = 122,
|
|
1903
1903
|
DoesServerAuthOnlyDismount = 123,
|
|
1904
|
-
|
|
1904
|
+
BodyRotationAlwaysFollowsHead = 124,
|
|
1905
|
+
Count = 125
|
|
1905
1906
|
}
|
|
1906
1907
|
|
|
1907
1908
|
declare enum ActorDataType {
|
|
@@ -4279,6 +4280,27 @@ declare class Rotation extends DataType {
|
|
|
4279
4280
|
* @returns The vector3f that was converted.
|
|
4280
4281
|
*/
|
|
4281
4282
|
static fromVector3f(vector: Vector3f): Rotation;
|
|
4283
|
+
/**
|
|
4284
|
+
* Converts the rotation to a vector3f.
|
|
4285
|
+
*
|
|
4286
|
+
* @param rotation The rotation to convert.
|
|
4287
|
+
* @returns The vector3f that was converted.
|
|
4288
|
+
*/
|
|
4289
|
+
static toVector3f(rotation: Rotation): Vector3f;
|
|
4290
|
+
/**
|
|
4291
|
+
* Converts the rotation to a vector2f.
|
|
4292
|
+
*
|
|
4293
|
+
* @param vector The vector3f to convert.
|
|
4294
|
+
* @returns The vector2f that was converted.
|
|
4295
|
+
*/
|
|
4296
|
+
static fromVector2f(vector: Vector3f): Vector2f;
|
|
4297
|
+
/**
|
|
4298
|
+
* Converts the rotation to a vector2f.
|
|
4299
|
+
*
|
|
4300
|
+
* @param rotation The rotation to convert.
|
|
4301
|
+
* @returns The vector2f that was converted.
|
|
4302
|
+
*/
|
|
4303
|
+
static toVector2f(rotation: Rotation): Vector2f;
|
|
4282
4304
|
/**
|
|
4283
4305
|
* Reads a rotation from the stream.
|
|
4284
4306
|
*
|
|
@@ -6775,6 +6797,7 @@ declare class StartGamePacket extends DataPacket {
|
|
|
6775
6797
|
worldTemplateId: string;
|
|
6776
6798
|
clientSideGeneration: boolean;
|
|
6777
6799
|
blockNetworkIdsAreHashes: boolean;
|
|
6800
|
+
tickDeathSystems: boolean;
|
|
6778
6801
|
serverControlledSounds: boolean;
|
|
6779
6802
|
}
|
|
6780
6803
|
|
|
@@ -7243,7 +7266,9 @@ declare class ClientBoundDebugRendererPacket extends DataPacket {
|
|
|
7243
7266
|
declare class CorrectPlayerMovePredictionPacket extends DataPacket {
|
|
7244
7267
|
prediction: PredictionType;
|
|
7245
7268
|
position: Vector3f;
|
|
7246
|
-
|
|
7269
|
+
positionDelta: Vector3f;
|
|
7270
|
+
rotation: Vector2f;
|
|
7271
|
+
vehicleAngularVelocity: number;
|
|
7247
7272
|
onGround: boolean;
|
|
7248
7273
|
inputTick: PlayerInputTick;
|
|
7249
7274
|
}
|
|
@@ -7543,8 +7568,8 @@ declare const DefaultAbilityValues: {
|
|
|
7543
7568
|
20: boolean;
|
|
7544
7569
|
};
|
|
7545
7570
|
|
|
7546
|
-
declare const PROTOCOL_VERSION =
|
|
7547
|
-
declare const MINECRAFT_VERSION = "1.21.
|
|
7571
|
+
declare const PROTOCOL_VERSION = 827;
|
|
7572
|
+
declare const MINECRAFT_VERSION = "1.21.100";
|
|
7548
7573
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
7549
7574
|
declare const SHIELD_NETWORK_ID = 380;
|
|
7550
7575
|
|