@serenityjs/protocol 0.5.1-beta-20240915214413 → 0.5.1-beta-20240916023948
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/dist/index.d.ts +85 -62
- package/dist/index.js +197 -78
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ declare enum Packet {
|
|
|
65
65
|
ResourcePackChunkData = 83,// 83
|
|
66
66
|
ResourcePackChunkRequest = 84,// 84
|
|
67
67
|
Transfer = 85,// 85
|
|
68
|
+
PlaySound = 86,// 86
|
|
68
69
|
SetTitle = 88,// 88
|
|
69
70
|
StructureBlockUpdate = 90,// 90
|
|
70
71
|
PlayerSkin = 93,// 93
|
|
@@ -114,7 +115,8 @@ declare enum Packet {
|
|
|
114
115
|
SetHud = 308,// 308
|
|
115
116
|
AwardAchievement = 309,// 309
|
|
116
117
|
ClientboundCloseForm = 310,// 310
|
|
117
|
-
ServerboundLoadingScreenPacket = 312
|
|
118
|
+
ServerboundLoadingScreenPacket = 312,// 312
|
|
119
|
+
ServerboundDiagnosticPacket = 315
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
declare enum DisconnectReason {
|
|
@@ -671,26 +673,26 @@ declare enum ItemStackStatus {
|
|
|
671
673
|
}
|
|
672
674
|
|
|
673
675
|
declare enum AbilitySetId {
|
|
674
|
-
AttackMobs = "
|
|
675
|
-
AttackPlayers = "
|
|
676
|
-
Build = "
|
|
677
|
-
Count = "
|
|
678
|
-
DoorsAndSwitches = "
|
|
679
|
-
FlySpeed = "
|
|
680
|
-
Flying = "
|
|
681
|
-
InstantBuild = "
|
|
682
|
-
Invulnerable = "
|
|
683
|
-
Lightning = "
|
|
684
|
-
MayFly = "
|
|
685
|
-
Mine = "
|
|
686
|
-
Muted = "
|
|
687
|
-
NoClip = "
|
|
688
|
-
OpenContainers = "
|
|
689
|
-
OperatorCommands = "
|
|
690
|
-
PrivilegedBuilder = "
|
|
691
|
-
Teleport = "
|
|
692
|
-
WalkSpeed = "
|
|
693
|
-
WorldBuilder = "
|
|
676
|
+
AttackMobs = "attack_mobs",
|
|
677
|
+
AttackPlayers = "attack_players",
|
|
678
|
+
Build = "build",
|
|
679
|
+
Count = "count",
|
|
680
|
+
DoorsAndSwitches = "doors_and_switches",
|
|
681
|
+
FlySpeed = "fly_speed",
|
|
682
|
+
Flying = "flying",
|
|
683
|
+
InstantBuild = "instant_build",
|
|
684
|
+
Invulnerable = "invulnerable",
|
|
685
|
+
Lightning = "lightning",
|
|
686
|
+
MayFly = "may_fly",
|
|
687
|
+
Mine = "mine",
|
|
688
|
+
Muted = "muted",
|
|
689
|
+
NoClip = "no_clip",
|
|
690
|
+
OpenContainers = "open_containers",
|
|
691
|
+
OperatorCommands = "operator_commands",
|
|
692
|
+
PrivilegedBuilder = "privileged_builder",
|
|
693
|
+
Teleport = "teleport",
|
|
694
|
+
WalkSpeed = "walk_speed",
|
|
695
|
+
WorldBuilder = "world_builder"
|
|
694
696
|
}
|
|
695
697
|
|
|
696
698
|
declare enum AnimateId {
|
|
@@ -2456,7 +2458,7 @@ declare class Vector2f extends DataType {
|
|
|
2456
2458
|
static write(stream: BinaryStream, value: Vector2f): void;
|
|
2457
2459
|
}
|
|
2458
2460
|
|
|
2459
|
-
declare class
|
|
2461
|
+
declare class BlockPosition extends DataType implements IPosition {
|
|
2460
2462
|
x: number;
|
|
2461
2463
|
y: number;
|
|
2462
2464
|
z: number;
|
|
@@ -2465,53 +2467,53 @@ declare class BlockCoordinates extends DataType implements IPosition {
|
|
|
2465
2467
|
* Rounds the coordinates of the 3D position to the nearest whole number.
|
|
2466
2468
|
* @returns
|
|
2467
2469
|
*/
|
|
2468
|
-
round():
|
|
2470
|
+
round(): BlockPosition;
|
|
2469
2471
|
/**
|
|
2470
2472
|
* Ceils the coordinates of the 3D position.
|
|
2471
2473
|
* @returns The 3D position with the coordinates ceiled.
|
|
2472
2474
|
*/
|
|
2473
|
-
ceil():
|
|
2475
|
+
ceil(): BlockPosition;
|
|
2474
2476
|
/**
|
|
2475
2477
|
* Floors the coordinates of the 3D position.
|
|
2476
2478
|
* @returns The 3D position with the coordinates floored.
|
|
2477
2479
|
*/
|
|
2478
|
-
floor():
|
|
2480
|
+
floor(): BlockPosition;
|
|
2479
2481
|
/**
|
|
2480
2482
|
* Adds another 3D position to this 3D position.
|
|
2481
2483
|
* @param other The other 3D position to add.
|
|
2482
2484
|
* @returns The result of the addition.
|
|
2483
2485
|
*/
|
|
2484
|
-
add(other:
|
|
2486
|
+
add(other: BlockPosition): BlockPosition;
|
|
2485
2487
|
/**
|
|
2486
2488
|
* Subtracts another 3D position from this 3D position.
|
|
2487
2489
|
* @param other The other 3D position to subtract.
|
|
2488
2490
|
* @returns The result of the subtraction.
|
|
2489
2491
|
*/
|
|
2490
|
-
subtract(other:
|
|
2492
|
+
subtract(other: BlockPosition): BlockPosition;
|
|
2491
2493
|
/**
|
|
2492
2494
|
* Multiplies this 3D position with a scalar.
|
|
2493
2495
|
* @param scalar The scalar to multiply with.
|
|
2494
2496
|
* @returns The result of the multiplication.
|
|
2495
2497
|
*/
|
|
2496
|
-
multiply(scalar: number):
|
|
2498
|
+
multiply(scalar: number): BlockPosition;
|
|
2497
2499
|
/**
|
|
2498
2500
|
* Divides this 3D position with a scalar.
|
|
2499
2501
|
* @param scalar The scalar to divide with.
|
|
2500
2502
|
* @returns The result of the division.
|
|
2501
2503
|
*/
|
|
2502
|
-
divide(scalar: number):
|
|
2504
|
+
divide(scalar: number): BlockPosition;
|
|
2503
2505
|
/**
|
|
2504
2506
|
* Calculates the dot product between this 3D position and another 3D position.
|
|
2505
2507
|
* @param other The other 3D position to calculate the dot product with.
|
|
2506
2508
|
* @returns The result of the dot product.
|
|
2507
2509
|
*/
|
|
2508
|
-
dot(other:
|
|
2510
|
+
dot(other: BlockPosition): number;
|
|
2509
2511
|
/**
|
|
2510
2512
|
* Calculates the cross product between this 3D position and another 3D position.
|
|
2511
2513
|
* @param other The other 3D position to calculate the cross product with.
|
|
2512
2514
|
* @returns The result of the cross product.
|
|
2513
2515
|
*/
|
|
2514
|
-
cross(other:
|
|
2516
|
+
cross(other: BlockPosition): BlockPosition;
|
|
2515
2517
|
/**
|
|
2516
2518
|
* Calculates the length of this 3D position.
|
|
2517
2519
|
* @returns The length of the 3D position.
|
|
@@ -2526,50 +2528,50 @@ declare class BlockCoordinates extends DataType implements IPosition {
|
|
|
2526
2528
|
* Normalizes this 3D position.
|
|
2527
2529
|
* @returns The normalized 3D position.
|
|
2528
2530
|
*/
|
|
2529
|
-
normalize():
|
|
2531
|
+
normalize(): BlockPosition;
|
|
2530
2532
|
/**
|
|
2531
2533
|
* Linearly interpolates between this 3D position and another 3D position.
|
|
2532
2534
|
* @param other The other 3D position to interpolate with.
|
|
2533
2535
|
* @param t The interpolation factor.
|
|
2534
2536
|
* @returns The interpolated 3D position.
|
|
2535
2537
|
*/
|
|
2536
|
-
lerp(other:
|
|
2538
|
+
lerp(other: BlockPosition, t: number): BlockPosition;
|
|
2537
2539
|
/**
|
|
2538
2540
|
* Spherically interpolates between this 3D position and another 3D position.
|
|
2539
2541
|
* @param other The other 3D position to interpolate with.
|
|
2540
2542
|
* @param t The interpolation factor.
|
|
2541
2543
|
* @returns The interpolated 3D position.
|
|
2542
2544
|
*/
|
|
2543
|
-
slerp(other:
|
|
2545
|
+
slerp(other: BlockPosition, t: number): BlockPosition;
|
|
2544
2546
|
/**
|
|
2545
2547
|
* Returns a string representation of this 3D position.
|
|
2546
2548
|
* @returns The string representation of this 3D position.
|
|
2547
2549
|
*/
|
|
2548
|
-
equals(other:
|
|
2550
|
+
equals(other: BlockPosition): boolean;
|
|
2549
2551
|
/**
|
|
2550
2552
|
* Gets the distance between this 3D position and another 3D position.
|
|
2551
2553
|
* @param other The other 3D position to get the distance to.
|
|
2552
2554
|
* @returns The distance between the 3D positions.
|
|
2553
2555
|
*/
|
|
2554
|
-
distance(other:
|
|
2556
|
+
distance(other: BlockPosition): number;
|
|
2555
2557
|
/**
|
|
2556
2558
|
* Computes the absolute value of each coordinate of the 3D vector.
|
|
2557
2559
|
* @returnsthe absolute value of this 3D vector.
|
|
2558
2560
|
*/
|
|
2559
|
-
absolute():
|
|
2560
|
-
static read(stream: BinaryStream):
|
|
2561
|
-
static write(stream: BinaryStream, value:
|
|
2561
|
+
absolute(): BlockPosition;
|
|
2562
|
+
static read(stream: BinaryStream): BlockPosition;
|
|
2563
|
+
static write(stream: BinaryStream, value: BlockPosition): void;
|
|
2562
2564
|
/**
|
|
2563
|
-
* Converts a
|
|
2564
|
-
* @param position - The
|
|
2565
|
-
* @returns The converted
|
|
2565
|
+
* Converts a BlockPosition to a BlockPosition
|
|
2566
|
+
* @param position - The BlockPosition to convert
|
|
2567
|
+
* @returns The converted BlockPosition
|
|
2566
2568
|
*/
|
|
2567
|
-
static fromVector3f(position: Vector3f):
|
|
2569
|
+
static fromVector3f(position: Vector3f): BlockPosition;
|
|
2568
2570
|
/**
|
|
2569
|
-
* Converts the
|
|
2570
|
-
* @returns The converted
|
|
2571
|
+
* Converts the BlockPosition to a BlockPosition
|
|
2572
|
+
* @returns The converted BlockPosition
|
|
2571
2573
|
*/
|
|
2572
|
-
static toVector3f(coordinates:
|
|
2574
|
+
static toVector3f(coordinates: BlockPosition): Vector3f;
|
|
2573
2575
|
}
|
|
2574
2576
|
|
|
2575
2577
|
declare class GameRules extends DataType {
|
|
@@ -3622,7 +3624,7 @@ declare class ItemUseInventoryTransaction extends DataType {
|
|
|
3622
3624
|
/**
|
|
3623
3625
|
* The block position of the item use inventory transaction.
|
|
3624
3626
|
*/
|
|
3625
|
-
readonly blockPosition:
|
|
3627
|
+
readonly blockPosition: BlockPosition;
|
|
3626
3628
|
/**
|
|
3627
3629
|
* The block face of the item use inventory transaction.
|
|
3628
3630
|
*/
|
|
@@ -3665,7 +3667,7 @@ declare class ItemUseInventoryTransaction extends DataType {
|
|
|
3665
3667
|
* @param networkBlockId The network block id of the item use inventory transaction.
|
|
3666
3668
|
* @param initialTransaction Whether or not the transaction is an initial transaction.
|
|
3667
3669
|
*/
|
|
3668
|
-
constructor(type: ItemUseInventoryTransactionType, triggerType: TriggerType, blockPosition:
|
|
3670
|
+
constructor(type: ItemUseInventoryTransactionType, triggerType: TriggerType, blockPosition: BlockPosition, face: BlockFace, slot: number, item: NetworkItemStackDescriptor, fromPosition: Vector3f, clickPosition: Vector3f, networkBlockId: number, initialTransaction: boolean);
|
|
3669
3671
|
static read(stream: BinaryStream): ItemUseInventoryTransaction;
|
|
3670
3672
|
static write(stream: BinaryStream, value: ItemUseInventoryTransaction): void;
|
|
3671
3673
|
}
|
|
@@ -4558,8 +4560,8 @@ declare class StructureSettings extends DataType {
|
|
|
4558
4560
|
ignoreEntities: boolean;
|
|
4559
4561
|
ignoreBlocks: boolean;
|
|
4560
4562
|
allowNonTicking: boolean;
|
|
4561
|
-
size:
|
|
4562
|
-
offset:
|
|
4563
|
+
size: BlockPosition;
|
|
4564
|
+
offset: BlockPosition;
|
|
4563
4565
|
lastEdit: bigint;
|
|
4564
4566
|
rotation: number;
|
|
4565
4567
|
mirror: number;
|
|
@@ -4568,7 +4570,7 @@ declare class StructureSettings extends DataType {
|
|
|
4568
4570
|
integrityValue: number;
|
|
4569
4571
|
integritySeed: number;
|
|
4570
4572
|
rotationPivot: Vector3f;
|
|
4571
|
-
constructor(structurePalletName: string, ignoreEntities: boolean, ignoreBlocks: boolean, allowNonTicking: boolean, size:
|
|
4573
|
+
constructor(structurePalletName: string, ignoreEntities: boolean, ignoreBlocks: boolean, allowNonTicking: boolean, size: BlockPosition, offset: BlockPosition, lastEdit: bigint, rotation: number, mirror: number, animationMode: number, animationSeconds: number, integrityValue: number, integritySeed: number, rotationPivot: Vector3f);
|
|
4572
4574
|
static write(stream: BinaryStream, value: StructureSettings): void;
|
|
4573
4575
|
static read(stream: BinaryStream): StructureSettings;
|
|
4574
4576
|
}
|
|
@@ -5208,7 +5210,7 @@ declare class ContainerClosePacket extends DataPacket {
|
|
|
5208
5210
|
declare class ContainerOpenPacket extends DataPacket {
|
|
5209
5211
|
identifier: ContainerId;
|
|
5210
5212
|
type: ContainerType;
|
|
5211
|
-
position:
|
|
5213
|
+
position: BlockPosition;
|
|
5212
5214
|
uniqueId: bigint;
|
|
5213
5215
|
}
|
|
5214
5216
|
|
|
@@ -5332,7 +5334,7 @@ declare class MovePlayerPacket extends DataPacket {
|
|
|
5332
5334
|
}
|
|
5333
5335
|
|
|
5334
5336
|
declare class NetworkChunkPublisherUpdatePacket extends DataPacket {
|
|
5335
|
-
coordinate:
|
|
5337
|
+
coordinate: BlockPosition;
|
|
5336
5338
|
radius: number;
|
|
5337
5339
|
savedChunks: Array<ChunkCoords>;
|
|
5338
5340
|
}
|
|
@@ -5359,8 +5361,8 @@ declare class PlayStatusPacket extends DataPacket {
|
|
|
5359
5361
|
declare class PlayerActionPacket extends DataPacket {
|
|
5360
5362
|
entityRuntimeId: bigint;
|
|
5361
5363
|
action: ActionIds;
|
|
5362
|
-
blockPosition:
|
|
5363
|
-
resultPosition:
|
|
5364
|
+
blockPosition: BlockPosition;
|
|
5365
|
+
resultPosition: BlockPosition;
|
|
5364
5366
|
face: number;
|
|
5365
5367
|
}
|
|
5366
5368
|
|
|
@@ -5546,7 +5548,7 @@ declare class StartGamePacket extends DataPacket {
|
|
|
5546
5548
|
worldGamemode: Gamemode;
|
|
5547
5549
|
hardcore: boolean;
|
|
5548
5550
|
difficulty: Difficulty;
|
|
5549
|
-
spawnPosition:
|
|
5551
|
+
spawnPosition: BlockPosition;
|
|
5550
5552
|
achievementsDisabled: boolean;
|
|
5551
5553
|
editorWorldType: number;
|
|
5552
5554
|
createdInEdior: boolean;
|
|
@@ -5655,7 +5657,7 @@ declare class UpdateAttributesPacket extends DataPacket {
|
|
|
5655
5657
|
}
|
|
5656
5658
|
|
|
5657
5659
|
declare class UpdateBlockPacket extends DataPacket {
|
|
5658
|
-
position:
|
|
5660
|
+
position: BlockPosition;
|
|
5659
5661
|
networkBlockId: number;
|
|
5660
5662
|
flags: UpdateBlockFlagsType;
|
|
5661
5663
|
layer: UpdateBlockLayerType;
|
|
@@ -5761,7 +5763,7 @@ declare class PlayerSkinPacket extends DataPacket {
|
|
|
5761
5763
|
}
|
|
5762
5764
|
|
|
5763
5765
|
declare class BlockActorDataPacket extends DataPacket {
|
|
5764
|
-
position:
|
|
5766
|
+
position: BlockPosition;
|
|
5765
5767
|
nbt: CompoundTag<unknown>;
|
|
5766
5768
|
}
|
|
5767
5769
|
|
|
@@ -5813,7 +5815,7 @@ declare class NpcRequestPacket extends DataPacket {
|
|
|
5813
5815
|
}
|
|
5814
5816
|
|
|
5815
5817
|
declare class OpenSignPacket extends DataPacket {
|
|
5816
|
-
position:
|
|
5818
|
+
position: BlockPosition;
|
|
5817
5819
|
isFrontSide: boolean;
|
|
5818
5820
|
}
|
|
5819
5821
|
|
|
@@ -5875,7 +5877,7 @@ declare class AvailableActorIdentifiersPacket extends DataPacket {
|
|
|
5875
5877
|
}
|
|
5876
5878
|
|
|
5877
5879
|
declare class StructureBlockUpdatePacket extends DataPacket {
|
|
5878
|
-
blockPosition:
|
|
5880
|
+
blockPosition: BlockPosition;
|
|
5879
5881
|
structureEditData: StructureEditorData;
|
|
5880
5882
|
trigger: boolean;
|
|
5881
5883
|
isWaterLogged: boolean;
|
|
@@ -5906,7 +5908,7 @@ declare class RiderJumpPacket extends DataPacket {
|
|
|
5906
5908
|
}
|
|
5907
5909
|
|
|
5908
5910
|
declare class BlockEventPacket extends DataPacket {
|
|
5909
|
-
position:
|
|
5911
|
+
position: BlockPosition;
|
|
5910
5912
|
type: BlockEventType;
|
|
5911
5913
|
data: number;
|
|
5912
5914
|
}
|
|
@@ -5937,6 +5939,25 @@ declare class OnScreenTextureAnimationPacket extends DataPacket {
|
|
|
5937
5939
|
effectId: EffectType;
|
|
5938
5940
|
}
|
|
5939
5941
|
|
|
5942
|
+
declare class ServerboundDiagnosticsPacket extends DataPacket {
|
|
5943
|
+
fps: number;
|
|
5944
|
+
serverSimTickTime: number;
|
|
5945
|
+
clientSimTickTime: number;
|
|
5946
|
+
beginFrameTime: number;
|
|
5947
|
+
inputTime: number;
|
|
5948
|
+
renderTime: number;
|
|
5949
|
+
endFrameTime: number;
|
|
5950
|
+
remainderTimePercent: number;
|
|
5951
|
+
unaccountedTimePercent: number;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
declare class PlaySoundPacket extends DataPacket {
|
|
5955
|
+
name: string;
|
|
5956
|
+
position: BlockPosition;
|
|
5957
|
+
volume: number;
|
|
5958
|
+
pitch: number;
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5940
5961
|
declare const Packets: {
|
|
5941
5962
|
1: typeof LoginPacket;
|
|
5942
5963
|
2: typeof PlayStatusPacket;
|
|
@@ -5999,6 +6020,7 @@ declare const Packets: {
|
|
|
5999
6020
|
83: typeof ResourcePackChunkDataPacket;
|
|
6000
6021
|
84: typeof ResourcePackChunkRequestPacket;
|
|
6001
6022
|
85: typeof TransferPacket;
|
|
6023
|
+
86: typeof PlaySoundPacket;
|
|
6002
6024
|
88: typeof SetTitlePacket;
|
|
6003
6025
|
90: typeof StructureBlockUpdatePacket;
|
|
6004
6026
|
93: typeof PlayerSkinPacket;
|
|
@@ -6049,6 +6071,7 @@ declare const Packets: {
|
|
|
6049
6071
|
309: typeof AwardAchievementPacket;
|
|
6050
6072
|
310: typeof ClientboundCloseFormPacket;
|
|
6051
6073
|
312: typeof ServerboundLoadingScreenPacketPacket;
|
|
6074
|
+
315: typeof ServerboundDiagnosticsPacket;
|
|
6052
6075
|
};
|
|
6053
6076
|
|
|
6054
6077
|
declare class Framer {
|
|
@@ -6068,4 +6091,4 @@ declare const PROTOCOL_VERSION = 712;
|
|
|
6068
6091
|
declare const MINECRAFT_VERSION = "1.21.20";
|
|
6069
6092
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
6070
6093
|
|
|
6071
|
-
export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActionIds, ActorDamageCause, ActorData, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket,
|
|
6094
|
+
export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActionIds, ActorDamageCause, ActorData, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, BlockPosition, BlockProperties, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, type ClientData, ClientPredictedVehicle, ClientToServerHandshakePacket, ClientboundCloseFormPacket, Color, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DeviceOS, Difficulty, DimensionDataPacket, DimensionDefinition, DimensionDefinitionGroup, DimensionType, DisconnectMessage, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, EnchantOption, Enchantment, EntityAttributes, EntityPickRequestPacket, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Framer, FullContainerName, GameRuleType, GameRules, Gamemode, GeneratorType, HUDElement, HUDElementId, HUDVisibility, HurtArmorPacket, type IPosition, type IdentityData, InputDataFlags, InputLockFlags, InputMode, InputTransaction, InteractActions, InteractPacket, InteractPosition, InteractionMode, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, ItemStackActionTakePlace, type ItemStackContainer, ItemStackRequest, ItemStackRequestAction, ItemStackRequestActionBeanconPayment, ItemStackRequestActionCraftCreative, ItemStackRequestActionCraftGrindstoneRequest, ItemStackRequestActionCraftLoomRequest, ItemStackRequestActionCraftRecipe, ItemStackRequestActionCraftRecipeAuto, ItemStackRequestActionCreate, ItemStackRequestActionDestroyConsume, ItemStackRequestActionDrop, ItemStackRequestActionMineBlock, ItemStackRequestActionOptional, ItemStackRequestActionResultsDeprecated, ItemStackRequestActionSwap, ItemStackRequestActionType, ItemStackRequestPacket, ItemStackRequestSlotInfo, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MaterialReducerDataEntry, MobArmorEquipmentPacket, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OnScreenTextureAnimationPacket, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayMode, PlaySoundPacket, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAuthInputData, PlayerAuthInputPacket, PlayerEnchantOptionsPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, RiderJumpPacket, Rotation, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerToClientHandshakePacket, ServerboundDiagnosticsPacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, ShowCreditsPacket, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, StartGamePacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, TriggerType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
|
package/dist/index.js
CHANGED
|
@@ -52,11 +52,11 @@ __export(src_exports, {
|
|
|
52
52
|
BiomeDefinitionListPacket: () => BiomeDefinitionListPacket,
|
|
53
53
|
BlockAction: () => BlockAction,
|
|
54
54
|
BlockActorDataPacket: () => BlockActorDataPacket,
|
|
55
|
-
BlockCoordinates: () => BlockCoordinates,
|
|
56
55
|
BlockEventPacket: () => BlockEventPacket,
|
|
57
56
|
BlockEventType: () => BlockEventType,
|
|
58
57
|
BlockFace: () => BlockFace,
|
|
59
58
|
BlockPickRequestPacket: () => BlockPickRequestPacket,
|
|
59
|
+
BlockPosition: () => BlockPosition,
|
|
60
60
|
BlockProperties: () => BlockProperties,
|
|
61
61
|
BookActions: () => BookActions,
|
|
62
62
|
BookEditAction: () => BookEditAction,
|
|
@@ -247,6 +247,7 @@ __export(src_exports, {
|
|
|
247
247
|
Packets: () => Packets,
|
|
248
248
|
PermissionLevel: () => PermissionLevel,
|
|
249
249
|
PlayMode: () => PlayMode,
|
|
250
|
+
PlaySoundPacket: () => PlaySoundPacket,
|
|
250
251
|
PlayStatus: () => PlayStatus,
|
|
251
252
|
PlayStatusPacket: () => PlayStatusPacket,
|
|
252
253
|
PlayerActionPacket: () => PlayerActionPacket,
|
|
@@ -289,6 +290,7 @@ __export(src_exports, {
|
|
|
289
290
|
ScriptMessagePacket: () => ScriptMessagePacket,
|
|
290
291
|
SerializedSkin: () => SerializedSkin,
|
|
291
292
|
ServerToClientHandshakePacket: () => ServerToClientHandshakePacket,
|
|
293
|
+
ServerboundDiagnosticsPacket: () => ServerboundDiagnosticsPacket,
|
|
292
294
|
ServerboundLoadingScreenPacketPacket: () => ServerboundLoadingScreenPacketPacket,
|
|
293
295
|
ServerboundLoadingScreenType: () => ServerboundLoadingScreenType,
|
|
294
296
|
SetActorDataPacket: () => SetActorDataPacket,
|
|
@@ -411,6 +413,7 @@ var Packet;
|
|
|
411
413
|
Packet2[Packet2["ResourcePackChunkData"] = 83] = "ResourcePackChunkData";
|
|
412
414
|
Packet2[Packet2["ResourcePackChunkRequest"] = 84] = "ResourcePackChunkRequest";
|
|
413
415
|
Packet2[Packet2["Transfer"] = 85] = "Transfer";
|
|
416
|
+
Packet2[Packet2["PlaySound"] = 86] = "PlaySound";
|
|
414
417
|
Packet2[Packet2["SetTitle"] = 88] = "SetTitle";
|
|
415
418
|
Packet2[Packet2["StructureBlockUpdate"] = 90] = "StructureBlockUpdate";
|
|
416
419
|
Packet2[Packet2["PlayerSkin"] = 93] = "PlayerSkin";
|
|
@@ -461,6 +464,7 @@ var Packet;
|
|
|
461
464
|
Packet2[Packet2["AwardAchievement"] = 309] = "AwardAchievement";
|
|
462
465
|
Packet2[Packet2["ClientboundCloseForm"] = 310] = "ClientboundCloseForm";
|
|
463
466
|
Packet2[Packet2["ServerboundLoadingScreenPacket"] = 312] = "ServerboundLoadingScreenPacket";
|
|
467
|
+
Packet2[Packet2["ServerboundDiagnosticPacket"] = 315] = "ServerboundDiagnosticPacket";
|
|
464
468
|
})(Packet || (Packet = {}));
|
|
465
469
|
|
|
466
470
|
// src/enums/disconnect-reason.ts
|
|
@@ -1089,26 +1093,26 @@ var ItemStackStatus;
|
|
|
1089
1093
|
// src/enums/ability-set.ts
|
|
1090
1094
|
var AbilitySetId;
|
|
1091
1095
|
(function(AbilitySetId2) {
|
|
1092
|
-
AbilitySetId2["AttackMobs"] = "
|
|
1093
|
-
AbilitySetId2["AttackPlayers"] = "
|
|
1094
|
-
AbilitySetId2["Build"] = "
|
|
1095
|
-
AbilitySetId2["Count"] = "
|
|
1096
|
-
AbilitySetId2["DoorsAndSwitches"] = "
|
|
1097
|
-
AbilitySetId2["FlySpeed"] = "
|
|
1098
|
-
AbilitySetId2["Flying"] = "
|
|
1099
|
-
AbilitySetId2["InstantBuild"] = "
|
|
1100
|
-
AbilitySetId2["Invulnerable"] = "
|
|
1101
|
-
AbilitySetId2["Lightning"] = "
|
|
1102
|
-
AbilitySetId2["MayFly"] = "
|
|
1103
|
-
AbilitySetId2["Mine"] = "
|
|
1104
|
-
AbilitySetId2["Muted"] = "
|
|
1105
|
-
AbilitySetId2["NoClip"] = "
|
|
1106
|
-
AbilitySetId2["OpenContainers"] = "
|
|
1107
|
-
AbilitySetId2["OperatorCommands"] = "
|
|
1108
|
-
AbilitySetId2["PrivilegedBuilder"] = "
|
|
1109
|
-
AbilitySetId2["Teleport"] = "
|
|
1110
|
-
AbilitySetId2["WalkSpeed"] = "
|
|
1111
|
-
AbilitySetId2["WorldBuilder"] = "
|
|
1096
|
+
AbilitySetId2["AttackMobs"] = "attack_mobs";
|
|
1097
|
+
AbilitySetId2["AttackPlayers"] = "attack_players";
|
|
1098
|
+
AbilitySetId2["Build"] = "build";
|
|
1099
|
+
AbilitySetId2["Count"] = "count";
|
|
1100
|
+
AbilitySetId2["DoorsAndSwitches"] = "doors_and_switches";
|
|
1101
|
+
AbilitySetId2["FlySpeed"] = "fly_speed";
|
|
1102
|
+
AbilitySetId2["Flying"] = "flying";
|
|
1103
|
+
AbilitySetId2["InstantBuild"] = "instant_build";
|
|
1104
|
+
AbilitySetId2["Invulnerable"] = "invulnerable";
|
|
1105
|
+
AbilitySetId2["Lightning"] = "lightning";
|
|
1106
|
+
AbilitySetId2["MayFly"] = "may_fly";
|
|
1107
|
+
AbilitySetId2["Mine"] = "mine";
|
|
1108
|
+
AbilitySetId2["Muted"] = "muted";
|
|
1109
|
+
AbilitySetId2["NoClip"] = "no_clip";
|
|
1110
|
+
AbilitySetId2["OpenContainers"] = "open_containers";
|
|
1111
|
+
AbilitySetId2["OperatorCommands"] = "operator_commands";
|
|
1112
|
+
AbilitySetId2["PrivilegedBuilder"] = "privileged_builder";
|
|
1113
|
+
AbilitySetId2["Teleport"] = "teleport";
|
|
1114
|
+
AbilitySetId2["WalkSpeed"] = "walk_speed";
|
|
1115
|
+
AbilitySetId2["WorldBuilder"] = "world_builder";
|
|
1112
1116
|
})(AbilitySetId || (AbilitySetId = {}));
|
|
1113
1117
|
|
|
1114
1118
|
// src/enums/animate-id.ts
|
|
@@ -3185,11 +3189,11 @@ var Vector2f = class Vector2f2 extends import_raknet9.DataType {
|
|
|
3185
3189
|
}
|
|
3186
3190
|
};
|
|
3187
3191
|
|
|
3188
|
-
// src/proto/types/block-
|
|
3192
|
+
// src/proto/types/block-position.ts
|
|
3189
3193
|
var import_raknet10 = require("@serenityjs/raknet");
|
|
3190
|
-
var
|
|
3194
|
+
var BlockPosition = class BlockPosition2 extends import_raknet10.DataType {
|
|
3191
3195
|
static {
|
|
3192
|
-
__name(this, "
|
|
3196
|
+
__name(this, "BlockPosition");
|
|
3193
3197
|
}
|
|
3194
3198
|
x;
|
|
3195
3199
|
y;
|
|
@@ -3208,7 +3212,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3208
3212
|
const x = Math.round(this.x);
|
|
3209
3213
|
const y = Math.round(this.y);
|
|
3210
3214
|
const z = Math.round(this.z);
|
|
3211
|
-
return new
|
|
3215
|
+
return new BlockPosition2(x, y, z);
|
|
3212
3216
|
}
|
|
3213
3217
|
/**
|
|
3214
3218
|
* Ceils the coordinates of the 3D position.
|
|
@@ -3218,7 +3222,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3218
3222
|
const x = Math.ceil(this.x);
|
|
3219
3223
|
const y = Math.ceil(this.y);
|
|
3220
3224
|
const z = Math.ceil(this.z);
|
|
3221
|
-
return new
|
|
3225
|
+
return new BlockPosition2(x, y, z);
|
|
3222
3226
|
}
|
|
3223
3227
|
/**
|
|
3224
3228
|
* Floors the coordinates of the 3D position.
|
|
@@ -3228,7 +3232,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3228
3232
|
const x = Math.floor(this.x);
|
|
3229
3233
|
const y = Math.floor(this.y);
|
|
3230
3234
|
const z = Math.floor(this.z);
|
|
3231
|
-
return new
|
|
3235
|
+
return new BlockPosition2(x, y, z);
|
|
3232
3236
|
}
|
|
3233
3237
|
/**
|
|
3234
3238
|
* Adds another 3D position to this 3D position.
|
|
@@ -3236,7 +3240,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3236
3240
|
* @returns The result of the addition.
|
|
3237
3241
|
*/
|
|
3238
3242
|
add(other) {
|
|
3239
|
-
return new
|
|
3243
|
+
return new BlockPosition2(this.x + other.x, this.y + other.y, this.z + other.z);
|
|
3240
3244
|
}
|
|
3241
3245
|
/**
|
|
3242
3246
|
* Subtracts another 3D position from this 3D position.
|
|
@@ -3244,7 +3248,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3244
3248
|
* @returns The result of the subtraction.
|
|
3245
3249
|
*/
|
|
3246
3250
|
subtract(other) {
|
|
3247
|
-
return new
|
|
3251
|
+
return new BlockPosition2(this.x - other.x, this.y - other.y, this.z - other.z);
|
|
3248
3252
|
}
|
|
3249
3253
|
/**
|
|
3250
3254
|
* Multiplies this 3D position with a scalar.
|
|
@@ -3252,7 +3256,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3252
3256
|
* @returns The result of the multiplication.
|
|
3253
3257
|
*/
|
|
3254
3258
|
multiply(scalar) {
|
|
3255
|
-
return new
|
|
3259
|
+
return new BlockPosition2(this.x * scalar, this.y * scalar, this.z * scalar);
|
|
3256
3260
|
}
|
|
3257
3261
|
/**
|
|
3258
3262
|
* Divides this 3D position with a scalar.
|
|
@@ -3260,7 +3264,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3260
3264
|
* @returns The result of the division.
|
|
3261
3265
|
*/
|
|
3262
3266
|
divide(scalar) {
|
|
3263
|
-
return new
|
|
3267
|
+
return new BlockPosition2(this.x / scalar, this.y / scalar, this.z / scalar);
|
|
3264
3268
|
}
|
|
3265
3269
|
/**
|
|
3266
3270
|
* Calculates the dot product between this 3D position and another 3D position.
|
|
@@ -3279,7 +3283,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3279
3283
|
const x = this.y * other.z - this.z * other.y;
|
|
3280
3284
|
const y = this.z * other.x - this.x * other.z;
|
|
3281
3285
|
const z = this.x * other.y - this.y * other.x;
|
|
3282
|
-
return new
|
|
3286
|
+
return new BlockPosition2(x, y, z);
|
|
3283
3287
|
}
|
|
3284
3288
|
/**
|
|
3285
3289
|
* Calculates the length of this 3D position.
|
|
@@ -3301,7 +3305,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3301
3305
|
*/
|
|
3302
3306
|
normalize() {
|
|
3303
3307
|
const length = this.length();
|
|
3304
|
-
return new
|
|
3308
|
+
return new BlockPosition2(this.x / length, this.y / length, this.z / length);
|
|
3305
3309
|
}
|
|
3306
3310
|
/**
|
|
3307
3311
|
* Linearly interpolates between this 3D position and another 3D position.
|
|
@@ -3310,7 +3314,7 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3310
3314
|
* @returns The interpolated 3D position.
|
|
3311
3315
|
*/
|
|
3312
3316
|
lerp(other, t) {
|
|
3313
|
-
return new
|
|
3317
|
+
return new BlockPosition2(this.x + (other.x - this.x) * t, this.y + (other.y - this.y) * t, this.z + (other.z - this.z) * t);
|
|
3314
3318
|
}
|
|
3315
3319
|
/**
|
|
3316
3320
|
* Spherically interpolates between this 3D position and another 3D position.
|
|
@@ -3346,14 +3350,14 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3346
3350
|
* @returnsthe absolute value of this 3D vector.
|
|
3347
3351
|
*/
|
|
3348
3352
|
absolute() {
|
|
3349
|
-
return new
|
|
3353
|
+
return new BlockPosition2(Math.abs(this.x), Math.abs(this.y), Math.abs(this.z));
|
|
3350
3354
|
}
|
|
3351
3355
|
static read(stream) {
|
|
3352
3356
|
const x = stream.readZigZag();
|
|
3353
3357
|
let y = stream.readVarInt();
|
|
3354
3358
|
const z = stream.readZigZag();
|
|
3355
3359
|
y = 4294967295 - 64 >= y ? y : y - 4294967296;
|
|
3356
|
-
return new
|
|
3360
|
+
return new BlockPosition2(x, y, z);
|
|
3357
3361
|
}
|
|
3358
3362
|
static write(stream, value) {
|
|
3359
3363
|
const y = value.y < 0 ? 4294967296 + value.y : value.y;
|
|
@@ -3362,16 +3366,16 @@ var BlockCoordinates = class BlockCoordinates2 extends import_raknet10.DataType
|
|
|
3362
3366
|
stream.writeZigZag(value.z);
|
|
3363
3367
|
}
|
|
3364
3368
|
/**
|
|
3365
|
-
* Converts a
|
|
3366
|
-
* @param position - The
|
|
3367
|
-
* @returns The converted
|
|
3369
|
+
* Converts a BlockPosition to a BlockPosition
|
|
3370
|
+
* @param position - The BlockPosition to convert
|
|
3371
|
+
* @returns The converted BlockPosition
|
|
3368
3372
|
*/
|
|
3369
3373
|
static fromVector3f(position) {
|
|
3370
|
-
return new
|
|
3374
|
+
return new BlockPosition2(Math.floor(position.x), Math.floor(position.y), Math.floor(position.z));
|
|
3371
3375
|
}
|
|
3372
3376
|
/**
|
|
3373
|
-
* Converts the
|
|
3374
|
-
* @returns The converted
|
|
3377
|
+
* Converts the BlockPosition to a BlockPosition
|
|
3378
|
+
* @returns The converted BlockPosition
|
|
3375
3379
|
*/
|
|
3376
3380
|
static toVector3f(coordinates) {
|
|
3377
3381
|
return new Vector3f(coordinates.x, coordinates.y, coordinates.z);
|
|
@@ -5964,7 +5968,7 @@ var ItemUseInventoryTransaction = class ItemUseInventoryTransaction2 extends imp
|
|
|
5964
5968
|
static read(stream) {
|
|
5965
5969
|
const type = stream.readVarInt();
|
|
5966
5970
|
const triggerType = stream.readVarInt();
|
|
5967
|
-
const blockPosition =
|
|
5971
|
+
const blockPosition = BlockPosition.read(stream);
|
|
5968
5972
|
const face = stream.readZigZag();
|
|
5969
5973
|
const slot = stream.readZigZag();
|
|
5970
5974
|
const item = NetworkItemStackDescriptor.read(stream);
|
|
@@ -5977,7 +5981,7 @@ var ItemUseInventoryTransaction = class ItemUseInventoryTransaction2 extends imp
|
|
|
5977
5981
|
static write(stream, value) {
|
|
5978
5982
|
stream.writeVarInt(value.type);
|
|
5979
5983
|
stream.writeVarInt(value.triggerType);
|
|
5980
|
-
|
|
5984
|
+
BlockPosition.write(stream, value.blockPosition);
|
|
5981
5985
|
stream.writeZigZag(value.face);
|
|
5982
5986
|
stream.writeZigZag(value.slot);
|
|
5983
5987
|
NetworkItemStackDescriptor.write(stream, value.item);
|
|
@@ -6812,7 +6816,7 @@ var DataItem = class DataItem2 extends import_raknet72.DataType {
|
|
|
6812
6816
|
break;
|
|
6813
6817
|
}
|
|
6814
6818
|
case ActorDataType.BlockPos: {
|
|
6815
|
-
value =
|
|
6819
|
+
value = BlockPosition.read(stream);
|
|
6816
6820
|
break;
|
|
6817
6821
|
}
|
|
6818
6822
|
case ActorDataType.Long: {
|
|
@@ -6859,7 +6863,7 @@ var DataItem = class DataItem2 extends import_raknet72.DataType {
|
|
|
6859
6863
|
break;
|
|
6860
6864
|
}
|
|
6861
6865
|
case ActorDataType.BlockPos: {
|
|
6862
|
-
|
|
6866
|
+
BlockPosition.write(stream, item.value);
|
|
6863
6867
|
break;
|
|
6864
6868
|
}
|
|
6865
6869
|
case ActorDataType.Long: {
|
|
@@ -8317,8 +8321,8 @@ var StructureSettings = class StructureSettings2 extends import_raknet95.DataTyp
|
|
|
8317
8321
|
stream.writeBool(value.ignoreBlocks);
|
|
8318
8322
|
stream.writeBool(value.ignoreEntities);
|
|
8319
8323
|
stream.writeBool(value.allowNonTicking);
|
|
8320
|
-
|
|
8321
|
-
|
|
8324
|
+
BlockPosition.write(stream, value.size);
|
|
8325
|
+
BlockPosition.write(stream, value.offset);
|
|
8322
8326
|
stream.writeZigZong(value.lastEdit);
|
|
8323
8327
|
stream.writeByte(value.animationMode);
|
|
8324
8328
|
stream.writeFloat32(value.animationSeconds);
|
|
@@ -8332,8 +8336,8 @@ var StructureSettings = class StructureSettings2 extends import_raknet95.DataTyp
|
|
|
8332
8336
|
stream.readBool(),
|
|
8333
8337
|
stream.readBool(),
|
|
8334
8338
|
stream.readBool(),
|
|
8335
|
-
|
|
8336
|
-
|
|
8339
|
+
BlockPosition.read(stream),
|
|
8340
|
+
BlockPosition.read(stream),
|
|
8337
8341
|
stream.readZigZong(),
|
|
8338
8342
|
stream.readByte(),
|
|
8339
8343
|
stream.readByte(),
|
|
@@ -10214,8 +10218,8 @@ _ts_decorate13([
|
|
|
10214
10218
|
_ts_metadata12("design:type", typeof ContainerType === "undefined" ? Object : ContainerType)
|
|
10215
10219
|
], ContainerOpenPacket.prototype, "type", void 0);
|
|
10216
10220
|
_ts_decorate13([
|
|
10217
|
-
(0, import_raknet136.Serialize)(
|
|
10218
|
-
_ts_metadata12("design:type", typeof
|
|
10221
|
+
(0, import_raknet136.Serialize)(BlockPosition),
|
|
10222
|
+
_ts_metadata12("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
10219
10223
|
], ContainerOpenPacket.prototype, "position", void 0);
|
|
10220
10224
|
_ts_decorate13([
|
|
10221
10225
|
(0, import_raknet136.Serialize)(import_binarystream56.VarLong),
|
|
@@ -10983,8 +10987,8 @@ var NetworkChunkPublisherUpdatePacket = class NetworkChunkPublisherUpdatePacket2
|
|
|
10983
10987
|
savedChunks;
|
|
10984
10988
|
};
|
|
10985
10989
|
_ts_decorate32([
|
|
10986
|
-
(0, import_raknet155.Serialize)(
|
|
10987
|
-
_ts_metadata30("design:type", typeof
|
|
10990
|
+
(0, import_raknet155.Serialize)(BlockPosition),
|
|
10991
|
+
_ts_metadata30("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
10988
10992
|
], NetworkChunkPublisherUpdatePacket.prototype, "coordinate", void 0);
|
|
10989
10993
|
_ts_decorate32([
|
|
10990
10994
|
(0, import_raknet155.Serialize)(import_binarystream70.VarInt),
|
|
@@ -11150,12 +11154,12 @@ _ts_decorate36([
|
|
|
11150
11154
|
_ts_metadata34("design:type", typeof ActionIds === "undefined" ? Object : ActionIds)
|
|
11151
11155
|
], PlayerActionPacket.prototype, "action", void 0);
|
|
11152
11156
|
_ts_decorate36([
|
|
11153
|
-
(0, import_raknet159.Serialize)(
|
|
11154
|
-
_ts_metadata34("design:type", typeof
|
|
11157
|
+
(0, import_raknet159.Serialize)(BlockPosition),
|
|
11158
|
+
_ts_metadata34("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
11155
11159
|
], PlayerActionPacket.prototype, "blockPosition", void 0);
|
|
11156
11160
|
_ts_decorate36([
|
|
11157
|
-
(0, import_raknet159.Serialize)(
|
|
11158
|
-
_ts_metadata34("design:type", typeof
|
|
11161
|
+
(0, import_raknet159.Serialize)(BlockPosition),
|
|
11162
|
+
_ts_metadata34("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
11159
11163
|
], PlayerActionPacket.prototype, "resultPosition", void 0);
|
|
11160
11164
|
_ts_decorate36([
|
|
11161
11165
|
(0, import_raknet159.Serialize)(import_binarystream74.ZigZag),
|
|
@@ -12192,8 +12196,8 @@ _ts_decorate57([
|
|
|
12192
12196
|
_ts_metadata52("design:type", typeof Difficulty === "undefined" ? Object : Difficulty)
|
|
12193
12197
|
], StartGamePacket.prototype, "difficulty", void 0);
|
|
12194
12198
|
_ts_decorate57([
|
|
12195
|
-
(0, import_raknet180.Serialize)(
|
|
12196
|
-
_ts_metadata52("design:type", typeof
|
|
12199
|
+
(0, import_raknet180.Serialize)(BlockPosition),
|
|
12200
|
+
_ts_metadata52("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
12197
12201
|
], StartGamePacket.prototype, "spawnPosition", void 0);
|
|
12198
12202
|
_ts_decorate57([
|
|
12199
12203
|
(0, import_raknet180.Serialize)(import_binarystream95.Bool),
|
|
@@ -12720,8 +12724,8 @@ var UpdateBlockPacket = class UpdateBlockPacket2 extends DataPacket {
|
|
|
12720
12724
|
layer;
|
|
12721
12725
|
};
|
|
12722
12726
|
_ts_decorate63([
|
|
12723
|
-
(0, import_raknet186.Serialize)(
|
|
12724
|
-
_ts_metadata58("design:type", typeof
|
|
12727
|
+
(0, import_raknet186.Serialize)(BlockPosition),
|
|
12728
|
+
_ts_metadata58("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
12725
12729
|
], UpdateBlockPacket.prototype, "position", void 0);
|
|
12726
12730
|
_ts_decorate63([
|
|
12727
12731
|
(0, import_raknet186.Serialize)(import_binarystream101.VarInt),
|
|
@@ -13384,8 +13388,8 @@ var BlockActorDataPacket = class BlockActorDataPacket2 extends DataPacket {
|
|
|
13384
13388
|
nbt;
|
|
13385
13389
|
};
|
|
13386
13390
|
_ts_decorate80([
|
|
13387
|
-
(0, import_raknet203.Serialize)(
|
|
13388
|
-
_ts_metadata75("design:type", typeof
|
|
13391
|
+
(0, import_raknet203.Serialize)(BlockPosition),
|
|
13392
|
+
_ts_metadata75("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
13389
13393
|
], BlockActorDataPacket.prototype, "position", void 0);
|
|
13390
13394
|
_ts_decorate80([
|
|
13391
13395
|
(0, import_raknet203.Serialize)(import_nbt6.CompoundTag, true),
|
|
@@ -13711,8 +13715,8 @@ var OpenSignPacket = class OpenSignPacket2 extends DataPacket {
|
|
|
13711
13715
|
isFrontSide;
|
|
13712
13716
|
};
|
|
13713
13717
|
_ts_decorate89([
|
|
13714
|
-
(0, import_raknet212.Serialize)(
|
|
13715
|
-
_ts_metadata83("design:type", typeof
|
|
13718
|
+
(0, import_raknet212.Serialize)(BlockPosition),
|
|
13719
|
+
_ts_metadata83("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
13716
13720
|
], OpenSignPacket.prototype, "position", void 0);
|
|
13717
13721
|
_ts_decorate89([
|
|
13718
13722
|
(0, import_raknet212.Serialize)(import_binarystream125.Bool),
|
|
@@ -14110,8 +14114,8 @@ var StructureBlockUpdatePacket = class StructureBlockUpdatePacket2 extends DataP
|
|
|
14110
14114
|
isWaterLogged;
|
|
14111
14115
|
};
|
|
14112
14116
|
_ts_decorate100([
|
|
14113
|
-
(0, import_raknet223.Serialize)(
|
|
14114
|
-
_ts_metadata94("design:type", typeof
|
|
14117
|
+
(0, import_raknet223.Serialize)(BlockPosition),
|
|
14118
|
+
_ts_metadata94("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
14115
14119
|
], StructureBlockUpdatePacket.prototype, "blockPosition", void 0);
|
|
14116
14120
|
_ts_decorate100([
|
|
14117
14121
|
(0, import_raknet223.Serialize)(StructureEditorData),
|
|
@@ -14305,8 +14309,8 @@ var BlockEventPacket = class BlockEventPacket2 extends DataPacket {
|
|
|
14305
14309
|
data;
|
|
14306
14310
|
};
|
|
14307
14311
|
_ts_decorate106([
|
|
14308
|
-
(0, import_raknet229.Serialize)(
|
|
14309
|
-
_ts_metadata99("design:type", typeof
|
|
14312
|
+
(0, import_raknet229.Serialize)(BlockPosition),
|
|
14313
|
+
_ts_metadata99("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
14310
14314
|
], BlockEventPacket.prototype, "position", void 0);
|
|
14311
14315
|
_ts_decorate106([
|
|
14312
14316
|
(0, import_raknet229.Serialize)(import_binarystream136.ZigZag),
|
|
@@ -14490,6 +14494,117 @@ OnScreenTextureAnimationPacket = _ts_decorate111([
|
|
|
14490
14494
|
(0, import_raknet234.Proto)(Packet.OnScreenTextureAnimation)
|
|
14491
14495
|
], OnScreenTextureAnimationPacket);
|
|
14492
14496
|
|
|
14497
|
+
// src/proto/data/serverbound-diagnostics.ts
|
|
14498
|
+
var import_raknet235 = require("@serenityjs/raknet");
|
|
14499
|
+
var import_binarystream142 = require("@serenityjs/binarystream");
|
|
14500
|
+
function _ts_decorate112(decorators, target, key, desc) {
|
|
14501
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14502
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14503
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14504
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14505
|
+
}
|
|
14506
|
+
__name(_ts_decorate112, "_ts_decorate");
|
|
14507
|
+
function _ts_metadata105(k, v) {
|
|
14508
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14509
|
+
}
|
|
14510
|
+
__name(_ts_metadata105, "_ts_metadata");
|
|
14511
|
+
var ServerboundDiagnosticsPacket = class ServerboundDiagnosticsPacket2 extends DataPacket {
|
|
14512
|
+
static {
|
|
14513
|
+
__name(this, "ServerboundDiagnosticsPacket");
|
|
14514
|
+
}
|
|
14515
|
+
fps;
|
|
14516
|
+
serverSimTickTime;
|
|
14517
|
+
clientSimTickTime;
|
|
14518
|
+
beginFrameTime;
|
|
14519
|
+
inputTime;
|
|
14520
|
+
renderTime;
|
|
14521
|
+
endFrameTime;
|
|
14522
|
+
remainderTimePercent;
|
|
14523
|
+
unaccountedTimePercent;
|
|
14524
|
+
};
|
|
14525
|
+
_ts_decorate112([
|
|
14526
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14527
|
+
_ts_metadata105("design:type", Number)
|
|
14528
|
+
], ServerboundDiagnosticsPacket.prototype, "fps", void 0);
|
|
14529
|
+
_ts_decorate112([
|
|
14530
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14531
|
+
_ts_metadata105("design:type", Number)
|
|
14532
|
+
], ServerboundDiagnosticsPacket.prototype, "serverSimTickTime", void 0);
|
|
14533
|
+
_ts_decorate112([
|
|
14534
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14535
|
+
_ts_metadata105("design:type", Number)
|
|
14536
|
+
], ServerboundDiagnosticsPacket.prototype, "clientSimTickTime", void 0);
|
|
14537
|
+
_ts_decorate112([
|
|
14538
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14539
|
+
_ts_metadata105("design:type", Number)
|
|
14540
|
+
], ServerboundDiagnosticsPacket.prototype, "beginFrameTime", void 0);
|
|
14541
|
+
_ts_decorate112([
|
|
14542
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14543
|
+
_ts_metadata105("design:type", Number)
|
|
14544
|
+
], ServerboundDiagnosticsPacket.prototype, "inputTime", void 0);
|
|
14545
|
+
_ts_decorate112([
|
|
14546
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14547
|
+
_ts_metadata105("design:type", Number)
|
|
14548
|
+
], ServerboundDiagnosticsPacket.prototype, "renderTime", void 0);
|
|
14549
|
+
_ts_decorate112([
|
|
14550
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14551
|
+
_ts_metadata105("design:type", Number)
|
|
14552
|
+
], ServerboundDiagnosticsPacket.prototype, "endFrameTime", void 0);
|
|
14553
|
+
_ts_decorate112([
|
|
14554
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14555
|
+
_ts_metadata105("design:type", Number)
|
|
14556
|
+
], ServerboundDiagnosticsPacket.prototype, "remainderTimePercent", void 0);
|
|
14557
|
+
_ts_decorate112([
|
|
14558
|
+
(0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
|
|
14559
|
+
_ts_metadata105("design:type", Number)
|
|
14560
|
+
], ServerboundDiagnosticsPacket.prototype, "unaccountedTimePercent", void 0);
|
|
14561
|
+
ServerboundDiagnosticsPacket = _ts_decorate112([
|
|
14562
|
+
(0, import_raknet235.Proto)(Packet.ServerboundDiagnosticPacket)
|
|
14563
|
+
], ServerboundDiagnosticsPacket);
|
|
14564
|
+
|
|
14565
|
+
// src/proto/data/play-sound.ts
|
|
14566
|
+
var import_raknet236 = require("@serenityjs/raknet");
|
|
14567
|
+
var import_binarystream143 = require("@serenityjs/binarystream");
|
|
14568
|
+
function _ts_decorate113(decorators, target, key, desc) {
|
|
14569
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14570
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14571
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14572
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14573
|
+
}
|
|
14574
|
+
__name(_ts_decorate113, "_ts_decorate");
|
|
14575
|
+
function _ts_metadata106(k, v) {
|
|
14576
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14577
|
+
}
|
|
14578
|
+
__name(_ts_metadata106, "_ts_metadata");
|
|
14579
|
+
var PlaySoundPacket = class PlaySoundPacket2 extends DataPacket {
|
|
14580
|
+
static {
|
|
14581
|
+
__name(this, "PlaySoundPacket");
|
|
14582
|
+
}
|
|
14583
|
+
name;
|
|
14584
|
+
position;
|
|
14585
|
+
volume;
|
|
14586
|
+
pitch;
|
|
14587
|
+
};
|
|
14588
|
+
_ts_decorate113([
|
|
14589
|
+
(0, import_raknet236.Serialize)(import_binarystream143.VarString),
|
|
14590
|
+
_ts_metadata106("design:type", String)
|
|
14591
|
+
], PlaySoundPacket.prototype, "name", void 0);
|
|
14592
|
+
_ts_decorate113([
|
|
14593
|
+
(0, import_raknet236.Serialize)(BlockPosition),
|
|
14594
|
+
_ts_metadata106("design:type", typeof BlockPosition === "undefined" ? Object : BlockPosition)
|
|
14595
|
+
], PlaySoundPacket.prototype, "position", void 0);
|
|
14596
|
+
_ts_decorate113([
|
|
14597
|
+
(0, import_raknet236.Serialize)(import_binarystream143.Float32, import_binarystream143.Endianness.Little),
|
|
14598
|
+
_ts_metadata106("design:type", Number)
|
|
14599
|
+
], PlaySoundPacket.prototype, "volume", void 0);
|
|
14600
|
+
_ts_decorate113([
|
|
14601
|
+
(0, import_raknet236.Serialize)(import_binarystream143.Float32, import_binarystream143.Endianness.Little),
|
|
14602
|
+
_ts_metadata106("design:type", Number)
|
|
14603
|
+
], PlaySoundPacket.prototype, "pitch", void 0);
|
|
14604
|
+
PlaySoundPacket = _ts_decorate113([
|
|
14605
|
+
(0, import_raknet236.Proto)(Packet.PlaySound)
|
|
14606
|
+
], PlaySoundPacket);
|
|
14607
|
+
|
|
14493
14608
|
// src/proto/data/packets.ts
|
|
14494
14609
|
var Packets = {
|
|
14495
14610
|
[Packet.Login]: LoginPacket,
|
|
@@ -14553,6 +14668,7 @@ var Packets = {
|
|
|
14553
14668
|
[Packet.ResourcePackChunkData]: ResourcePackChunkDataPacket,
|
|
14554
14669
|
[Packet.ResourcePackChunkRequest]: ResourcePackChunkRequestPacket,
|
|
14555
14670
|
[Packet.Transfer]: TransferPacket,
|
|
14671
|
+
[Packet.PlaySound]: PlaySoundPacket,
|
|
14556
14672
|
[Packet.SetTitle]: SetTitlePacket,
|
|
14557
14673
|
[Packet.StructureBlockUpdate]: StructureBlockUpdatePacket,
|
|
14558
14674
|
[Packet.PlayerSkin]: PlayerSkinPacket,
|
|
@@ -14602,18 +14718,19 @@ var Packets = {
|
|
|
14602
14718
|
[Packet.SetHud]: SetHudPacket,
|
|
14603
14719
|
[Packet.AwardAchievement]: AwardAchievementPacket,
|
|
14604
14720
|
[Packet.ClientboundCloseForm]: ClientboundCloseFormPacket,
|
|
14605
|
-
[Packet.ServerboundLoadingScreenPacket]: ServerboundLoadingScreenPacketPacket
|
|
14606
|
-
|
|
14721
|
+
[Packet.ServerboundLoadingScreenPacket]: ServerboundLoadingScreenPacketPacket,
|
|
14722
|
+
[Packet.ServerboundDiagnosticPacket]: ServerboundDiagnosticsPacket
|
|
14723
|
+
// 315
|
|
14607
14724
|
};
|
|
14608
14725
|
|
|
14609
14726
|
// src/proto/framer.ts
|
|
14610
|
-
var
|
|
14727
|
+
var import_binarystream144 = require("@serenityjs/binarystream");
|
|
14611
14728
|
var Framer = class Framer2 {
|
|
14612
14729
|
static {
|
|
14613
14730
|
__name(this, "Framer");
|
|
14614
14731
|
}
|
|
14615
14732
|
static unframe(buffer) {
|
|
14616
|
-
const stream = new
|
|
14733
|
+
const stream = new import_binarystream144.BinaryStream(buffer);
|
|
14617
14734
|
const frames = [];
|
|
14618
14735
|
do {
|
|
14619
14736
|
const length = stream.readVarInt();
|
|
@@ -14623,7 +14740,7 @@ var Framer = class Framer2 {
|
|
|
14623
14740
|
return frames;
|
|
14624
14741
|
}
|
|
14625
14742
|
static frame(...buffers) {
|
|
14626
|
-
const stream = new
|
|
14743
|
+
const stream = new import_binarystream144.BinaryStream();
|
|
14627
14744
|
for (const buffer of buffers) {
|
|
14628
14745
|
stream.writeVarInt(buffer.length);
|
|
14629
14746
|
stream.writeBuffer(buffer);
|
|
@@ -14633,9 +14750,9 @@ var Framer = class Framer2 {
|
|
|
14633
14750
|
};
|
|
14634
14751
|
|
|
14635
14752
|
// src/proto/packet-id.ts
|
|
14636
|
-
var
|
|
14753
|
+
var import_binarystream145 = require("@serenityjs/binarystream");
|
|
14637
14754
|
function getPacketId(buffer) {
|
|
14638
|
-
const stream =
|
|
14755
|
+
const stream = import_binarystream145.BinaryStream.fromBuffer(buffer);
|
|
14639
14756
|
return stream.readVarInt();
|
|
14640
14757
|
}
|
|
14641
14758
|
__name(getPacketId, "getPacketId");
|
|
@@ -14677,11 +14794,11 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
14677
14794
|
BiomeDefinitionListPacket,
|
|
14678
14795
|
BlockAction,
|
|
14679
14796
|
BlockActorDataPacket,
|
|
14680
|
-
BlockCoordinates,
|
|
14681
14797
|
BlockEventPacket,
|
|
14682
14798
|
BlockEventType,
|
|
14683
14799
|
BlockFace,
|
|
14684
14800
|
BlockPickRequestPacket,
|
|
14801
|
+
BlockPosition,
|
|
14685
14802
|
BlockProperties,
|
|
14686
14803
|
BookActions,
|
|
14687
14804
|
BookEditAction,
|
|
@@ -14872,6 +14989,7 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
14872
14989
|
Packets,
|
|
14873
14990
|
PermissionLevel,
|
|
14874
14991
|
PlayMode,
|
|
14992
|
+
PlaySoundPacket,
|
|
14875
14993
|
PlayStatus,
|
|
14876
14994
|
PlayStatusPacket,
|
|
14877
14995
|
PlayerActionPacket,
|
|
@@ -14914,6 +15032,7 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
14914
15032
|
ScriptMessagePacket,
|
|
14915
15033
|
SerializedSkin,
|
|
14916
15034
|
ServerToClientHandshakePacket,
|
|
15035
|
+
ServerboundDiagnosticsPacket,
|
|
14917
15036
|
ServerboundLoadingScreenPacketPacket,
|
|
14918
15037
|
ServerboundLoadingScreenType,
|
|
14919
15038
|
SetActorDataPacket,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenityjs/protocol",
|
|
3
|
-
"version": "0.5.1-beta-
|
|
3
|
+
"version": "0.5.1-beta-20240916023948",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/SerenityJS/serenity",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"preset": "@serenityjs/jest-presets/jest/node"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@serenityjs/eslint-config": "0.5.1-beta-
|
|
22
|
-
"@serenityjs/jest-presets": "0.5.1-beta-
|
|
23
|
-
"@serenityjs/typescript-config": "0.5.1-beta-
|
|
21
|
+
"@serenityjs/eslint-config": "0.5.1-beta-20240916023948",
|
|
22
|
+
"@serenityjs/jest-presets": "0.5.1-beta-20240916023948",
|
|
23
|
+
"@serenityjs/typescript-config": "0.5.1-beta-20240916023948",
|
|
24
24
|
"@types/jest": "^29.5.12",
|
|
25
25
|
"@types/node": "^20.11.24",
|
|
26
26
|
"jest": "^29.7.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@serenityjs/binarystream": "^2.6.6",
|
|
32
|
-
"@serenityjs/nbt": "0.5.1-beta-
|
|
33
|
-
"@serenityjs/raknet": "0.5.1-beta-
|
|
32
|
+
"@serenityjs/nbt": "0.5.1-beta-20240916023948",
|
|
33
|
+
"@serenityjs/raknet": "0.5.1-beta-20240916023948"
|
|
34
34
|
}
|
|
35
35
|
}
|