@serenityjs/protocol 0.1.0-beta.8 → 0.1.0
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 +78 -17
- package/dist/index.js +643 -566
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(src_exports, {
|
|
|
48
48
|
BlockFace: () => BlockFace,
|
|
49
49
|
BlockPickRequestPacket: () => BlockPickRequestPacket,
|
|
50
50
|
BlockProperties: () => BlockProperties,
|
|
51
|
+
ChainedSubcommandValues: () => ChainedSubcommandValues,
|
|
51
52
|
ChangeDimensionPacket: () => ChangeDimensionPacket,
|
|
52
53
|
ChunkCoords: () => ChunkCoords,
|
|
53
54
|
ChunkRadiusUpdatePacket: () => ChunkRadiusUpdatePacket,
|
|
@@ -79,9 +80,9 @@ __export(src_exports, {
|
|
|
79
80
|
EntityAttributes: () => EntityAttributes,
|
|
80
81
|
EntityProperties: () => EntityProperties,
|
|
81
82
|
EnumConstraints: () => EnumConstraints,
|
|
83
|
+
EnumValues: () => EnumValues,
|
|
82
84
|
Enums: () => Enums,
|
|
83
85
|
Experiments: () => Experiments,
|
|
84
|
-
FormType: () => FormType,
|
|
85
86
|
Framer: () => Framer,
|
|
86
87
|
GameRuleType: () => GameRuleType,
|
|
87
88
|
GameRules: () => GameRules,
|
|
@@ -133,6 +134,7 @@ __export(src_exports, {
|
|
|
133
134
|
ModalFormData: () => ModalFormData,
|
|
134
135
|
ModalFormRequestPacket: () => ModalFormRequestPacket,
|
|
135
136
|
ModalFormResponsePacket: () => ModalFormResponsePacket,
|
|
137
|
+
ModalFormType: () => ModalFormType,
|
|
136
138
|
MoveActorAbsolutePacket: () => MoveActorAbsolutePacket,
|
|
137
139
|
MoveMode: () => MoveMode,
|
|
138
140
|
MovePlayerPacket: () => MovePlayerPacket,
|
|
@@ -154,6 +156,7 @@ __export(src_exports, {
|
|
|
154
156
|
PlayerAuthInputPacket: () => PlayerAuthInputPacket,
|
|
155
157
|
PlayerHotbarPacket: () => PlayerHotbarPacket,
|
|
156
158
|
PlayerListPacket: () => PlayerListPacket,
|
|
159
|
+
PostFixes: () => PostFixes,
|
|
157
160
|
RecordAction: () => RecordAction,
|
|
158
161
|
Records: () => Records,
|
|
159
162
|
RemoveEntityPacket: () => RemoveEntityPacket,
|
|
@@ -1040,13 +1043,13 @@ var RespawnState = /* @__PURE__ */ ((RespawnState3) => {
|
|
|
1040
1043
|
return RespawnState3;
|
|
1041
1044
|
})(RespawnState || {});
|
|
1042
1045
|
|
|
1043
|
-
// src/enums/form-type.ts
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
return
|
|
1049
|
-
})(
|
|
1046
|
+
// src/enums/modal-form-type.ts
|
|
1047
|
+
var ModalFormType = /* @__PURE__ */ ((ModalFormType2) => {
|
|
1048
|
+
ModalFormType2["Action"] = "form";
|
|
1049
|
+
ModalFormType2["Message"] = "modal";
|
|
1050
|
+
ModalFormType2["Modal"] = "custom_form";
|
|
1051
|
+
return ModalFormType2;
|
|
1052
|
+
})(ModalFormType || {});
|
|
1050
1053
|
|
|
1051
1054
|
// src/enums/update-block-layer-type.ts
|
|
1052
1055
|
var UpdateBlockLayerType = /* @__PURE__ */ ((UpdateBlockLayerType3) => {
|
|
@@ -1795,8 +1798,8 @@ var BlockFace = /* @__PURE__ */ ((BlockFace2) => {
|
|
|
1795
1798
|
})(BlockFace || {});
|
|
1796
1799
|
|
|
1797
1800
|
// src/proto/data/add-entity.ts
|
|
1798
|
-
var
|
|
1799
|
-
var
|
|
1801
|
+
var import_binarystream26 = require("@serenityjs/binarystream");
|
|
1802
|
+
var import_raknet59 = require("@serenityjs/raknet");
|
|
1800
1803
|
|
|
1801
1804
|
// src/proto/types/login-tokens.ts
|
|
1802
1805
|
var import_binarystream = require("@serenityjs/binarystream");
|
|
@@ -3556,8 +3559,19 @@ var VariableStringArray = class extends import_raknet35.DataType {
|
|
|
3556
3559
|
var import_binarystream20 = require("@serenityjs/binarystream");
|
|
3557
3560
|
var import_raknet36 = require("@serenityjs/raknet");
|
|
3558
3561
|
var Enums = class _Enums extends import_raknet36.DataType {
|
|
3562
|
+
/**
|
|
3563
|
+
* The name of the enum.
|
|
3564
|
+
*/
|
|
3559
3565
|
name;
|
|
3566
|
+
/**
|
|
3567
|
+
* The indexed values of the enum.
|
|
3568
|
+
*/
|
|
3560
3569
|
values;
|
|
3570
|
+
/**
|
|
3571
|
+
* Creates a new enum.
|
|
3572
|
+
* @param name The name of the enum.
|
|
3573
|
+
* @param values The indexed values of the enum.
|
|
3574
|
+
*/
|
|
3561
3575
|
constructor(name, values) {
|
|
3562
3576
|
super();
|
|
3563
3577
|
this.name = name;
|
|
@@ -3569,22 +3583,10 @@ var Enums = class _Enums extends import_raknet36.DataType {
|
|
|
3569
3583
|
for (let index = 0; index < amount; index++) {
|
|
3570
3584
|
const name = stream.readVarString();
|
|
3571
3585
|
const values = [];
|
|
3572
|
-
const
|
|
3573
|
-
for (let index2 = 0; index2 <
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
values.push(stream.readUint8());
|
|
3577
|
-
break;
|
|
3578
|
-
}
|
|
3579
|
-
case 65535: {
|
|
3580
|
-
values.push(stream.readUint16(endian));
|
|
3581
|
-
break;
|
|
3582
|
-
}
|
|
3583
|
-
case 16777215: {
|
|
3584
|
-
values.push(stream.readUint32(endian));
|
|
3585
|
-
break;
|
|
3586
|
-
}
|
|
3587
|
-
}
|
|
3586
|
+
const valueAmount = stream.readVarInt();
|
|
3587
|
+
for (let index2 = 0; index2 < valueAmount; index2++) {
|
|
3588
|
+
const method = enumValues.length < 255 ? import_binarystream20.Uint8 : enumValues.length < 65535 ? import_binarystream20.Uint16 : import_binarystream20.Uint32;
|
|
3589
|
+
values.push(method.read(stream, endian));
|
|
3588
3590
|
}
|
|
3589
3591
|
enums.push(new _Enums(name, values));
|
|
3590
3592
|
}
|
|
@@ -3592,10 +3594,10 @@ var Enums = class _Enums extends import_raknet36.DataType {
|
|
|
3592
3594
|
}
|
|
3593
3595
|
static write(stream, value, endian, enumValues) {
|
|
3594
3596
|
stream.writeVarInt(value.length);
|
|
3595
|
-
for (const
|
|
3596
|
-
stream.writeVarString(name);
|
|
3597
|
-
stream.writeVarInt(values.length);
|
|
3598
|
-
for (const value2 of values) {
|
|
3597
|
+
for (const enumValue of value) {
|
|
3598
|
+
stream.writeVarString(enumValue.name);
|
|
3599
|
+
stream.writeVarInt(enumValue.values.length);
|
|
3600
|
+
for (const value2 of enumValue.values) {
|
|
3599
3601
|
const method = enumValues.length < 255 ? import_binarystream20.Uint8 : enumValues.length < 65535 ? import_binarystream20.Uint16 : import_binarystream20.Uint32;
|
|
3600
3602
|
method.write(stream, value2, endian);
|
|
3601
3603
|
}
|
|
@@ -3647,12 +3649,33 @@ var Subcommands = class _Subcommands extends import_raknet37.DataType {
|
|
|
3647
3649
|
var import_binarystream22 = require("@serenityjs/binarystream");
|
|
3648
3650
|
var import_raknet38 = require("@serenityjs/raknet");
|
|
3649
3651
|
var Commands = class _Commands extends import_raknet38.DataType {
|
|
3652
|
+
/**
|
|
3653
|
+
* The name of the command.
|
|
3654
|
+
*/
|
|
3650
3655
|
name;
|
|
3656
|
+
/**
|
|
3657
|
+
* The description of the command.
|
|
3658
|
+
*/
|
|
3651
3659
|
description;
|
|
3660
|
+
/**
|
|
3661
|
+
* The flags of the command. Setting this value to 1 will make the command blue.
|
|
3662
|
+
*/
|
|
3652
3663
|
flags;
|
|
3664
|
+
/**
|
|
3665
|
+
* The permission level of the command.
|
|
3666
|
+
*/
|
|
3653
3667
|
permissionLevel;
|
|
3668
|
+
/**
|
|
3669
|
+
* The alias of the command.
|
|
3670
|
+
*/
|
|
3654
3671
|
alias;
|
|
3672
|
+
/**
|
|
3673
|
+
* The subcommands of the command.
|
|
3674
|
+
*/
|
|
3655
3675
|
subcommands;
|
|
3676
|
+
/**
|
|
3677
|
+
* The overloads of the command.
|
|
3678
|
+
*/
|
|
3656
3679
|
overloads;
|
|
3657
3680
|
constructor(name, description, flags, permissionLevel, alias, subcommands, overloads) {
|
|
3658
3681
|
super();
|
|
@@ -3686,11 +3709,10 @@ var Commands = class _Commands extends import_raknet38.DataType {
|
|
|
3686
3709
|
const parametersAmount = stream.readVarInt();
|
|
3687
3710
|
for (let k = 0; k < parametersAmount; k++) {
|
|
3688
3711
|
const name2 = stream.readVarString();
|
|
3689
|
-
const
|
|
3690
|
-
const enumType = stream.readUint16(import_binarystream22.Endianness.Little);
|
|
3712
|
+
const symbol = stream.readUint32(import_binarystream22.Endianness.Little);
|
|
3691
3713
|
const optional = stream.readBool();
|
|
3692
3714
|
const options = stream.readUint8();
|
|
3693
|
-
parameters.push({
|
|
3715
|
+
parameters.push({ symbol, name: name2, optional, options });
|
|
3694
3716
|
}
|
|
3695
3717
|
overloads.push({ chaining, parameters });
|
|
3696
3718
|
}
|
|
@@ -3732,16 +3754,9 @@ var Commands = class _Commands extends import_raknet38.DataType {
|
|
|
3732
3754
|
for (const { chaining, parameters } of overloads) {
|
|
3733
3755
|
stream.writeBool(chaining);
|
|
3734
3756
|
stream.writeVarInt(parameters.length);
|
|
3735
|
-
for (const {
|
|
3736
|
-
enumType,
|
|
3737
|
-
name: name2,
|
|
3738
|
-
optional,
|
|
3739
|
-
options,
|
|
3740
|
-
valueType
|
|
3741
|
-
} of parameters) {
|
|
3757
|
+
for (const { name: name2, symbol, optional, options } of parameters) {
|
|
3742
3758
|
stream.writeVarString(name2);
|
|
3743
|
-
stream.
|
|
3744
|
-
stream.writeUint16(enumType, import_binarystream22.Endianness.Little);
|
|
3759
|
+
stream.writeUint32(symbol, import_binarystream22.Endianness.Little);
|
|
3745
3760
|
stream.writeBool(optional);
|
|
3746
3761
|
stream.writeUint8(options);
|
|
3747
3762
|
}
|
|
@@ -3787,6 +3802,7 @@ var DynamicEnums = class _DynamicEnums extends import_raknet39.DataType {
|
|
|
3787
3802
|
|
|
3788
3803
|
// src/proto/types/enum-constraints.ts
|
|
3789
3804
|
var import_raknet40 = require("@serenityjs/raknet");
|
|
3805
|
+
var import_binarystream23 = require("@serenityjs/binarystream");
|
|
3790
3806
|
var EnumConstraints = class _EnumConstraints extends import_raknet40.DataType {
|
|
3791
3807
|
valueIndex;
|
|
3792
3808
|
enumIndex;
|
|
@@ -3801,8 +3817,8 @@ var EnumConstraints = class _EnumConstraints extends import_raknet40.DataType {
|
|
|
3801
3817
|
const enums = [];
|
|
3802
3818
|
const amount = stream.readVarInt();
|
|
3803
3819
|
for (let index = 0; index < amount; index++) {
|
|
3804
|
-
const valueIndex = stream.
|
|
3805
|
-
const enumIndex = stream.
|
|
3820
|
+
const valueIndex = stream.readUint32(import_binarystream23.Endianness.Little);
|
|
3821
|
+
const enumIndex = stream.readUint32(import_binarystream23.Endianness.Little);
|
|
3806
3822
|
const constaints = [];
|
|
3807
3823
|
const constaintsAmount = stream.readVarInt();
|
|
3808
3824
|
for (let index2 = 0; index2 < constaintsAmount; index2++) {
|
|
@@ -3814,18 +3830,19 @@ var EnumConstraints = class _EnumConstraints extends import_raknet40.DataType {
|
|
|
3814
3830
|
}
|
|
3815
3831
|
static write(stream, value) {
|
|
3816
3832
|
stream.writeVarInt(value.length);
|
|
3817
|
-
for (const
|
|
3818
|
-
stream.
|
|
3819
|
-
stream.
|
|
3820
|
-
stream.writeVarInt(constaints.length);
|
|
3821
|
-
for (const
|
|
3822
|
-
stream.writeUint8(
|
|
3833
|
+
for (const enumConstraints of value) {
|
|
3834
|
+
stream.writeUint32(enumConstraints.valueIndex, import_binarystream23.Endianness.Little);
|
|
3835
|
+
stream.writeUint32(enumConstraints.enumIndex, import_binarystream23.Endianness.Little);
|
|
3836
|
+
stream.writeVarInt(enumConstraints.constaints.length);
|
|
3837
|
+
for (const constaint of enumConstraints.constaints) {
|
|
3838
|
+
stream.writeUint8(constaint);
|
|
3839
|
+
}
|
|
3823
3840
|
}
|
|
3824
3841
|
}
|
|
3825
3842
|
};
|
|
3826
3843
|
|
|
3827
3844
|
// src/proto/types/animate-action.ts
|
|
3828
|
-
var
|
|
3845
|
+
var import_binarystream24 = require("@serenityjs/binarystream");
|
|
3829
3846
|
var import_raknet41 = require("@serenityjs/raknet");
|
|
3830
3847
|
var AnimateAction = class extends import_raknet41.DataType {
|
|
3831
3848
|
static read(stream, endian, id) {
|
|
@@ -3836,7 +3853,7 @@ var AnimateAction = class extends import_raknet41.DataType {
|
|
|
3836
3853
|
}
|
|
3837
3854
|
static write(stream, value) {
|
|
3838
3855
|
if (value !== null) {
|
|
3839
|
-
stream.writeFloat32(value,
|
|
3856
|
+
stream.writeFloat32(value, import_binarystream24.Endianness.Little);
|
|
3840
3857
|
}
|
|
3841
3858
|
}
|
|
3842
3859
|
};
|
|
@@ -4602,12 +4619,69 @@ var InventoryTransaction = class _InventoryTransaction extends import_raknet54.D
|
|
|
4602
4619
|
}
|
|
4603
4620
|
};
|
|
4604
4621
|
|
|
4605
|
-
// src/proto/
|
|
4622
|
+
// src/proto/types/enum-values.ts
|
|
4606
4623
|
var import_raknet55 = require("@serenityjs/raknet");
|
|
4607
|
-
var
|
|
4608
|
-
|
|
4624
|
+
var EnumValues = class extends import_raknet55.DataType {
|
|
4625
|
+
static read(stream) {
|
|
4626
|
+
const enumValues = [];
|
|
4627
|
+
const amount = stream.readVarInt();
|
|
4628
|
+
for (let index = 0; index < amount; index++) {
|
|
4629
|
+
enumValues.push(stream.readVarString());
|
|
4630
|
+
}
|
|
4631
|
+
return enumValues;
|
|
4632
|
+
}
|
|
4633
|
+
static write(stream, enumValues) {
|
|
4634
|
+
stream.writeVarInt(enumValues.length);
|
|
4635
|
+
for (const value of enumValues) {
|
|
4636
|
+
stream.writeVarString(value);
|
|
4637
|
+
}
|
|
4638
|
+
}
|
|
4639
|
+
};
|
|
4640
|
+
|
|
4641
|
+
// src/proto/types/chained-subcommand-values.ts
|
|
4642
|
+
var import_raknet56 = require("@serenityjs/raknet");
|
|
4643
|
+
var ChainedSubcommandValues = class extends import_raknet56.DataType {
|
|
4644
|
+
static read(stream) {
|
|
4645
|
+
const chainedSubcommandValues = [];
|
|
4646
|
+
const amount = stream.readVarInt();
|
|
4647
|
+
for (let index = 0; index < amount; index++) {
|
|
4648
|
+
chainedSubcommandValues.push(stream.readVarString());
|
|
4649
|
+
}
|
|
4650
|
+
return chainedSubcommandValues;
|
|
4651
|
+
}
|
|
4652
|
+
static write(stream, chainedSubcommandValues) {
|
|
4653
|
+
stream.writeVarInt(chainedSubcommandValues.length);
|
|
4654
|
+
for (const value of chainedSubcommandValues) {
|
|
4655
|
+
stream.writeVarString(value);
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
};
|
|
4659
|
+
|
|
4660
|
+
// src/proto/types/post-fixes.ts
|
|
4661
|
+
var import_raknet57 = require("@serenityjs/raknet");
|
|
4662
|
+
var PostFixes = class extends import_raknet57.DataType {
|
|
4663
|
+
static read(stream) {
|
|
4664
|
+
const postFixes = [];
|
|
4665
|
+
const amount = stream.readVarInt();
|
|
4666
|
+
for (let index = 0; index < amount; index++) {
|
|
4667
|
+
postFixes.push(stream.readVarString());
|
|
4668
|
+
}
|
|
4669
|
+
return postFixes;
|
|
4670
|
+
}
|
|
4671
|
+
static write(stream, postFixes) {
|
|
4672
|
+
stream.writeVarInt(postFixes.length);
|
|
4673
|
+
for (const value of postFixes) {
|
|
4674
|
+
stream.writeVarString(value);
|
|
4675
|
+
}
|
|
4676
|
+
}
|
|
4677
|
+
};
|
|
4678
|
+
|
|
4679
|
+
// src/proto/data/data-packet.ts
|
|
4680
|
+
var import_raknet58 = require("@serenityjs/raknet");
|
|
4681
|
+
var import_binarystream25 = require("@serenityjs/binarystream");
|
|
4682
|
+
var DataPacket = class extends import_raknet58.BasePacket {
|
|
4609
4683
|
static id;
|
|
4610
|
-
static id_type =
|
|
4684
|
+
static id_type = import_binarystream25.VarInt;
|
|
4611
4685
|
serialize() {
|
|
4612
4686
|
throw new Error("DataPacket.serialize() is not implemented");
|
|
4613
4687
|
}
|
|
@@ -4633,51 +4707,51 @@ var AddEntityPacket = class extends DataPacket {
|
|
|
4633
4707
|
links;
|
|
4634
4708
|
};
|
|
4635
4709
|
__decorateClass([
|
|
4636
|
-
(0,
|
|
4710
|
+
(0, import_raknet59.Serialize)(import_binarystream26.ZigZong)
|
|
4637
4711
|
], AddEntityPacket.prototype, "uniqueEntityId", 2);
|
|
4638
4712
|
__decorateClass([
|
|
4639
|
-
(0,
|
|
4713
|
+
(0, import_raknet59.Serialize)(import_binarystream26.VarLong)
|
|
4640
4714
|
], AddEntityPacket.prototype, "runtimeId", 2);
|
|
4641
4715
|
__decorateClass([
|
|
4642
|
-
(0,
|
|
4716
|
+
(0, import_raknet59.Serialize)(import_binarystream26.VarString)
|
|
4643
4717
|
], AddEntityPacket.prototype, "identifier", 2);
|
|
4644
4718
|
__decorateClass([
|
|
4645
|
-
(0,
|
|
4719
|
+
(0, import_raknet59.Serialize)(Vector3f)
|
|
4646
4720
|
], AddEntityPacket.prototype, "position", 2);
|
|
4647
4721
|
__decorateClass([
|
|
4648
|
-
(0,
|
|
4722
|
+
(0, import_raknet59.Serialize)(Vector3f)
|
|
4649
4723
|
], AddEntityPacket.prototype, "velocity", 2);
|
|
4650
4724
|
__decorateClass([
|
|
4651
|
-
(0,
|
|
4725
|
+
(0, import_raknet59.Serialize)(import_binarystream26.Float32, import_binarystream26.Endianness.Little)
|
|
4652
4726
|
], AddEntityPacket.prototype, "pitch", 2);
|
|
4653
4727
|
__decorateClass([
|
|
4654
|
-
(0,
|
|
4728
|
+
(0, import_raknet59.Serialize)(import_binarystream26.Float32, import_binarystream26.Endianness.Little)
|
|
4655
4729
|
], AddEntityPacket.prototype, "yaw", 2);
|
|
4656
4730
|
__decorateClass([
|
|
4657
|
-
(0,
|
|
4731
|
+
(0, import_raknet59.Serialize)(import_binarystream26.Float32, import_binarystream26.Endianness.Little)
|
|
4658
4732
|
], AddEntityPacket.prototype, "headYaw", 2);
|
|
4659
4733
|
__decorateClass([
|
|
4660
|
-
(0,
|
|
4734
|
+
(0, import_raknet59.Serialize)(import_binarystream26.Float32, import_binarystream26.Endianness.Little)
|
|
4661
4735
|
], AddEntityPacket.prototype, "bodyYaw", 2);
|
|
4662
4736
|
__decorateClass([
|
|
4663
|
-
(0,
|
|
4737
|
+
(0, import_raknet59.Serialize)(EntityAttributes)
|
|
4664
4738
|
], AddEntityPacket.prototype, "attributes", 2);
|
|
4665
4739
|
__decorateClass([
|
|
4666
|
-
(0,
|
|
4740
|
+
(0, import_raknet59.Serialize)(MetadataDictionary)
|
|
4667
4741
|
], AddEntityPacket.prototype, "metadata", 2);
|
|
4668
4742
|
__decorateClass([
|
|
4669
|
-
(0,
|
|
4743
|
+
(0, import_raknet59.Serialize)(EntityProperties)
|
|
4670
4744
|
], AddEntityPacket.prototype, "properties", 2);
|
|
4671
4745
|
__decorateClass([
|
|
4672
|
-
(0,
|
|
4746
|
+
(0, import_raknet59.Serialize)(Links)
|
|
4673
4747
|
], AddEntityPacket.prototype, "links", 2);
|
|
4674
4748
|
AddEntityPacket = __decorateClass([
|
|
4675
|
-
(0,
|
|
4749
|
+
(0, import_raknet59.Proto)(13 /* AddEntity */)
|
|
4676
4750
|
], AddEntityPacket);
|
|
4677
4751
|
|
|
4678
4752
|
// src/proto/data/add-item-actor.ts
|
|
4679
|
-
var
|
|
4680
|
-
var
|
|
4753
|
+
var import_binarystream27 = require("@serenityjs/binarystream");
|
|
4754
|
+
var import_raknet60 = require("@serenityjs/raknet");
|
|
4681
4755
|
var AddItemActorPacket = class extends DataPacket {
|
|
4682
4756
|
uniqueId;
|
|
4683
4757
|
runtimeId;
|
|
@@ -4688,33 +4762,33 @@ var AddItemActorPacket = class extends DataPacket {
|
|
|
4688
4762
|
fromFishing;
|
|
4689
4763
|
};
|
|
4690
4764
|
__decorateClass([
|
|
4691
|
-
(0,
|
|
4765
|
+
(0, import_raknet60.Serialize)(import_binarystream27.ZigZong)
|
|
4692
4766
|
], AddItemActorPacket.prototype, "uniqueId", 2);
|
|
4693
4767
|
__decorateClass([
|
|
4694
|
-
(0,
|
|
4768
|
+
(0, import_raknet60.Serialize)(import_binarystream27.VarLong)
|
|
4695
4769
|
], AddItemActorPacket.prototype, "runtimeId", 2);
|
|
4696
4770
|
__decorateClass([
|
|
4697
|
-
(0,
|
|
4771
|
+
(0, import_raknet60.Serialize)(NetworkItemStackDescriptor)
|
|
4698
4772
|
], AddItemActorPacket.prototype, "item", 2);
|
|
4699
4773
|
__decorateClass([
|
|
4700
|
-
(0,
|
|
4774
|
+
(0, import_raknet60.Serialize)(Vector3f)
|
|
4701
4775
|
], AddItemActorPacket.prototype, "position", 2);
|
|
4702
4776
|
__decorateClass([
|
|
4703
|
-
(0,
|
|
4777
|
+
(0, import_raknet60.Serialize)(Vector3f)
|
|
4704
4778
|
], AddItemActorPacket.prototype, "velocity", 2);
|
|
4705
4779
|
__decorateClass([
|
|
4706
|
-
(0,
|
|
4780
|
+
(0, import_raknet60.Serialize)(MetadataDictionary)
|
|
4707
4781
|
], AddItemActorPacket.prototype, "metadata", 2);
|
|
4708
4782
|
__decorateClass([
|
|
4709
|
-
(0,
|
|
4783
|
+
(0, import_raknet60.Serialize)(import_binarystream27.Bool)
|
|
4710
4784
|
], AddItemActorPacket.prototype, "fromFishing", 2);
|
|
4711
4785
|
AddItemActorPacket = __decorateClass([
|
|
4712
|
-
(0,
|
|
4786
|
+
(0, import_raknet60.Proto)(15 /* AddItemActor */)
|
|
4713
4787
|
], AddItemActorPacket);
|
|
4714
4788
|
|
|
4715
4789
|
// src/proto/data/add-player.ts
|
|
4716
|
-
var
|
|
4717
|
-
var
|
|
4790
|
+
var import_binarystream28 = require("@serenityjs/binarystream");
|
|
4791
|
+
var import_raknet61 = require("@serenityjs/raknet");
|
|
4718
4792
|
var AddPlayerPacket = class extends DataPacket {
|
|
4719
4793
|
uuid;
|
|
4720
4794
|
username;
|
|
@@ -4738,97 +4812,97 @@ var AddPlayerPacket = class extends DataPacket {
|
|
|
4738
4812
|
deviceOS;
|
|
4739
4813
|
};
|
|
4740
4814
|
__decorateClass([
|
|
4741
|
-
(0,
|
|
4815
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Uuid)
|
|
4742
4816
|
], AddPlayerPacket.prototype, "uuid", 2);
|
|
4743
4817
|
__decorateClass([
|
|
4744
|
-
(0,
|
|
4818
|
+
(0, import_raknet61.Serialize)(import_binarystream28.VarString)
|
|
4745
4819
|
], AddPlayerPacket.prototype, "username", 2);
|
|
4746
4820
|
__decorateClass([
|
|
4747
|
-
(0,
|
|
4821
|
+
(0, import_raknet61.Serialize)(import_binarystream28.VarLong)
|
|
4748
4822
|
], AddPlayerPacket.prototype, "runtimeId", 2);
|
|
4749
4823
|
__decorateClass([
|
|
4750
|
-
(0,
|
|
4824
|
+
(0, import_raknet61.Serialize)(import_binarystream28.VarString)
|
|
4751
4825
|
], AddPlayerPacket.prototype, "platformChatId", 2);
|
|
4752
4826
|
__decorateClass([
|
|
4753
|
-
(0,
|
|
4827
|
+
(0, import_raknet61.Serialize)(Vector3f)
|
|
4754
4828
|
], AddPlayerPacket.prototype, "position", 2);
|
|
4755
4829
|
__decorateClass([
|
|
4756
|
-
(0,
|
|
4830
|
+
(0, import_raknet61.Serialize)(Vector3f)
|
|
4757
4831
|
], AddPlayerPacket.prototype, "velocity", 2);
|
|
4758
4832
|
__decorateClass([
|
|
4759
|
-
(0,
|
|
4833
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Float32, import_binarystream28.Endianness.Little)
|
|
4760
4834
|
], AddPlayerPacket.prototype, "pitch", 2);
|
|
4761
4835
|
__decorateClass([
|
|
4762
|
-
(0,
|
|
4836
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Float32, import_binarystream28.Endianness.Little)
|
|
4763
4837
|
], AddPlayerPacket.prototype, "yaw", 2);
|
|
4764
4838
|
__decorateClass([
|
|
4765
|
-
(0,
|
|
4839
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Float32, import_binarystream28.Endianness.Little)
|
|
4766
4840
|
], AddPlayerPacket.prototype, "headYaw", 2);
|
|
4767
4841
|
__decorateClass([
|
|
4768
|
-
(0,
|
|
4842
|
+
(0, import_raknet61.Serialize)(NetworkItemStackDescriptor)
|
|
4769
4843
|
], AddPlayerPacket.prototype, "heldItem", 2);
|
|
4770
4844
|
__decorateClass([
|
|
4771
|
-
(0,
|
|
4845
|
+
(0, import_raknet61.Serialize)(import_binarystream28.ZigZag)
|
|
4772
4846
|
], AddPlayerPacket.prototype, "gamemode", 2);
|
|
4773
4847
|
__decorateClass([
|
|
4774
|
-
(0,
|
|
4848
|
+
(0, import_raknet61.Serialize)(MetadataDictionary)
|
|
4775
4849
|
], AddPlayerPacket.prototype, "metadata", 2);
|
|
4776
4850
|
__decorateClass([
|
|
4777
|
-
(0,
|
|
4851
|
+
(0, import_raknet61.Serialize)(EntityProperties)
|
|
4778
4852
|
], AddPlayerPacket.prototype, "properties", 2);
|
|
4779
4853
|
__decorateClass([
|
|
4780
|
-
(0,
|
|
4854
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Int64, import_binarystream28.Endianness.Little)
|
|
4781
4855
|
], AddPlayerPacket.prototype, "uniqueEntityId", 2);
|
|
4782
4856
|
__decorateClass([
|
|
4783
|
-
(0,
|
|
4857
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Uint8)
|
|
4784
4858
|
], AddPlayerPacket.prototype, "premissionLevel", 2);
|
|
4785
4859
|
__decorateClass([
|
|
4786
|
-
(0,
|
|
4860
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Uint8)
|
|
4787
4861
|
], AddPlayerPacket.prototype, "commandPermission", 2);
|
|
4788
4862
|
__decorateClass([
|
|
4789
|
-
(0,
|
|
4863
|
+
(0, import_raknet61.Serialize)(AbilityLayers)
|
|
4790
4864
|
], AddPlayerPacket.prototype, "abilities", 2);
|
|
4791
4865
|
__decorateClass([
|
|
4792
|
-
(0,
|
|
4866
|
+
(0, import_raknet61.Serialize)(Links)
|
|
4793
4867
|
], AddPlayerPacket.prototype, "links", 2);
|
|
4794
4868
|
__decorateClass([
|
|
4795
|
-
(0,
|
|
4869
|
+
(0, import_raknet61.Serialize)(import_binarystream28.VarString)
|
|
4796
4870
|
], AddPlayerPacket.prototype, "deviceId", 2);
|
|
4797
4871
|
__decorateClass([
|
|
4798
|
-
(0,
|
|
4872
|
+
(0, import_raknet61.Serialize)(import_binarystream28.Int32, import_binarystream28.Endianness.Little)
|
|
4799
4873
|
], AddPlayerPacket.prototype, "deviceOS", 2);
|
|
4800
4874
|
AddPlayerPacket = __decorateClass([
|
|
4801
|
-
(0,
|
|
4875
|
+
(0, import_raknet61.Proto)(12 /* AddPlayer */)
|
|
4802
4876
|
], AddPlayerPacket);
|
|
4803
4877
|
|
|
4804
4878
|
// src/proto/data/animate.ts
|
|
4805
|
-
var
|
|
4806
|
-
var
|
|
4879
|
+
var import_binarystream29 = require("@serenityjs/binarystream");
|
|
4880
|
+
var import_raknet62 = require("@serenityjs/raknet");
|
|
4807
4881
|
var AnimatePacket = class extends DataPacket {
|
|
4808
4882
|
id;
|
|
4809
4883
|
runtimeEntityId;
|
|
4810
4884
|
boatRowingTime;
|
|
4811
4885
|
};
|
|
4812
4886
|
__decorateClass([
|
|
4813
|
-
(0,
|
|
4887
|
+
(0, import_raknet62.Serialize)(import_binarystream29.ZigZag)
|
|
4814
4888
|
], AnimatePacket.prototype, "id", 2);
|
|
4815
4889
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4890
|
+
(0, import_raknet62.Serialize)(import_binarystream29.VarLong)
|
|
4817
4891
|
], AnimatePacket.prototype, "runtimeEntityId", 2);
|
|
4818
4892
|
__decorateClass([
|
|
4819
|
-
(0,
|
|
4893
|
+
(0, import_raknet62.Serialize)(AnimateAction)
|
|
4820
4894
|
], AnimatePacket.prototype, "boatRowingTime", 2);
|
|
4821
4895
|
AnimatePacket = __decorateClass([
|
|
4822
|
-
(0,
|
|
4896
|
+
(0, import_raknet62.Proto)(44 /* Animate */)
|
|
4823
4897
|
], AnimatePacket);
|
|
4824
4898
|
|
|
4825
4899
|
// src/proto/data/available-commands.ts
|
|
4826
|
-
var
|
|
4827
|
-
var
|
|
4900
|
+
var import_binarystream30 = require("@serenityjs/binarystream");
|
|
4901
|
+
var import_raknet63 = require("@serenityjs/raknet");
|
|
4828
4902
|
var AvailableCommandsPacket = class extends DataPacket {
|
|
4829
4903
|
enumValues;
|
|
4830
|
-
|
|
4831
|
-
|
|
4904
|
+
chainedSubcommandValues;
|
|
4905
|
+
postFixes;
|
|
4832
4906
|
enums;
|
|
4833
4907
|
subcommands;
|
|
4834
4908
|
commands;
|
|
@@ -4836,35 +4910,35 @@ var AvailableCommandsPacket = class extends DataPacket {
|
|
|
4836
4910
|
enumConstraints;
|
|
4837
4911
|
};
|
|
4838
4912
|
__decorateClass([
|
|
4839
|
-
(0,
|
|
4913
|
+
(0, import_raknet63.Serialize)(EnumValues)
|
|
4840
4914
|
], AvailableCommandsPacket.prototype, "enumValues", 2);
|
|
4841
4915
|
__decorateClass([
|
|
4842
|
-
(0,
|
|
4843
|
-
], AvailableCommandsPacket.prototype, "
|
|
4916
|
+
(0, import_raknet63.Serialize)(ChainedSubcommandValues)
|
|
4917
|
+
], AvailableCommandsPacket.prototype, "chainedSubcommandValues", 2);
|
|
4844
4918
|
__decorateClass([
|
|
4845
|
-
(0,
|
|
4846
|
-
], AvailableCommandsPacket.prototype, "
|
|
4919
|
+
(0, import_raknet63.Serialize)(PostFixes)
|
|
4920
|
+
], AvailableCommandsPacket.prototype, "postFixes", 2);
|
|
4847
4921
|
__decorateClass([
|
|
4848
|
-
(0,
|
|
4922
|
+
(0, import_raknet63.Serialize)(Enums, import_binarystream30.Endianness.Little, "enumValues")
|
|
4849
4923
|
], AvailableCommandsPacket.prototype, "enums", 2);
|
|
4850
4924
|
__decorateClass([
|
|
4851
|
-
(0,
|
|
4925
|
+
(0, import_raknet63.Serialize)(Subcommands)
|
|
4852
4926
|
], AvailableCommandsPacket.prototype, "subcommands", 2);
|
|
4853
4927
|
__decorateClass([
|
|
4854
|
-
(0,
|
|
4928
|
+
(0, import_raknet63.Serialize)(Commands)
|
|
4855
4929
|
], AvailableCommandsPacket.prototype, "commands", 2);
|
|
4856
4930
|
__decorateClass([
|
|
4857
|
-
(0,
|
|
4931
|
+
(0, import_raknet63.Serialize)(DynamicEnums)
|
|
4858
4932
|
], AvailableCommandsPacket.prototype, "dynamicEnums", 2);
|
|
4859
4933
|
__decorateClass([
|
|
4860
|
-
(0,
|
|
4934
|
+
(0, import_raknet63.Serialize)(EnumConstraints)
|
|
4861
4935
|
], AvailableCommandsPacket.prototype, "enumConstraints", 2);
|
|
4862
4936
|
AvailableCommandsPacket = __decorateClass([
|
|
4863
|
-
(0,
|
|
4937
|
+
(0, import_raknet63.Proto)(76 /* AvailableCommands */)
|
|
4864
4938
|
], AvailableCommandsPacket);
|
|
4865
4939
|
|
|
4866
4940
|
// src/proto/data/biome-definition-list.ts
|
|
4867
|
-
var
|
|
4941
|
+
var import_raknet64 = require("@serenityjs/raknet");
|
|
4868
4942
|
var BiomeDefinitionListPacket = class extends DataPacket {
|
|
4869
4943
|
biomes;
|
|
4870
4944
|
serialize() {
|
|
@@ -4879,12 +4953,12 @@ var BiomeDefinitionListPacket = class extends DataPacket {
|
|
|
4879
4953
|
}
|
|
4880
4954
|
};
|
|
4881
4955
|
BiomeDefinitionListPacket = __decorateClass([
|
|
4882
|
-
(0,
|
|
4956
|
+
(0, import_raknet64.Proto)(122 /* BiomeDefinitionList */)
|
|
4883
4957
|
], BiomeDefinitionListPacket);
|
|
4884
4958
|
|
|
4885
4959
|
// src/proto/data/block-pick-request.ts
|
|
4886
|
-
var
|
|
4887
|
-
var
|
|
4960
|
+
var import_binarystream31 = require("@serenityjs/binarystream");
|
|
4961
|
+
var import_raknet65 = require("@serenityjs/raknet");
|
|
4888
4962
|
var BlockPickRequestPacket = class extends DataPacket {
|
|
4889
4963
|
x;
|
|
4890
4964
|
y;
|
|
@@ -4893,115 +4967,115 @@ var BlockPickRequestPacket = class extends DataPacket {
|
|
|
4893
4967
|
selectedSlot;
|
|
4894
4968
|
};
|
|
4895
4969
|
__decorateClass([
|
|
4896
|
-
(0,
|
|
4970
|
+
(0, import_raknet65.Serialize)(import_binarystream31.ZigZag)
|
|
4897
4971
|
], BlockPickRequestPacket.prototype, "x", 2);
|
|
4898
4972
|
__decorateClass([
|
|
4899
|
-
(0,
|
|
4973
|
+
(0, import_raknet65.Serialize)(import_binarystream31.ZigZag)
|
|
4900
4974
|
], BlockPickRequestPacket.prototype, "y", 2);
|
|
4901
4975
|
__decorateClass([
|
|
4902
|
-
(0,
|
|
4976
|
+
(0, import_raknet65.Serialize)(import_binarystream31.ZigZag)
|
|
4903
4977
|
], BlockPickRequestPacket.prototype, "z", 2);
|
|
4904
4978
|
__decorateClass([
|
|
4905
|
-
(0,
|
|
4979
|
+
(0, import_raknet65.Serialize)(import_binarystream31.Bool)
|
|
4906
4980
|
], BlockPickRequestPacket.prototype, "addData", 2);
|
|
4907
4981
|
__decorateClass([
|
|
4908
|
-
(0,
|
|
4982
|
+
(0, import_raknet65.Serialize)(import_binarystream31.Uint8)
|
|
4909
4983
|
], BlockPickRequestPacket.prototype, "selectedSlot", 2);
|
|
4910
4984
|
BlockPickRequestPacket = __decorateClass([
|
|
4911
|
-
(0,
|
|
4985
|
+
(0, import_raknet65.Proto)(34 /* BlockPickRequest */)
|
|
4912
4986
|
], BlockPickRequestPacket);
|
|
4913
4987
|
|
|
4914
4988
|
// src/proto/data/change-dimension.ts
|
|
4915
|
-
var
|
|
4916
|
-
var
|
|
4989
|
+
var import_binarystream32 = require("@serenityjs/binarystream");
|
|
4990
|
+
var import_raknet66 = require("@serenityjs/raknet");
|
|
4917
4991
|
var ChangeDimensionPacket = class extends DataPacket {
|
|
4918
4992
|
dimension;
|
|
4919
4993
|
position;
|
|
4920
4994
|
respawn;
|
|
4921
4995
|
};
|
|
4922
4996
|
__decorateClass([
|
|
4923
|
-
(0,
|
|
4997
|
+
(0, import_raknet66.Serialize)(import_binarystream32.ZigZag)
|
|
4924
4998
|
], ChangeDimensionPacket.prototype, "dimension", 2);
|
|
4925
4999
|
__decorateClass([
|
|
4926
|
-
(0,
|
|
5000
|
+
(0, import_raknet66.Serialize)(Vector3f)
|
|
4927
5001
|
], ChangeDimensionPacket.prototype, "position", 2);
|
|
4928
5002
|
__decorateClass([
|
|
4929
|
-
(0,
|
|
5003
|
+
(0, import_raknet66.Serialize)(import_binarystream32.Bool)
|
|
4930
5004
|
], ChangeDimensionPacket.prototype, "respawn", 2);
|
|
4931
5005
|
ChangeDimensionPacket = __decorateClass([
|
|
4932
|
-
(0,
|
|
5006
|
+
(0, import_raknet66.Proto)(61 /* ChangeDimension */)
|
|
4933
5007
|
], ChangeDimensionPacket);
|
|
4934
5008
|
|
|
4935
5009
|
// src/proto/data/chunk-radius-update.ts
|
|
4936
|
-
var
|
|
4937
|
-
var
|
|
5010
|
+
var import_binarystream33 = require("@serenityjs/binarystream");
|
|
5011
|
+
var import_raknet67 = require("@serenityjs/raknet");
|
|
4938
5012
|
var ChunkRadiusUpdatePacket = class extends DataPacket {
|
|
4939
5013
|
radius;
|
|
4940
5014
|
};
|
|
4941
5015
|
__decorateClass([
|
|
4942
|
-
(0,
|
|
5016
|
+
(0, import_raknet67.Serialize)(import_binarystream33.ZigZag)
|
|
4943
5017
|
], ChunkRadiusUpdatePacket.prototype, "radius", 2);
|
|
4944
5018
|
ChunkRadiusUpdatePacket = __decorateClass([
|
|
4945
|
-
(0,
|
|
5019
|
+
(0, import_raknet67.Proto)(70 /* ChunkRadiusUpdate */)
|
|
4946
5020
|
], ChunkRadiusUpdatePacket);
|
|
4947
5021
|
|
|
4948
5022
|
// src/proto/data/command-output.ts
|
|
4949
|
-
var
|
|
5023
|
+
var import_raknet68 = require("@serenityjs/raknet");
|
|
4950
5024
|
var CommandOutputPacket = class extends DataPacket {
|
|
4951
5025
|
originData;
|
|
4952
5026
|
};
|
|
4953
5027
|
__decorateClass([
|
|
4954
|
-
(0,
|
|
5028
|
+
(0, import_raknet68.Serialize)(CommandOutputData)
|
|
4955
5029
|
], CommandOutputPacket.prototype, "originData", 2);
|
|
4956
5030
|
CommandOutputPacket = __decorateClass([
|
|
4957
|
-
(0,
|
|
5031
|
+
(0, import_raknet68.Proto)(79 /* CommandOutput */)
|
|
4958
5032
|
], CommandOutputPacket);
|
|
4959
5033
|
|
|
4960
5034
|
// src/proto/data/command-request.ts
|
|
4961
|
-
var
|
|
4962
|
-
var
|
|
5035
|
+
var import_binarystream34 = require("@serenityjs/binarystream");
|
|
5036
|
+
var import_raknet69 = require("@serenityjs/raknet");
|
|
4963
5037
|
var CommandRequestPacket = class extends DataPacket {
|
|
4964
|
-
|
|
4965
|
-
|
|
5038
|
+
command;
|
|
5039
|
+
origin;
|
|
4966
5040
|
isInternal;
|
|
4967
5041
|
version;
|
|
4968
5042
|
};
|
|
4969
5043
|
__decorateClass([
|
|
4970
|
-
(0,
|
|
4971
|
-
], CommandRequestPacket.prototype, "
|
|
5044
|
+
(0, import_raknet69.Serialize)(import_binarystream34.VarString)
|
|
5045
|
+
], CommandRequestPacket.prototype, "command", 2);
|
|
4972
5046
|
__decorateClass([
|
|
4973
|
-
(0,
|
|
4974
|
-
], CommandRequestPacket.prototype, "
|
|
5047
|
+
(0, import_raknet69.Serialize)(CommandOriginData)
|
|
5048
|
+
], CommandRequestPacket.prototype, "origin", 2);
|
|
4975
5049
|
__decorateClass([
|
|
4976
|
-
(0,
|
|
5050
|
+
(0, import_raknet69.Serialize)(import_binarystream34.Bool)
|
|
4977
5051
|
], CommandRequestPacket.prototype, "isInternal", 2);
|
|
4978
5052
|
__decorateClass([
|
|
4979
|
-
(0,
|
|
5053
|
+
(0, import_raknet69.Serialize)(import_binarystream34.VarInt)
|
|
4980
5054
|
], CommandRequestPacket.prototype, "version", 2);
|
|
4981
5055
|
CommandRequestPacket = __decorateClass([
|
|
4982
|
-
(0,
|
|
5056
|
+
(0, import_raknet69.Proto)(77 /* CommandRequest */)
|
|
4983
5057
|
], CommandRequestPacket);
|
|
4984
5058
|
|
|
4985
5059
|
// src/proto/data/container-close.ts
|
|
4986
|
-
var
|
|
4987
|
-
var
|
|
5060
|
+
var import_binarystream35 = require("@serenityjs/binarystream");
|
|
5061
|
+
var import_raknet70 = require("@serenityjs/raknet");
|
|
4988
5062
|
var ContainerClosePacket = class extends DataPacket {
|
|
4989
5063
|
containerId;
|
|
4990
5064
|
serverInitiated;
|
|
4991
5065
|
};
|
|
4992
5066
|
__decorateClass([
|
|
4993
|
-
(0,
|
|
5067
|
+
(0, import_raknet70.Serialize)(import_binarystream35.Int8)
|
|
4994
5068
|
], ContainerClosePacket.prototype, "containerId", 2);
|
|
4995
5069
|
__decorateClass([
|
|
4996
|
-
(0,
|
|
5070
|
+
(0, import_raknet70.Serialize)(import_binarystream35.Bool)
|
|
4997
5071
|
], ContainerClosePacket.prototype, "serverInitiated", 2);
|
|
4998
5072
|
ContainerClosePacket = __decorateClass([
|
|
4999
|
-
(0,
|
|
5073
|
+
(0, import_raknet70.Proto)(47 /* ContainerClose */)
|
|
5000
5074
|
], ContainerClosePacket);
|
|
5001
5075
|
|
|
5002
5076
|
// src/proto/data/container-open.ts
|
|
5003
|
-
var
|
|
5004
|
-
var
|
|
5077
|
+
var import_binarystream36 = require("@serenityjs/binarystream");
|
|
5078
|
+
var import_raknet71 = require("@serenityjs/raknet");
|
|
5005
5079
|
var ContainerOpenPacket = class extends DataPacket {
|
|
5006
5080
|
containerId;
|
|
5007
5081
|
containerType;
|
|
@@ -5009,168 +5083,168 @@ var ContainerOpenPacket = class extends DataPacket {
|
|
|
5009
5083
|
targetRuntimeEntityId;
|
|
5010
5084
|
};
|
|
5011
5085
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
5086
|
+
(0, import_raknet71.Serialize)(import_binarystream36.Int8)
|
|
5013
5087
|
], ContainerOpenPacket.prototype, "containerId", 2);
|
|
5014
5088
|
__decorateClass([
|
|
5015
|
-
(0,
|
|
5089
|
+
(0, import_raknet71.Serialize)(import_binarystream36.Int8)
|
|
5016
5090
|
], ContainerOpenPacket.prototype, "containerType", 2);
|
|
5017
5091
|
__decorateClass([
|
|
5018
|
-
(0,
|
|
5092
|
+
(0, import_raknet71.Serialize)(BlockCoordinates)
|
|
5019
5093
|
], ContainerOpenPacket.prototype, "position", 2);
|
|
5020
5094
|
__decorateClass([
|
|
5021
|
-
(0,
|
|
5095
|
+
(0, import_raknet71.Serialize)(import_binarystream36.ZigZong)
|
|
5022
5096
|
], ContainerOpenPacket.prototype, "targetRuntimeEntityId", 2);
|
|
5023
5097
|
ContainerOpenPacket = __decorateClass([
|
|
5024
|
-
(0,
|
|
5098
|
+
(0, import_raknet71.Proto)(46 /* ContainerOpen */)
|
|
5025
5099
|
], ContainerOpenPacket);
|
|
5026
5100
|
|
|
5027
5101
|
// src/proto/data/creative-content.ts
|
|
5028
|
-
var
|
|
5102
|
+
var import_raknet72 = require("@serenityjs/raknet");
|
|
5029
5103
|
var CreativeContentPacket = class extends DataPacket {
|
|
5030
5104
|
items;
|
|
5031
5105
|
};
|
|
5032
5106
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5107
|
+
(0, import_raknet72.Serialize)(CreativeItems)
|
|
5034
5108
|
], CreativeContentPacket.prototype, "items", 2);
|
|
5035
5109
|
CreativeContentPacket = __decorateClass([
|
|
5036
|
-
(0,
|
|
5110
|
+
(0, import_raknet72.Proto)(145 /* CreativeContent */)
|
|
5037
5111
|
], CreativeContentPacket);
|
|
5038
5112
|
|
|
5039
5113
|
// src/proto/data/disconnect.ts
|
|
5040
|
-
var
|
|
5041
|
-
var
|
|
5114
|
+
var import_binarystream37 = require("@serenityjs/binarystream");
|
|
5115
|
+
var import_raknet73 = require("@serenityjs/raknet");
|
|
5042
5116
|
var DisconnectPacket = class extends DataPacket {
|
|
5043
5117
|
reason;
|
|
5044
5118
|
hideDisconnectScreen;
|
|
5045
5119
|
message;
|
|
5046
5120
|
};
|
|
5047
5121
|
__decorateClass([
|
|
5048
|
-
(0,
|
|
5122
|
+
(0, import_raknet73.Serialize)(import_binarystream37.ZigZag)
|
|
5049
5123
|
], DisconnectPacket.prototype, "reason", 2);
|
|
5050
5124
|
__decorateClass([
|
|
5051
|
-
(0,
|
|
5125
|
+
(0, import_raknet73.Serialize)(import_binarystream37.Bool)
|
|
5052
5126
|
], DisconnectPacket.prototype, "hideDisconnectScreen", 2);
|
|
5053
5127
|
__decorateClass([
|
|
5054
|
-
(0,
|
|
5128
|
+
(0, import_raknet73.Serialize)(import_binarystream37.VarString)
|
|
5055
5129
|
], DisconnectPacket.prototype, "message", 2);
|
|
5056
5130
|
DisconnectPacket = __decorateClass([
|
|
5057
|
-
(0,
|
|
5131
|
+
(0, import_raknet73.Proto)(5 /* Disconnect */)
|
|
5058
5132
|
], DisconnectPacket);
|
|
5059
5133
|
|
|
5060
5134
|
// src/proto/data/interact.ts
|
|
5061
|
-
var
|
|
5062
|
-
var
|
|
5135
|
+
var import_binarystream38 = require("@serenityjs/binarystream");
|
|
5136
|
+
var import_raknet74 = require("@serenityjs/raknet");
|
|
5063
5137
|
var InteractPacket = class extends DataPacket {
|
|
5064
5138
|
action;
|
|
5065
5139
|
targetUniqueEntityId;
|
|
5066
5140
|
position;
|
|
5067
5141
|
};
|
|
5068
5142
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5143
|
+
(0, import_raknet74.Serialize)(import_binarystream38.Uint8)
|
|
5070
5144
|
], InteractPacket.prototype, "action", 2);
|
|
5071
5145
|
__decorateClass([
|
|
5072
|
-
(0,
|
|
5146
|
+
(0, import_raknet74.Serialize)(import_binarystream38.VarLong)
|
|
5073
5147
|
], InteractPacket.prototype, "targetUniqueEntityId", 2);
|
|
5074
5148
|
__decorateClass([
|
|
5075
|
-
(0,
|
|
5149
|
+
(0, import_raknet74.Serialize)(InteractPosition, import_binarystream38.Endianness.Big, "action")
|
|
5076
5150
|
], InteractPacket.prototype, "position", 2);
|
|
5077
5151
|
InteractPacket = __decorateClass([
|
|
5078
|
-
(0,
|
|
5152
|
+
(0, import_raknet74.Proto)(33 /* Interact */)
|
|
5079
5153
|
], InteractPacket);
|
|
5080
5154
|
|
|
5081
5155
|
// src/proto/data/inventory-content.ts
|
|
5082
|
-
var
|
|
5083
|
-
var
|
|
5156
|
+
var import_binarystream39 = require("@serenityjs/binarystream");
|
|
5157
|
+
var import_raknet75 = require("@serenityjs/raknet");
|
|
5084
5158
|
var InventoryContentPacket = class extends DataPacket {
|
|
5085
5159
|
containerId;
|
|
5086
5160
|
items;
|
|
5087
5161
|
};
|
|
5088
5162
|
__decorateClass([
|
|
5089
|
-
(0,
|
|
5163
|
+
(0, import_raknet75.Serialize)(import_binarystream39.VarInt)
|
|
5090
5164
|
], InventoryContentPacket.prototype, "containerId", 2);
|
|
5091
5165
|
__decorateClass([
|
|
5092
|
-
(0,
|
|
5166
|
+
(0, import_raknet75.Serialize)(ItemStacks)
|
|
5093
5167
|
], InventoryContentPacket.prototype, "items", 2);
|
|
5094
5168
|
InventoryContentPacket = __decorateClass([
|
|
5095
|
-
(0,
|
|
5169
|
+
(0, import_raknet75.Proto)(49 /* InventoryContent */)
|
|
5096
5170
|
], InventoryContentPacket);
|
|
5097
5171
|
|
|
5098
5172
|
// src/proto/data/inventory-slot.ts
|
|
5099
|
-
var
|
|
5100
|
-
var
|
|
5173
|
+
var import_binarystream40 = require("@serenityjs/binarystream");
|
|
5174
|
+
var import_raknet76 = require("@serenityjs/raknet");
|
|
5101
5175
|
var InventorySlotPacket = class extends DataPacket {
|
|
5102
5176
|
containerId;
|
|
5103
5177
|
slot;
|
|
5104
5178
|
item;
|
|
5105
5179
|
};
|
|
5106
5180
|
__decorateClass([
|
|
5107
|
-
(0,
|
|
5181
|
+
(0, import_raknet76.Serialize)(import_binarystream40.VarInt)
|
|
5108
5182
|
], InventorySlotPacket.prototype, "containerId", 2);
|
|
5109
5183
|
__decorateClass([
|
|
5110
|
-
(0,
|
|
5184
|
+
(0, import_raknet76.Serialize)(import_binarystream40.VarInt)
|
|
5111
5185
|
], InventorySlotPacket.prototype, "slot", 2);
|
|
5112
5186
|
__decorateClass([
|
|
5113
|
-
(0,
|
|
5187
|
+
(0, import_raknet76.Serialize)(NetworkItemStackDescriptor)
|
|
5114
5188
|
], InventorySlotPacket.prototype, "item", 2);
|
|
5115
5189
|
InventorySlotPacket = __decorateClass([
|
|
5116
|
-
(0,
|
|
5190
|
+
(0, import_raknet76.Proto)(50 /* InventorySlot */)
|
|
5117
5191
|
], InventorySlotPacket);
|
|
5118
5192
|
|
|
5119
5193
|
// src/proto/data/inventory-transaction.ts
|
|
5120
|
-
var
|
|
5194
|
+
var import_raknet77 = require("@serenityjs/raknet");
|
|
5121
5195
|
var InventoryTransactionPacket = class extends DataPacket {
|
|
5122
5196
|
legacy;
|
|
5123
5197
|
transaction;
|
|
5124
5198
|
};
|
|
5125
5199
|
__decorateClass([
|
|
5126
|
-
(0,
|
|
5200
|
+
(0, import_raknet77.Serialize)(LegacyTransaction)
|
|
5127
5201
|
], InventoryTransactionPacket.prototype, "legacy", 2);
|
|
5128
5202
|
__decorateClass([
|
|
5129
|
-
(0,
|
|
5203
|
+
(0, import_raknet77.Serialize)(InventoryTransaction)
|
|
5130
5204
|
], InventoryTransactionPacket.prototype, "transaction", 2);
|
|
5131
5205
|
InventoryTransactionPacket = __decorateClass([
|
|
5132
|
-
(0,
|
|
5206
|
+
(0, import_raknet77.Proto)(30 /* InventoryTransaction */)
|
|
5133
5207
|
], InventoryTransactionPacket);
|
|
5134
5208
|
|
|
5135
5209
|
// src/proto/data/item-component.ts
|
|
5136
|
-
var
|
|
5210
|
+
var import_raknet78 = require("@serenityjs/raknet");
|
|
5137
5211
|
var ItemComponentPacket = class extends DataPacket {
|
|
5138
5212
|
items;
|
|
5139
5213
|
};
|
|
5140
5214
|
__decorateClass([
|
|
5141
|
-
(0,
|
|
5215
|
+
(0, import_raknet78.Serialize)(ComponentItem)
|
|
5142
5216
|
], ItemComponentPacket.prototype, "items", 2);
|
|
5143
5217
|
ItemComponentPacket = __decorateClass([
|
|
5144
|
-
(0,
|
|
5218
|
+
(0, import_raknet78.Proto)(162 /* ItemComponent */)
|
|
5145
5219
|
], ItemComponentPacket);
|
|
5146
5220
|
|
|
5147
5221
|
// src/proto/data/item-stack-request.ts
|
|
5148
|
-
var
|
|
5222
|
+
var import_raknet79 = require("@serenityjs/raknet");
|
|
5149
5223
|
var ItemStackRequestPacket = class extends DataPacket {
|
|
5150
5224
|
requests;
|
|
5151
5225
|
};
|
|
5152
5226
|
__decorateClass([
|
|
5153
|
-
(0,
|
|
5227
|
+
(0, import_raknet79.Serialize)(ItemStackRequests)
|
|
5154
5228
|
], ItemStackRequestPacket.prototype, "requests", 2);
|
|
5155
5229
|
ItemStackRequestPacket = __decorateClass([
|
|
5156
|
-
(0,
|
|
5230
|
+
(0, import_raknet79.Proto)(147 /* ItemStackRequest */)
|
|
5157
5231
|
], ItemStackRequestPacket);
|
|
5158
5232
|
|
|
5159
5233
|
// src/proto/data/item-stack-response.ts
|
|
5160
|
-
var
|
|
5234
|
+
var import_raknet80 = require("@serenityjs/raknet");
|
|
5161
5235
|
var ItemStackResponsePacket = class extends DataPacket {
|
|
5162
5236
|
responses;
|
|
5163
5237
|
};
|
|
5164
5238
|
__decorateClass([
|
|
5165
|
-
(0,
|
|
5239
|
+
(0, import_raknet80.Serialize)(ItemStackResponses)
|
|
5166
5240
|
], ItemStackResponsePacket.prototype, "responses", 2);
|
|
5167
5241
|
ItemStackResponsePacket = __decorateClass([
|
|
5168
|
-
(0,
|
|
5242
|
+
(0, import_raknet80.Proto)(148 /* ItemStackResponse */)
|
|
5169
5243
|
], ItemStackResponsePacket);
|
|
5170
5244
|
|
|
5171
5245
|
// src/proto/data/level-chunk.ts
|
|
5172
|
-
var
|
|
5173
|
-
var
|
|
5246
|
+
var import_binarystream41 = require("@serenityjs/binarystream");
|
|
5247
|
+
var import_raknet81 = require("@serenityjs/raknet");
|
|
5174
5248
|
var LevelChunkPacket = class extends DataPacket {
|
|
5175
5249
|
x;
|
|
5176
5250
|
z;
|
|
@@ -5186,7 +5260,7 @@ var LevelChunkPacket = class extends DataPacket {
|
|
|
5186
5260
|
this.writeZigZag(this.dimension);
|
|
5187
5261
|
if (this.cacheEnabled) {
|
|
5188
5262
|
this.writeVarInt(-2);
|
|
5189
|
-
this.writeUint16(this.subChunkCount,
|
|
5263
|
+
this.writeUint16(this.subChunkCount, import_binarystream41.Endianness.Little);
|
|
5190
5264
|
} else {
|
|
5191
5265
|
this.writeVarInt(this.subChunkCount);
|
|
5192
5266
|
}
|
|
@@ -5194,7 +5268,7 @@ var LevelChunkPacket = class extends DataPacket {
|
|
|
5194
5268
|
if (this.blobs) {
|
|
5195
5269
|
this.writeVarInt(this.blobs.length);
|
|
5196
5270
|
for (const hash of this.blobs) {
|
|
5197
|
-
this.writeUint64(hash,
|
|
5271
|
+
this.writeUint64(hash, import_binarystream41.Endianness.Little);
|
|
5198
5272
|
}
|
|
5199
5273
|
}
|
|
5200
5274
|
this.writeVarInt(this.data.byteLength);
|
|
@@ -5208,14 +5282,14 @@ var LevelChunkPacket = class extends DataPacket {
|
|
|
5208
5282
|
this.dimension = this.readZigZag();
|
|
5209
5283
|
this.subChunkCount = this.readVarInt();
|
|
5210
5284
|
if (this.subChunkCount === -2) {
|
|
5211
|
-
this.subChunkCount = this.readUint16(
|
|
5285
|
+
this.subChunkCount = this.readUint16(import_binarystream41.Endianness.Little);
|
|
5212
5286
|
}
|
|
5213
5287
|
this.cacheEnabled = this.readBool();
|
|
5214
5288
|
if (this.cacheEnabled) {
|
|
5215
5289
|
const blobCount = this.readVarInt();
|
|
5216
5290
|
this.blobs = [];
|
|
5217
5291
|
for (let index = 0; index < blobCount; index++) {
|
|
5218
|
-
this.blobs.push(this.readUint64(
|
|
5292
|
+
this.blobs.push(this.readUint64(import_binarystream41.Endianness.Little));
|
|
5219
5293
|
}
|
|
5220
5294
|
}
|
|
5221
5295
|
const length = this.readVarInt();
|
|
@@ -5224,33 +5298,33 @@ var LevelChunkPacket = class extends DataPacket {
|
|
|
5224
5298
|
}
|
|
5225
5299
|
};
|
|
5226
5300
|
LevelChunkPacket = __decorateClass([
|
|
5227
|
-
(0,
|
|
5301
|
+
(0, import_raknet81.Proto)(58 /* LevelChunk */)
|
|
5228
5302
|
], LevelChunkPacket);
|
|
5229
5303
|
|
|
5230
5304
|
// src/proto/data/level-event.ts
|
|
5231
|
-
var
|
|
5232
|
-
var
|
|
5305
|
+
var import_binarystream42 = require("@serenityjs/binarystream");
|
|
5306
|
+
var import_raknet82 = require("@serenityjs/raknet");
|
|
5233
5307
|
var LevelEventPacket = class extends DataPacket {
|
|
5234
5308
|
event;
|
|
5235
5309
|
position;
|
|
5236
5310
|
data;
|
|
5237
5311
|
};
|
|
5238
5312
|
__decorateClass([
|
|
5239
|
-
(0,
|
|
5313
|
+
(0, import_raknet82.Serialize)(import_binarystream42.ZigZag)
|
|
5240
5314
|
], LevelEventPacket.prototype, "event", 2);
|
|
5241
5315
|
__decorateClass([
|
|
5242
|
-
(0,
|
|
5316
|
+
(0, import_raknet82.Serialize)(Vector3f)
|
|
5243
5317
|
], LevelEventPacket.prototype, "position", 2);
|
|
5244
5318
|
__decorateClass([
|
|
5245
|
-
(0,
|
|
5319
|
+
(0, import_raknet82.Serialize)(import_binarystream42.ZigZag)
|
|
5246
5320
|
], LevelEventPacket.prototype, "data", 2);
|
|
5247
5321
|
LevelEventPacket = __decorateClass([
|
|
5248
|
-
(0,
|
|
5322
|
+
(0, import_raknet82.Proto)(25 /* LevelEvent */)
|
|
5249
5323
|
], LevelEventPacket);
|
|
5250
5324
|
|
|
5251
5325
|
// src/proto/data/level-sound-event.ts
|
|
5252
|
-
var
|
|
5253
|
-
var
|
|
5326
|
+
var import_binarystream43 = require("@serenityjs/binarystream");
|
|
5327
|
+
var import_raknet83 = require("@serenityjs/raknet");
|
|
5254
5328
|
var LevelSoundEventPacket = class extends DataPacket {
|
|
5255
5329
|
event;
|
|
5256
5330
|
position;
|
|
@@ -5260,47 +5334,47 @@ var LevelSoundEventPacket = class extends DataPacket {
|
|
|
5260
5334
|
isGlobal;
|
|
5261
5335
|
};
|
|
5262
5336
|
__decorateClass([
|
|
5263
|
-
(0,
|
|
5337
|
+
(0, import_raknet83.Serialize)(import_binarystream43.VarInt)
|
|
5264
5338
|
], LevelSoundEventPacket.prototype, "event", 2);
|
|
5265
5339
|
__decorateClass([
|
|
5266
|
-
(0,
|
|
5340
|
+
(0, import_raknet83.Serialize)(Vector3f)
|
|
5267
5341
|
], LevelSoundEventPacket.prototype, "position", 2);
|
|
5268
5342
|
__decorateClass([
|
|
5269
|
-
(0,
|
|
5343
|
+
(0, import_raknet83.Serialize)(import_binarystream43.ZigZag)
|
|
5270
5344
|
], LevelSoundEventPacket.prototype, "data", 2);
|
|
5271
5345
|
__decorateClass([
|
|
5272
|
-
(0,
|
|
5346
|
+
(0, import_raknet83.Serialize)(import_binarystream43.VarString)
|
|
5273
5347
|
], LevelSoundEventPacket.prototype, "actorIdentifier", 2);
|
|
5274
5348
|
__decorateClass([
|
|
5275
|
-
(0,
|
|
5349
|
+
(0, import_raknet83.Serialize)(import_binarystream43.Bool)
|
|
5276
5350
|
], LevelSoundEventPacket.prototype, "isBabyMob", 2);
|
|
5277
5351
|
__decorateClass([
|
|
5278
|
-
(0,
|
|
5352
|
+
(0, import_raknet83.Serialize)(import_binarystream43.Bool)
|
|
5279
5353
|
], LevelSoundEventPacket.prototype, "isGlobal", 2);
|
|
5280
5354
|
LevelSoundEventPacket = __decorateClass([
|
|
5281
|
-
(0,
|
|
5355
|
+
(0, import_raknet83.Proto)(123 /* LevelSoundEvent */)
|
|
5282
5356
|
], LevelSoundEventPacket);
|
|
5283
5357
|
|
|
5284
5358
|
// src/proto/data/login.ts
|
|
5285
|
-
var
|
|
5286
|
-
var
|
|
5359
|
+
var import_binarystream44 = require("@serenityjs/binarystream");
|
|
5360
|
+
var import_raknet84 = require("@serenityjs/raknet");
|
|
5287
5361
|
var LoginPacket = class extends DataPacket {
|
|
5288
5362
|
protocol;
|
|
5289
5363
|
tokens;
|
|
5290
5364
|
};
|
|
5291
5365
|
__decorateClass([
|
|
5292
|
-
(0,
|
|
5366
|
+
(0, import_raknet84.Serialize)(import_binarystream44.Int32)
|
|
5293
5367
|
], LoginPacket.prototype, "protocol", 2);
|
|
5294
5368
|
__decorateClass([
|
|
5295
|
-
(0,
|
|
5369
|
+
(0, import_raknet84.Serialize)(LoginTokens)
|
|
5296
5370
|
], LoginPacket.prototype, "tokens", 2);
|
|
5297
5371
|
LoginPacket = __decorateClass([
|
|
5298
|
-
(0,
|
|
5372
|
+
(0, import_raknet84.Proto)(1 /* Login */)
|
|
5299
5373
|
], LoginPacket);
|
|
5300
5374
|
|
|
5301
5375
|
// src/proto/data/mob-equipment.ts
|
|
5302
|
-
var
|
|
5303
|
-
var
|
|
5376
|
+
var import_binarystream45 = require("@serenityjs/binarystream");
|
|
5377
|
+
var import_raknet85 = require("@serenityjs/raknet");
|
|
5304
5378
|
var MobEquipmentPacket = class extends DataPacket {
|
|
5305
5379
|
runtimeEntityId;
|
|
5306
5380
|
item;
|
|
@@ -5309,44 +5383,44 @@ var MobEquipmentPacket = class extends DataPacket {
|
|
|
5309
5383
|
containerId;
|
|
5310
5384
|
};
|
|
5311
5385
|
__decorateClass([
|
|
5312
|
-
(0,
|
|
5386
|
+
(0, import_raknet85.Serialize)(import_binarystream45.VarLong)
|
|
5313
5387
|
], MobEquipmentPacket.prototype, "runtimeEntityId", 2);
|
|
5314
5388
|
__decorateClass([
|
|
5315
|
-
(0,
|
|
5389
|
+
(0, import_raknet85.Serialize)(NetworkItemStackDescriptor)
|
|
5316
5390
|
], MobEquipmentPacket.prototype, "item", 2);
|
|
5317
5391
|
__decorateClass([
|
|
5318
|
-
(0,
|
|
5392
|
+
(0, import_raknet85.Serialize)(import_binarystream45.Uint8)
|
|
5319
5393
|
], MobEquipmentPacket.prototype, "slot", 2);
|
|
5320
5394
|
__decorateClass([
|
|
5321
|
-
(0,
|
|
5395
|
+
(0, import_raknet85.Serialize)(import_binarystream45.Uint8)
|
|
5322
5396
|
], MobEquipmentPacket.prototype, "selectedSlot", 2);
|
|
5323
5397
|
__decorateClass([
|
|
5324
|
-
(0,
|
|
5398
|
+
(0, import_raknet85.Serialize)(import_binarystream45.Int8)
|
|
5325
5399
|
], MobEquipmentPacket.prototype, "containerId", 2);
|
|
5326
5400
|
MobEquipmentPacket = __decorateClass([
|
|
5327
|
-
(0,
|
|
5401
|
+
(0, import_raknet85.Proto)(31 /* MobEquipment */)
|
|
5328
5402
|
], MobEquipmentPacket);
|
|
5329
5403
|
|
|
5330
5404
|
// src/proto/data/modal-form-request.ts
|
|
5331
|
-
var
|
|
5332
|
-
var
|
|
5405
|
+
var import_binarystream46 = require("@serenityjs/binarystream");
|
|
5406
|
+
var import_raknet86 = require("@serenityjs/raknet");
|
|
5333
5407
|
var ModalFormRequestPacket = class extends DataPacket {
|
|
5334
5408
|
id;
|
|
5335
5409
|
payload;
|
|
5336
5410
|
};
|
|
5337
5411
|
__decorateClass([
|
|
5338
|
-
(0,
|
|
5412
|
+
(0, import_raknet86.Serialize)(import_binarystream46.VarInt)
|
|
5339
5413
|
], ModalFormRequestPacket.prototype, "id", 2);
|
|
5340
5414
|
__decorateClass([
|
|
5341
|
-
(0,
|
|
5415
|
+
(0, import_raknet86.Serialize)(import_binarystream46.VarString)
|
|
5342
5416
|
], ModalFormRequestPacket.prototype, "payload", 2);
|
|
5343
5417
|
ModalFormRequestPacket = __decorateClass([
|
|
5344
|
-
(0,
|
|
5418
|
+
(0, import_raknet86.Proto)(100 /* ModalFormRequest */)
|
|
5345
5419
|
], ModalFormRequestPacket);
|
|
5346
5420
|
|
|
5347
5421
|
// src/proto/data/modal-form-response.ts
|
|
5348
|
-
var
|
|
5349
|
-
var
|
|
5422
|
+
var import_binarystream47 = require("@serenityjs/binarystream");
|
|
5423
|
+
var import_raknet87 = require("@serenityjs/raknet");
|
|
5350
5424
|
var ModalFormResponsePacket = class extends DataPacket {
|
|
5351
5425
|
id;
|
|
5352
5426
|
response;
|
|
@@ -5355,27 +5429,27 @@ var ModalFormResponsePacket = class extends DataPacket {
|
|
|
5355
5429
|
reason;
|
|
5356
5430
|
};
|
|
5357
5431
|
__decorateClass([
|
|
5358
|
-
(0,
|
|
5432
|
+
(0, import_raknet87.Serialize)(import_binarystream47.VarInt)
|
|
5359
5433
|
], ModalFormResponsePacket.prototype, "id", 2);
|
|
5360
5434
|
__decorateClass([
|
|
5361
|
-
(0,
|
|
5435
|
+
(0, import_raknet87.Serialize)(import_binarystream47.Bool)
|
|
5362
5436
|
], ModalFormResponsePacket.prototype, "response", 2);
|
|
5363
5437
|
__decorateClass([
|
|
5364
|
-
(0,
|
|
5438
|
+
(0, import_raknet87.Serialize)(ModalFormData, import_binarystream47.Endianness.Big, "response")
|
|
5365
5439
|
], ModalFormResponsePacket.prototype, "data", 2);
|
|
5366
5440
|
__decorateClass([
|
|
5367
|
-
(0,
|
|
5441
|
+
(0, import_raknet87.Serialize)(import_binarystream47.Bool)
|
|
5368
5442
|
], ModalFormResponsePacket.prototype, "canceled", 2);
|
|
5369
5443
|
__decorateClass([
|
|
5370
|
-
(0,
|
|
5444
|
+
(0, import_raknet87.Serialize)(ModalFormCanceled, import_binarystream47.Endianness.Big, "canceled")
|
|
5371
5445
|
], ModalFormResponsePacket.prototype, "reason", 2);
|
|
5372
5446
|
ModalFormResponsePacket = __decorateClass([
|
|
5373
|
-
(0,
|
|
5447
|
+
(0, import_raknet87.Proto)(101 /* ModalFormResponse */)
|
|
5374
5448
|
], ModalFormResponsePacket);
|
|
5375
5449
|
|
|
5376
5450
|
// src/proto/data/move-actor-absolute.ts
|
|
5377
|
-
var
|
|
5378
|
-
var
|
|
5451
|
+
var import_binarystream48 = require("@serenityjs/binarystream");
|
|
5452
|
+
var import_raknet88 = require("@serenityjs/raknet");
|
|
5379
5453
|
var MoveActorAbsolutePacket = class extends DataPacket {
|
|
5380
5454
|
runtimeId;
|
|
5381
5455
|
flags;
|
|
@@ -5383,24 +5457,24 @@ var MoveActorAbsolutePacket = class extends DataPacket {
|
|
|
5383
5457
|
rotation;
|
|
5384
5458
|
};
|
|
5385
5459
|
__decorateClass([
|
|
5386
|
-
(0,
|
|
5460
|
+
(0, import_raknet88.Serialize)(import_binarystream48.VarLong)
|
|
5387
5461
|
], MoveActorAbsolutePacket.prototype, "runtimeId", 2);
|
|
5388
5462
|
__decorateClass([
|
|
5389
|
-
(0,
|
|
5463
|
+
(0, import_raknet88.Serialize)(import_binarystream48.Uint8)
|
|
5390
5464
|
], MoveActorAbsolutePacket.prototype, "flags", 2);
|
|
5391
5465
|
__decorateClass([
|
|
5392
|
-
(0,
|
|
5466
|
+
(0, import_raknet88.Serialize)(Vector3f)
|
|
5393
5467
|
], MoveActorAbsolutePacket.prototype, "position", 2);
|
|
5394
5468
|
__decorateClass([
|
|
5395
|
-
(0,
|
|
5469
|
+
(0, import_raknet88.Serialize)(Rotation)
|
|
5396
5470
|
], MoveActorAbsolutePacket.prototype, "rotation", 2);
|
|
5397
5471
|
MoveActorAbsolutePacket = __decorateClass([
|
|
5398
|
-
(0,
|
|
5472
|
+
(0, import_raknet88.Proto)(18 /* MoveActorAbsolute */)
|
|
5399
5473
|
], MoveActorAbsolutePacket);
|
|
5400
5474
|
|
|
5401
5475
|
// src/proto/data/move-player.ts
|
|
5402
|
-
var
|
|
5403
|
-
var
|
|
5476
|
+
var import_binarystream49 = require("@serenityjs/binarystream");
|
|
5477
|
+
var import_raknet89 = require("@serenityjs/raknet");
|
|
5404
5478
|
var MovePlayerPacket = class extends DataPacket {
|
|
5405
5479
|
runtimeId;
|
|
5406
5480
|
position;
|
|
@@ -5414,63 +5488,63 @@ var MovePlayerPacket = class extends DataPacket {
|
|
|
5414
5488
|
tick;
|
|
5415
5489
|
};
|
|
5416
5490
|
__decorateClass([
|
|
5417
|
-
(0,
|
|
5491
|
+
(0, import_raknet89.Serialize)(import_binarystream49.VarLong)
|
|
5418
5492
|
], MovePlayerPacket.prototype, "runtimeId", 2);
|
|
5419
5493
|
__decorateClass([
|
|
5420
|
-
(0,
|
|
5494
|
+
(0, import_raknet89.Serialize)(Vector3f)
|
|
5421
5495
|
], MovePlayerPacket.prototype, "position", 2);
|
|
5422
5496
|
__decorateClass([
|
|
5423
|
-
(0,
|
|
5497
|
+
(0, import_raknet89.Serialize)(import_binarystream49.Float32, import_binarystream49.Endianness.Little)
|
|
5424
5498
|
], MovePlayerPacket.prototype, "pitch", 2);
|
|
5425
5499
|
__decorateClass([
|
|
5426
|
-
(0,
|
|
5500
|
+
(0, import_raknet89.Serialize)(import_binarystream49.Float32, import_binarystream49.Endianness.Little)
|
|
5427
5501
|
], MovePlayerPacket.prototype, "yaw", 2);
|
|
5428
5502
|
__decorateClass([
|
|
5429
|
-
(0,
|
|
5503
|
+
(0, import_raknet89.Serialize)(import_binarystream49.Float32, import_binarystream49.Endianness.Little)
|
|
5430
5504
|
], MovePlayerPacket.prototype, "headYaw", 2);
|
|
5431
5505
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5506
|
+
(0, import_raknet89.Serialize)(import_binarystream49.Uint8)
|
|
5433
5507
|
], MovePlayerPacket.prototype, "mode", 2);
|
|
5434
5508
|
__decorateClass([
|
|
5435
|
-
(0,
|
|
5509
|
+
(0, import_raknet89.Serialize)(import_binarystream49.Bool)
|
|
5436
5510
|
], MovePlayerPacket.prototype, "onGround", 2);
|
|
5437
5511
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5512
|
+
(0, import_raknet89.Serialize)(import_binarystream49.VarLong)
|
|
5439
5513
|
], MovePlayerPacket.prototype, "riddenRuntimeId", 2);
|
|
5440
5514
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5515
|
+
(0, import_raknet89.Serialize)(TeleportCause, import_binarystream49.Endianness.Little)
|
|
5442
5516
|
], MovePlayerPacket.prototype, "cause", 2);
|
|
5443
5517
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5518
|
+
(0, import_raknet89.Serialize)(import_binarystream49.VarLong)
|
|
5445
5519
|
], MovePlayerPacket.prototype, "tick", 2);
|
|
5446
5520
|
MovePlayerPacket = __decorateClass([
|
|
5447
|
-
(0,
|
|
5521
|
+
(0, import_raknet89.Proto)(19 /* MovePlayer */)
|
|
5448
5522
|
], MovePlayerPacket);
|
|
5449
5523
|
|
|
5450
5524
|
// src/proto/data/network-chunk-publisher-update.ts
|
|
5451
|
-
var
|
|
5452
|
-
var
|
|
5525
|
+
var import_binarystream50 = require("@serenityjs/binarystream");
|
|
5526
|
+
var import_raknet90 = require("@serenityjs/raknet");
|
|
5453
5527
|
var NetworkChunkPublisherUpdatePacket = class extends DataPacket {
|
|
5454
5528
|
coordinate;
|
|
5455
5529
|
radius;
|
|
5456
5530
|
savedChunks;
|
|
5457
5531
|
};
|
|
5458
5532
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5533
|
+
(0, import_raknet90.Serialize)(BlockCoordinates)
|
|
5460
5534
|
], NetworkChunkPublisherUpdatePacket.prototype, "coordinate", 2);
|
|
5461
5535
|
__decorateClass([
|
|
5462
|
-
(0,
|
|
5536
|
+
(0, import_raknet90.Serialize)(import_binarystream50.VarInt)
|
|
5463
5537
|
], NetworkChunkPublisherUpdatePacket.prototype, "radius", 2);
|
|
5464
5538
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5539
|
+
(0, import_raknet90.Serialize)(ChunkCoords)
|
|
5466
5540
|
], NetworkChunkPublisherUpdatePacket.prototype, "savedChunks", 2);
|
|
5467
5541
|
NetworkChunkPublisherUpdatePacket = __decorateClass([
|
|
5468
|
-
(0,
|
|
5542
|
+
(0, import_raknet90.Proto)(121 /* NetworkChunkPublisherUpdate */)
|
|
5469
5543
|
], NetworkChunkPublisherUpdatePacket);
|
|
5470
5544
|
|
|
5471
5545
|
// src/proto/data/network-settings.ts
|
|
5472
|
-
var
|
|
5473
|
-
var
|
|
5546
|
+
var import_binarystream51 = require("@serenityjs/binarystream");
|
|
5547
|
+
var import_raknet91 = require("@serenityjs/raknet");
|
|
5474
5548
|
var NetworkSettingsPacket = class extends DataPacket {
|
|
5475
5549
|
compressionThreshold;
|
|
5476
5550
|
compressionMethod;
|
|
@@ -5479,27 +5553,27 @@ var NetworkSettingsPacket = class extends DataPacket {
|
|
|
5479
5553
|
clientScalar;
|
|
5480
5554
|
};
|
|
5481
5555
|
__decorateClass([
|
|
5482
|
-
(0,
|
|
5556
|
+
(0, import_raknet91.Serialize)(import_binarystream51.Short, import_binarystream51.Endianness.Little)
|
|
5483
5557
|
], NetworkSettingsPacket.prototype, "compressionThreshold", 2);
|
|
5484
5558
|
__decorateClass([
|
|
5485
|
-
(0,
|
|
5559
|
+
(0, import_raknet91.Serialize)(import_binarystream51.Short, import_binarystream51.Endianness.Little)
|
|
5486
5560
|
], NetworkSettingsPacket.prototype, "compressionMethod", 2);
|
|
5487
5561
|
__decorateClass([
|
|
5488
|
-
(0,
|
|
5562
|
+
(0, import_raknet91.Serialize)(import_binarystream51.Bool)
|
|
5489
5563
|
], NetworkSettingsPacket.prototype, "clientThrottle", 2);
|
|
5490
5564
|
__decorateClass([
|
|
5491
|
-
(0,
|
|
5565
|
+
(0, import_raknet91.Serialize)(import_binarystream51.Uint8)
|
|
5492
5566
|
], NetworkSettingsPacket.prototype, "clientThreshold", 2);
|
|
5493
5567
|
__decorateClass([
|
|
5494
|
-
(0,
|
|
5568
|
+
(0, import_raknet91.Serialize)(import_binarystream51.Float32, import_binarystream51.Endianness.Little)
|
|
5495
5569
|
], NetworkSettingsPacket.prototype, "clientScalar", 2);
|
|
5496
5570
|
NetworkSettingsPacket = __decorateClass([
|
|
5497
|
-
(0,
|
|
5571
|
+
(0, import_raknet91.Proto)(143 /* NetworkSettings */)
|
|
5498
5572
|
], NetworkSettingsPacket);
|
|
5499
5573
|
|
|
5500
5574
|
// src/proto/data/packet-violation-warning.ts
|
|
5501
|
-
var
|
|
5502
|
-
var
|
|
5575
|
+
var import_binarystream52 = require("@serenityjs/binarystream");
|
|
5576
|
+
var import_raknet92 = require("@serenityjs/raknet");
|
|
5503
5577
|
var PacketViolationWarningPacket = class extends DataPacket {
|
|
5504
5578
|
type;
|
|
5505
5579
|
severity;
|
|
@@ -5507,37 +5581,37 @@ var PacketViolationWarningPacket = class extends DataPacket {
|
|
|
5507
5581
|
context;
|
|
5508
5582
|
};
|
|
5509
5583
|
__decorateClass([
|
|
5510
|
-
(0,
|
|
5584
|
+
(0, import_raknet92.Serialize)(import_binarystream52.ZigZag)
|
|
5511
5585
|
], PacketViolationWarningPacket.prototype, "type", 2);
|
|
5512
5586
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5587
|
+
(0, import_raknet92.Serialize)(import_binarystream52.ZigZag)
|
|
5514
5588
|
], PacketViolationWarningPacket.prototype, "severity", 2);
|
|
5515
5589
|
__decorateClass([
|
|
5516
|
-
(0,
|
|
5590
|
+
(0, import_raknet92.Serialize)(import_binarystream52.ZigZag)
|
|
5517
5591
|
], PacketViolationWarningPacket.prototype, "packet", 2);
|
|
5518
5592
|
__decorateClass([
|
|
5519
|
-
(0,
|
|
5593
|
+
(0, import_raknet92.Serialize)(import_binarystream52.VarString)
|
|
5520
5594
|
], PacketViolationWarningPacket.prototype, "context", 2);
|
|
5521
5595
|
PacketViolationWarningPacket = __decorateClass([
|
|
5522
|
-
(0,
|
|
5596
|
+
(0, import_raknet92.Proto)(156 /* PacketViolationWarning */)
|
|
5523
5597
|
], PacketViolationWarningPacket);
|
|
5524
5598
|
|
|
5525
5599
|
// src/proto/data/play-status.ts
|
|
5526
|
-
var
|
|
5527
|
-
var
|
|
5600
|
+
var import_binarystream53 = require("@serenityjs/binarystream");
|
|
5601
|
+
var import_raknet93 = require("@serenityjs/raknet");
|
|
5528
5602
|
var PlayStatusPacket = class extends DataPacket {
|
|
5529
5603
|
status;
|
|
5530
5604
|
};
|
|
5531
5605
|
__decorateClass([
|
|
5532
|
-
(0,
|
|
5606
|
+
(0, import_raknet93.Serialize)(import_binarystream53.Int32)
|
|
5533
5607
|
], PlayStatusPacket.prototype, "status", 2);
|
|
5534
5608
|
PlayStatusPacket = __decorateClass([
|
|
5535
|
-
(0,
|
|
5609
|
+
(0, import_raknet93.Proto)(2 /* PlayStatus */)
|
|
5536
5610
|
], PlayStatusPacket);
|
|
5537
5611
|
|
|
5538
5612
|
// src/proto/data/player-action.ts
|
|
5539
|
-
var
|
|
5540
|
-
var
|
|
5613
|
+
var import_binarystream54 = require("@serenityjs/binarystream");
|
|
5614
|
+
var import_raknet94 = require("@serenityjs/raknet");
|
|
5541
5615
|
var PlayerActionPacket = class extends DataPacket {
|
|
5542
5616
|
entityRuntimeId;
|
|
5543
5617
|
action;
|
|
@@ -5546,27 +5620,27 @@ var PlayerActionPacket = class extends DataPacket {
|
|
|
5546
5620
|
face;
|
|
5547
5621
|
};
|
|
5548
5622
|
__decorateClass([
|
|
5549
|
-
(0,
|
|
5623
|
+
(0, import_raknet94.Serialize)(import_binarystream54.VarLong)
|
|
5550
5624
|
], PlayerActionPacket.prototype, "entityRuntimeId", 2);
|
|
5551
5625
|
__decorateClass([
|
|
5552
|
-
(0,
|
|
5626
|
+
(0, import_raknet94.Serialize)(import_binarystream54.ZigZag)
|
|
5553
5627
|
], PlayerActionPacket.prototype, "action", 2);
|
|
5554
5628
|
__decorateClass([
|
|
5555
|
-
(0,
|
|
5629
|
+
(0, import_raknet94.Serialize)(BlockCoordinates)
|
|
5556
5630
|
], PlayerActionPacket.prototype, "blockPosition", 2);
|
|
5557
5631
|
__decorateClass([
|
|
5558
|
-
(0,
|
|
5632
|
+
(0, import_raknet94.Serialize)(BlockCoordinates)
|
|
5559
5633
|
], PlayerActionPacket.prototype, "resultPosition", 2);
|
|
5560
5634
|
__decorateClass([
|
|
5561
|
-
(0,
|
|
5635
|
+
(0, import_raknet94.Serialize)(import_binarystream54.ZigZag)
|
|
5562
5636
|
], PlayerActionPacket.prototype, "face", 2);
|
|
5563
5637
|
PlayerActionPacket = __decorateClass([
|
|
5564
|
-
(0,
|
|
5638
|
+
(0, import_raknet94.Proto)(36 /* PlayerAction */)
|
|
5565
5639
|
], PlayerActionPacket);
|
|
5566
5640
|
|
|
5567
5641
|
// src/proto/data/player-auth-input.ts
|
|
5568
|
-
var
|
|
5569
|
-
var
|
|
5642
|
+
var import_binarystream55 = require("@serenityjs/binarystream");
|
|
5643
|
+
var import_raknet95 = require("@serenityjs/raknet");
|
|
5570
5644
|
var PlayerAuthInputPacket = class extends DataPacket {
|
|
5571
5645
|
pitch;
|
|
5572
5646
|
yaw;
|
|
@@ -5577,131 +5651,131 @@ var PlayerAuthInputPacket = class extends DataPacket {
|
|
|
5577
5651
|
inputMode;
|
|
5578
5652
|
};
|
|
5579
5653
|
__decorateClass([
|
|
5580
|
-
(0,
|
|
5654
|
+
(0, import_raknet95.Serialize)(import_binarystream55.Float32, import_binarystream55.Endianness.Little)
|
|
5581
5655
|
], PlayerAuthInputPacket.prototype, "pitch", 2);
|
|
5582
5656
|
__decorateClass([
|
|
5583
|
-
(0,
|
|
5657
|
+
(0, import_raknet95.Serialize)(import_binarystream55.Float32, import_binarystream55.Endianness.Little)
|
|
5584
5658
|
], PlayerAuthInputPacket.prototype, "yaw", 2);
|
|
5585
5659
|
__decorateClass([
|
|
5586
|
-
(0,
|
|
5660
|
+
(0, import_raknet95.Serialize)(Vector3f)
|
|
5587
5661
|
], PlayerAuthInputPacket.prototype, "position", 2);
|
|
5588
5662
|
__decorateClass([
|
|
5589
|
-
(0,
|
|
5663
|
+
(0, import_raknet95.Serialize)(Vector2f)
|
|
5590
5664
|
], PlayerAuthInputPacket.prototype, "motion", 2);
|
|
5591
5665
|
__decorateClass([
|
|
5592
|
-
(0,
|
|
5666
|
+
(0, import_raknet95.Serialize)(import_binarystream55.Float32, import_binarystream55.Endianness.Little)
|
|
5593
5667
|
], PlayerAuthInputPacket.prototype, "headYaw", 2);
|
|
5594
5668
|
__decorateClass([
|
|
5595
|
-
(0,
|
|
5669
|
+
(0, import_raknet95.Serialize)(import_binarystream55.VarLong)
|
|
5596
5670
|
], PlayerAuthInputPacket.prototype, "inputData", 2);
|
|
5597
5671
|
__decorateClass([
|
|
5598
|
-
(0,
|
|
5672
|
+
(0, import_raknet95.Serialize)(import_binarystream55.VarInt)
|
|
5599
5673
|
], PlayerAuthInputPacket.prototype, "inputMode", 2);
|
|
5600
5674
|
PlayerAuthInputPacket = __decorateClass([
|
|
5601
|
-
(0,
|
|
5675
|
+
(0, import_raknet95.Proto)(144 /* PlayerAuthInput */)
|
|
5602
5676
|
], PlayerAuthInputPacket);
|
|
5603
5677
|
|
|
5604
5678
|
// src/proto/data/player-hotbar.ts
|
|
5605
|
-
var
|
|
5606
|
-
var
|
|
5679
|
+
var import_binarystream56 = require("@serenityjs/binarystream");
|
|
5680
|
+
var import_raknet96 = require("@serenityjs/raknet");
|
|
5607
5681
|
var PlayerHotbarPacket = class extends DataPacket {
|
|
5608
5682
|
selectedSlot;
|
|
5609
5683
|
windowId;
|
|
5610
5684
|
selectSlot;
|
|
5611
5685
|
};
|
|
5612
5686
|
__decorateClass([
|
|
5613
|
-
(0,
|
|
5687
|
+
(0, import_raknet96.Serialize)(import_binarystream56.VarInt)
|
|
5614
5688
|
], PlayerHotbarPacket.prototype, "selectedSlot", 2);
|
|
5615
5689
|
__decorateClass([
|
|
5616
|
-
(0,
|
|
5690
|
+
(0, import_raknet96.Serialize)(import_binarystream56.Int8)
|
|
5617
5691
|
], PlayerHotbarPacket.prototype, "windowId", 2);
|
|
5618
5692
|
__decorateClass([
|
|
5619
|
-
(0,
|
|
5693
|
+
(0, import_raknet96.Serialize)(import_binarystream56.Bool)
|
|
5620
5694
|
], PlayerHotbarPacket.prototype, "selectSlot", 2);
|
|
5621
5695
|
PlayerHotbarPacket = __decorateClass([
|
|
5622
|
-
(0,
|
|
5696
|
+
(0, import_raknet96.Proto)(48 /* PlayerHotbar */)
|
|
5623
5697
|
], PlayerHotbarPacket);
|
|
5624
5698
|
|
|
5625
5699
|
// src/proto/data/player-list.ts
|
|
5626
|
-
var
|
|
5627
|
-
var
|
|
5700
|
+
var import_binarystream57 = require("@serenityjs/binarystream");
|
|
5701
|
+
var import_raknet97 = require("@serenityjs/raknet");
|
|
5628
5702
|
var PlayerListPacket = class extends DataPacket {
|
|
5629
5703
|
action;
|
|
5630
5704
|
records;
|
|
5631
5705
|
};
|
|
5632
5706
|
__decorateClass([
|
|
5633
|
-
(0,
|
|
5707
|
+
(0, import_raknet97.Serialize)(import_binarystream57.Uint8)
|
|
5634
5708
|
], PlayerListPacket.prototype, "action", 2);
|
|
5635
5709
|
__decorateClass([
|
|
5636
|
-
(0,
|
|
5710
|
+
(0, import_raknet97.Serialize)(Records, import_binarystream57.Endianness.Little, "action")
|
|
5637
5711
|
], PlayerListPacket.prototype, "records", 2);
|
|
5638
5712
|
PlayerListPacket = __decorateClass([
|
|
5639
|
-
(0,
|
|
5713
|
+
(0, import_raknet97.Proto)(63 /* PlayerList */)
|
|
5640
5714
|
], PlayerListPacket);
|
|
5641
5715
|
|
|
5642
5716
|
// src/proto/data/remove-entity.ts
|
|
5643
|
-
var
|
|
5644
|
-
var
|
|
5717
|
+
var import_binarystream58 = require("@serenityjs/binarystream");
|
|
5718
|
+
var import_raknet98 = require("@serenityjs/raknet");
|
|
5645
5719
|
var RemoveEntityPacket = class extends DataPacket {
|
|
5646
5720
|
uniqueEntityId;
|
|
5647
5721
|
};
|
|
5648
5722
|
__decorateClass([
|
|
5649
|
-
(0,
|
|
5723
|
+
(0, import_raknet98.Serialize)(import_binarystream58.ZigZong)
|
|
5650
5724
|
], RemoveEntityPacket.prototype, "uniqueEntityId", 2);
|
|
5651
5725
|
RemoveEntityPacket = __decorateClass([
|
|
5652
|
-
(0,
|
|
5726
|
+
(0, import_raknet98.Proto)(14 /* RemoveEntity */)
|
|
5653
5727
|
], RemoveEntityPacket);
|
|
5654
5728
|
|
|
5655
5729
|
// src/proto/data/request-chunk-radius.ts
|
|
5656
|
-
var
|
|
5657
|
-
var
|
|
5730
|
+
var import_binarystream59 = require("@serenityjs/binarystream");
|
|
5731
|
+
var import_raknet99 = require("@serenityjs/raknet");
|
|
5658
5732
|
var RequestChunkRadiusPacket = class extends DataPacket {
|
|
5659
5733
|
radius;
|
|
5660
5734
|
maxRadius;
|
|
5661
5735
|
};
|
|
5662
5736
|
__decorateClass([
|
|
5663
|
-
(0,
|
|
5737
|
+
(0, import_raknet99.Serialize)(import_binarystream59.ZigZag)
|
|
5664
5738
|
], RequestChunkRadiusPacket.prototype, "radius", 2);
|
|
5665
5739
|
__decorateClass([
|
|
5666
|
-
(0,
|
|
5740
|
+
(0, import_raknet99.Serialize)(import_binarystream59.Uint8)
|
|
5667
5741
|
], RequestChunkRadiusPacket.prototype, "maxRadius", 2);
|
|
5668
5742
|
RequestChunkRadiusPacket = __decorateClass([
|
|
5669
|
-
(0,
|
|
5743
|
+
(0, import_raknet99.Proto)(69 /* RequestChunkRadius */)
|
|
5670
5744
|
], RequestChunkRadiusPacket);
|
|
5671
5745
|
|
|
5672
5746
|
// src/proto/data/request-network-settings.ts
|
|
5673
|
-
var
|
|
5674
|
-
var
|
|
5747
|
+
var import_binarystream60 = require("@serenityjs/binarystream");
|
|
5748
|
+
var import_raknet100 = require("@serenityjs/raknet");
|
|
5675
5749
|
var RequestNetworkSettingsPacket = class extends DataPacket {
|
|
5676
5750
|
protocol;
|
|
5677
5751
|
};
|
|
5678
5752
|
__decorateClass([
|
|
5679
|
-
(0,
|
|
5753
|
+
(0, import_raknet100.Serialize)(import_binarystream60.Int32)
|
|
5680
5754
|
], RequestNetworkSettingsPacket.prototype, "protocol", 2);
|
|
5681
5755
|
RequestNetworkSettingsPacket = __decorateClass([
|
|
5682
|
-
(0,
|
|
5756
|
+
(0, import_raknet100.Proto)(193 /* RequestNetworkSettings */)
|
|
5683
5757
|
], RequestNetworkSettingsPacket);
|
|
5684
5758
|
|
|
5685
5759
|
// src/proto/data/resource-pack-client-response.ts
|
|
5686
|
-
var
|
|
5687
|
-
var
|
|
5760
|
+
var import_binarystream61 = require("@serenityjs/binarystream");
|
|
5761
|
+
var import_raknet101 = require("@serenityjs/raknet");
|
|
5688
5762
|
var ResourcePackClientResponsePacket = class extends DataPacket {
|
|
5689
5763
|
response;
|
|
5690
5764
|
packs;
|
|
5691
5765
|
};
|
|
5692
5766
|
__decorateClass([
|
|
5693
|
-
(0,
|
|
5767
|
+
(0, import_raknet101.Serialize)(import_binarystream61.Uint8)
|
|
5694
5768
|
], ResourcePackClientResponsePacket.prototype, "response", 2);
|
|
5695
5769
|
__decorateClass([
|
|
5696
|
-
(0,
|
|
5770
|
+
(0, import_raknet101.Serialize)(ResourcePackIds)
|
|
5697
5771
|
], ResourcePackClientResponsePacket.prototype, "packs", 2);
|
|
5698
5772
|
ResourcePackClientResponsePacket = __decorateClass([
|
|
5699
|
-
(0,
|
|
5773
|
+
(0, import_raknet101.Proto)(8 /* ResourcePackClientResponse */)
|
|
5700
5774
|
], ResourcePackClientResponsePacket);
|
|
5701
5775
|
|
|
5702
5776
|
// src/proto/data/resource-pack-data-info.ts
|
|
5703
|
-
var
|
|
5704
|
-
var
|
|
5777
|
+
var import_binarystream62 = require("@serenityjs/binarystream");
|
|
5778
|
+
var import_raknet102 = require("@serenityjs/raknet");
|
|
5705
5779
|
var ResourcePackDataInfoPacket = class extends DataPacket {
|
|
5706
5780
|
packId;
|
|
5707
5781
|
maxChunkSize;
|
|
@@ -5713,9 +5787,9 @@ var ResourcePackDataInfoPacket = class extends DataPacket {
|
|
|
5713
5787
|
serialize() {
|
|
5714
5788
|
this.writeVarInt(82 /* ResourcePackDataInfo */);
|
|
5715
5789
|
this.writeVarString(this.packId);
|
|
5716
|
-
this.writeUint32(this.maxChunkSize,
|
|
5717
|
-
this.writeUint32(this.chunkCount,
|
|
5718
|
-
this.writeUint64(this.fileSize,
|
|
5790
|
+
this.writeUint32(this.maxChunkSize, import_binarystream62.Endianness.Little);
|
|
5791
|
+
this.writeUint32(this.chunkCount, import_binarystream62.Endianness.Little);
|
|
5792
|
+
this.writeUint64(this.fileSize, import_binarystream62.Endianness.Little);
|
|
5719
5793
|
this.writeVarInt(this.fileHash.byteLength);
|
|
5720
5794
|
this.writeBuffer(this.fileHash);
|
|
5721
5795
|
this.writeBool(this.isPremium);
|
|
@@ -5725,9 +5799,9 @@ var ResourcePackDataInfoPacket = class extends DataPacket {
|
|
|
5725
5799
|
deserialize() {
|
|
5726
5800
|
this.readVarInt();
|
|
5727
5801
|
this.packId = this.readVarString();
|
|
5728
|
-
this.maxChunkSize = this.readUint32(
|
|
5729
|
-
this.chunkCount = this.readUint32(
|
|
5730
|
-
this.fileSize = this.readUint64(
|
|
5802
|
+
this.maxChunkSize = this.readUint32(import_binarystream62.Endianness.Little);
|
|
5803
|
+
this.chunkCount = this.readUint32(import_binarystream62.Endianness.Little);
|
|
5804
|
+
this.fileSize = this.readUint64(import_binarystream62.Endianness.Little);
|
|
5731
5805
|
const hashLength = this.readVarInt();
|
|
5732
5806
|
this.fileHash = this.readBuffer(hashLength);
|
|
5733
5807
|
this.isPremium = this.readBool();
|
|
@@ -5736,12 +5810,12 @@ var ResourcePackDataInfoPacket = class extends DataPacket {
|
|
|
5736
5810
|
}
|
|
5737
5811
|
};
|
|
5738
5812
|
ResourcePackDataInfoPacket = __decorateClass([
|
|
5739
|
-
(0,
|
|
5813
|
+
(0, import_raknet102.Proto)(82 /* ResourcePackDataInfo */)
|
|
5740
5814
|
], ResourcePackDataInfoPacket);
|
|
5741
5815
|
|
|
5742
5816
|
// src/proto/data/resource-pack-chunk-data.ts
|
|
5743
|
-
var
|
|
5744
|
-
var
|
|
5817
|
+
var import_binarystream63 = require("@serenityjs/binarystream");
|
|
5818
|
+
var import_raknet103 = require("@serenityjs/raknet");
|
|
5745
5819
|
var ResourcePackChunkDataPacket = class extends DataPacket {
|
|
5746
5820
|
packId;
|
|
5747
5821
|
chunkId;
|
|
@@ -5750,8 +5824,8 @@ var ResourcePackChunkDataPacket = class extends DataPacket {
|
|
|
5750
5824
|
serialize() {
|
|
5751
5825
|
this.writeVarInt(83 /* ResourcePackChunkData */);
|
|
5752
5826
|
this.writeVarString(this.packId);
|
|
5753
|
-
this.writeUint32(this.chunkId,
|
|
5754
|
-
this.writeUint64(this.byteOffset,
|
|
5827
|
+
this.writeUint32(this.chunkId, import_binarystream63.Endianness.Little);
|
|
5828
|
+
this.writeUint64(this.byteOffset, import_binarystream63.Endianness.Little);
|
|
5755
5829
|
this.writeVarInt(this.chunkData.byteLength);
|
|
5756
5830
|
this.writeBuffer(this.chunkData);
|
|
5757
5831
|
return this.getBuffer();
|
|
@@ -5759,37 +5833,37 @@ var ResourcePackChunkDataPacket = class extends DataPacket {
|
|
|
5759
5833
|
deserialize() {
|
|
5760
5834
|
this.readVarInt();
|
|
5761
5835
|
this.packId = this.readVarString();
|
|
5762
|
-
this.chunkId = this.readUint32(
|
|
5763
|
-
this.byteOffset = this.readUint64(
|
|
5836
|
+
this.chunkId = this.readUint32(import_binarystream63.Endianness.Little);
|
|
5837
|
+
this.byteOffset = this.readUint64(import_binarystream63.Endianness.Little);
|
|
5764
5838
|
const length = this.readVarInt();
|
|
5765
5839
|
this.chunkData = this.readBuffer(length);
|
|
5766
5840
|
return this;
|
|
5767
5841
|
}
|
|
5768
5842
|
};
|
|
5769
5843
|
ResourcePackChunkDataPacket = __decorateClass([
|
|
5770
|
-
(0,
|
|
5844
|
+
(0, import_raknet103.Proto)(83 /* ResourcePackChunkData */)
|
|
5771
5845
|
], ResourcePackChunkDataPacket);
|
|
5772
5846
|
|
|
5773
5847
|
// src/proto/data/resource-pack-chunk-request.ts
|
|
5774
|
-
var
|
|
5775
|
-
var
|
|
5848
|
+
var import_binarystream64 = require("@serenityjs/binarystream");
|
|
5849
|
+
var import_raknet104 = require("@serenityjs/raknet");
|
|
5776
5850
|
var ResourcePackChunkRequestPacket = class extends DataPacket {
|
|
5777
5851
|
packId;
|
|
5778
5852
|
chunkId;
|
|
5779
5853
|
};
|
|
5780
5854
|
__decorateClass([
|
|
5781
|
-
(0,
|
|
5855
|
+
(0, import_raknet104.Serialize)(import_binarystream64.VarString)
|
|
5782
5856
|
], ResourcePackChunkRequestPacket.prototype, "packId", 2);
|
|
5783
5857
|
__decorateClass([
|
|
5784
|
-
(0,
|
|
5858
|
+
(0, import_raknet104.Serialize)(import_binarystream64.Uint32, import_binarystream64.Endianness.Little)
|
|
5785
5859
|
], ResourcePackChunkRequestPacket.prototype, "chunkId", 2);
|
|
5786
5860
|
ResourcePackChunkRequestPacket = __decorateClass([
|
|
5787
|
-
(0,
|
|
5861
|
+
(0, import_raknet104.Proto)(84 /* ResourcePackChunkRequest */)
|
|
5788
5862
|
], ResourcePackChunkRequestPacket);
|
|
5789
5863
|
|
|
5790
5864
|
// src/proto/data/resource-pack-stack.ts
|
|
5791
|
-
var
|
|
5792
|
-
var
|
|
5865
|
+
var import_binarystream65 = require("@serenityjs/binarystream");
|
|
5866
|
+
var import_raknet105 = require("@serenityjs/raknet");
|
|
5793
5867
|
var ResourcePackStackPacket = class extends DataPacket {
|
|
5794
5868
|
mustAccept;
|
|
5795
5869
|
behaviorPacks;
|
|
@@ -5799,30 +5873,30 @@ var ResourcePackStackPacket = class extends DataPacket {
|
|
|
5799
5873
|
experimentsPreviouslyToggled;
|
|
5800
5874
|
};
|
|
5801
5875
|
__decorateClass([
|
|
5802
|
-
(0,
|
|
5876
|
+
(0, import_raknet105.Serialize)(import_binarystream65.Bool)
|
|
5803
5877
|
], ResourcePackStackPacket.prototype, "mustAccept", 2);
|
|
5804
5878
|
__decorateClass([
|
|
5805
|
-
(0,
|
|
5879
|
+
(0, import_raknet105.Serialize)(ResourceIdVersions)
|
|
5806
5880
|
], ResourcePackStackPacket.prototype, "behaviorPacks", 2);
|
|
5807
5881
|
__decorateClass([
|
|
5808
|
-
(0,
|
|
5882
|
+
(0, import_raknet105.Serialize)(ResourceIdVersions)
|
|
5809
5883
|
], ResourcePackStackPacket.prototype, "texturePacks", 2);
|
|
5810
5884
|
__decorateClass([
|
|
5811
|
-
(0,
|
|
5885
|
+
(0, import_raknet105.Serialize)(import_binarystream65.VarString)
|
|
5812
5886
|
], ResourcePackStackPacket.prototype, "gameVersion", 2);
|
|
5813
5887
|
__decorateClass([
|
|
5814
|
-
(0,
|
|
5888
|
+
(0, import_raknet105.Serialize)(Experiments)
|
|
5815
5889
|
], ResourcePackStackPacket.prototype, "experiments", 2);
|
|
5816
5890
|
__decorateClass([
|
|
5817
|
-
(0,
|
|
5891
|
+
(0, import_raknet105.Serialize)(import_binarystream65.Bool)
|
|
5818
5892
|
], ResourcePackStackPacket.prototype, "experimentsPreviouslyToggled", 2);
|
|
5819
5893
|
ResourcePackStackPacket = __decorateClass([
|
|
5820
|
-
(0,
|
|
5894
|
+
(0, import_raknet105.Proto)(7 /* ResourcePackStack */)
|
|
5821
5895
|
], ResourcePackStackPacket);
|
|
5822
5896
|
|
|
5823
5897
|
// src/proto/data/resource-packs-info.ts
|
|
5824
|
-
var
|
|
5825
|
-
var
|
|
5898
|
+
var import_binarystream66 = require("@serenityjs/binarystream");
|
|
5899
|
+
var import_raknet106 = require("@serenityjs/raknet");
|
|
5826
5900
|
var ResourcePacksInfoPacket = class extends DataPacket {
|
|
5827
5901
|
mustAccept;
|
|
5828
5902
|
hasAddons;
|
|
@@ -5833,105 +5907,105 @@ var ResourcePacksInfoPacket = class extends DataPacket {
|
|
|
5833
5907
|
links;
|
|
5834
5908
|
};
|
|
5835
5909
|
__decorateClass([
|
|
5836
|
-
(0,
|
|
5910
|
+
(0, import_raknet106.Serialize)(import_binarystream66.Bool)
|
|
5837
5911
|
], ResourcePacksInfoPacket.prototype, "mustAccept", 2);
|
|
5838
5912
|
__decorateClass([
|
|
5839
|
-
(0,
|
|
5913
|
+
(0, import_raknet106.Serialize)(import_binarystream66.Bool)
|
|
5840
5914
|
], ResourcePacksInfoPacket.prototype, "hasAddons", 2);
|
|
5841
5915
|
__decorateClass([
|
|
5842
|
-
(0,
|
|
5916
|
+
(0, import_raknet106.Serialize)(import_binarystream66.Bool)
|
|
5843
5917
|
], ResourcePacksInfoPacket.prototype, "hasScripts", 2);
|
|
5844
5918
|
__decorateClass([
|
|
5845
|
-
(0,
|
|
5919
|
+
(0, import_raknet106.Serialize)(import_binarystream66.Bool)
|
|
5846
5920
|
], ResourcePacksInfoPacket.prototype, "forceServerPacks", 2);
|
|
5847
5921
|
__decorateClass([
|
|
5848
|
-
(0,
|
|
5922
|
+
(0, import_raknet106.Serialize)(BehaviorPackInfo)
|
|
5849
5923
|
], ResourcePacksInfoPacket.prototype, "behaviorPacks", 2);
|
|
5850
5924
|
__decorateClass([
|
|
5851
|
-
(0,
|
|
5925
|
+
(0, import_raknet106.Serialize)(TexturePackInfo)
|
|
5852
5926
|
], ResourcePacksInfoPacket.prototype, "texturePacks", 2);
|
|
5853
5927
|
__decorateClass([
|
|
5854
|
-
(0,
|
|
5928
|
+
(0, import_raknet106.Serialize)(PackLinks)
|
|
5855
5929
|
], ResourcePacksInfoPacket.prototype, "links", 2);
|
|
5856
5930
|
ResourcePacksInfoPacket = __decorateClass([
|
|
5857
|
-
(0,
|
|
5931
|
+
(0, import_raknet106.Proto)(6 /* ResourcePacksInfo */)
|
|
5858
5932
|
], ResourcePacksInfoPacket);
|
|
5859
5933
|
|
|
5860
5934
|
// src/proto/data/respawn.ts
|
|
5861
|
-
var
|
|
5862
|
-
var
|
|
5935
|
+
var import_binarystream67 = require("@serenityjs/binarystream");
|
|
5936
|
+
var import_raknet107 = require("@serenityjs/raknet");
|
|
5863
5937
|
var RespawnPacket = class extends DataPacket {
|
|
5864
5938
|
position;
|
|
5865
5939
|
state;
|
|
5866
5940
|
runtimeEntityId;
|
|
5867
5941
|
};
|
|
5868
5942
|
__decorateClass([
|
|
5869
|
-
(0,
|
|
5943
|
+
(0, import_raknet107.Serialize)(Vector3f)
|
|
5870
5944
|
], RespawnPacket.prototype, "position", 2);
|
|
5871
5945
|
__decorateClass([
|
|
5872
|
-
(0,
|
|
5946
|
+
(0, import_raknet107.Serialize)(import_binarystream67.Uint8)
|
|
5873
5947
|
], RespawnPacket.prototype, "state", 2);
|
|
5874
5948
|
__decorateClass([
|
|
5875
|
-
(0,
|
|
5949
|
+
(0, import_raknet107.Serialize)(import_binarystream67.VarLong)
|
|
5876
5950
|
], RespawnPacket.prototype, "runtimeEntityId", 2);
|
|
5877
5951
|
RespawnPacket = __decorateClass([
|
|
5878
|
-
(0,
|
|
5952
|
+
(0, import_raknet107.Proto)(45 /* Respawn */)
|
|
5879
5953
|
], RespawnPacket);
|
|
5880
5954
|
|
|
5881
5955
|
// src/proto/data/script-message.ts
|
|
5882
|
-
var
|
|
5883
|
-
var
|
|
5956
|
+
var import_binarystream68 = require("@serenityjs/binarystream");
|
|
5957
|
+
var import_raknet108 = require("@serenityjs/raknet");
|
|
5884
5958
|
var ScriptMessagePacket = class extends DataPacket {
|
|
5885
5959
|
messageId;
|
|
5886
5960
|
data;
|
|
5887
5961
|
};
|
|
5888
5962
|
__decorateClass([
|
|
5889
|
-
(0,
|
|
5963
|
+
(0, import_raknet108.Serialize)(import_binarystream68.VarString)
|
|
5890
5964
|
], ScriptMessagePacket.prototype, "messageId", 2);
|
|
5891
5965
|
__decorateClass([
|
|
5892
|
-
(0,
|
|
5966
|
+
(0, import_raknet108.Serialize)(import_binarystream68.VarString)
|
|
5893
5967
|
], ScriptMessagePacket.prototype, "data", 2);
|
|
5894
5968
|
ScriptMessagePacket = __decorateClass([
|
|
5895
|
-
(0,
|
|
5969
|
+
(0, import_raknet108.Proto)(177 /* ScriptMessage */)
|
|
5896
5970
|
], ScriptMessagePacket);
|
|
5897
5971
|
|
|
5898
5972
|
// src/proto/data/set-actor-motion.ts
|
|
5899
|
-
var
|
|
5900
|
-
var
|
|
5973
|
+
var import_binarystream69 = require("@serenityjs/binarystream");
|
|
5974
|
+
var import_raknet109 = require("@serenityjs/raknet");
|
|
5901
5975
|
var SetActorMotionPacket = class extends DataPacket {
|
|
5902
5976
|
runtimeId;
|
|
5903
5977
|
motion;
|
|
5904
5978
|
tick;
|
|
5905
5979
|
};
|
|
5906
5980
|
__decorateClass([
|
|
5907
|
-
(0,
|
|
5981
|
+
(0, import_raknet109.Serialize)(import_binarystream69.VarLong)
|
|
5908
5982
|
], SetActorMotionPacket.prototype, "runtimeId", 2);
|
|
5909
5983
|
__decorateClass([
|
|
5910
|
-
(0,
|
|
5984
|
+
(0, import_raknet109.Serialize)(Vector3f)
|
|
5911
5985
|
], SetActorMotionPacket.prototype, "motion", 2);
|
|
5912
5986
|
__decorateClass([
|
|
5913
|
-
(0,
|
|
5987
|
+
(0, import_raknet109.Serialize)(import_binarystream69.VarLong)
|
|
5914
5988
|
], SetActorMotionPacket.prototype, "tick", 2);
|
|
5915
5989
|
SetActorMotionPacket = __decorateClass([
|
|
5916
|
-
(0,
|
|
5990
|
+
(0, import_raknet109.Proto)(40 /* SetActorMotion */)
|
|
5917
5991
|
], SetActorMotionPacket);
|
|
5918
5992
|
|
|
5919
5993
|
// src/proto/data/set-commands-enabled.ts
|
|
5920
|
-
var
|
|
5921
|
-
var
|
|
5994
|
+
var import_binarystream70 = require("@serenityjs/binarystream");
|
|
5995
|
+
var import_raknet110 = require("@serenityjs/raknet");
|
|
5922
5996
|
var SetCommandsEnabledPacket = class extends DataPacket {
|
|
5923
5997
|
enabled;
|
|
5924
5998
|
};
|
|
5925
5999
|
__decorateClass([
|
|
5926
|
-
(0,
|
|
6000
|
+
(0, import_raknet110.Serialize)(import_binarystream70.Bool)
|
|
5927
6001
|
], SetCommandsEnabledPacket.prototype, "enabled", 2);
|
|
5928
6002
|
SetCommandsEnabledPacket = __decorateClass([
|
|
5929
|
-
(0,
|
|
6003
|
+
(0, import_raknet110.Proto)(59 /* SetCommandsEnabled */)
|
|
5930
6004
|
], SetCommandsEnabledPacket);
|
|
5931
6005
|
|
|
5932
6006
|
// src/proto/data/set-entity-data.ts
|
|
5933
|
-
var
|
|
5934
|
-
var
|
|
6007
|
+
var import_binarystream71 = require("@serenityjs/binarystream");
|
|
6008
|
+
var import_raknet111 = require("@serenityjs/raknet");
|
|
5935
6009
|
var SetEntityDataPacket = class extends DataPacket {
|
|
5936
6010
|
runtimeEntityId;
|
|
5937
6011
|
metadata;
|
|
@@ -5939,50 +6013,50 @@ var SetEntityDataPacket = class extends DataPacket {
|
|
|
5939
6013
|
tick;
|
|
5940
6014
|
};
|
|
5941
6015
|
__decorateClass([
|
|
5942
|
-
(0,
|
|
6016
|
+
(0, import_raknet111.Serialize)(import_binarystream71.VarLong)
|
|
5943
6017
|
], SetEntityDataPacket.prototype, "runtimeEntityId", 2);
|
|
5944
6018
|
__decorateClass([
|
|
5945
|
-
(0,
|
|
6019
|
+
(0, import_raknet111.Serialize)(MetadataDictionary)
|
|
5946
6020
|
], SetEntityDataPacket.prototype, "metadata", 2);
|
|
5947
6021
|
__decorateClass([
|
|
5948
|
-
(0,
|
|
6022
|
+
(0, import_raknet111.Serialize)(EntityProperties)
|
|
5949
6023
|
], SetEntityDataPacket.prototype, "properties", 2);
|
|
5950
6024
|
__decorateClass([
|
|
5951
|
-
(0,
|
|
6025
|
+
(0, import_raknet111.Serialize)(import_binarystream71.VarLong)
|
|
5952
6026
|
], SetEntityDataPacket.prototype, "tick", 2);
|
|
5953
6027
|
SetEntityDataPacket = __decorateClass([
|
|
5954
|
-
(0,
|
|
6028
|
+
(0, import_raknet111.Proto)(39 /* SetEntityData */)
|
|
5955
6029
|
], SetEntityDataPacket);
|
|
5956
6030
|
|
|
5957
6031
|
// src/proto/data/set-local-player-as-initialized.ts
|
|
5958
|
-
var
|
|
5959
|
-
var
|
|
6032
|
+
var import_binarystream72 = require("@serenityjs/binarystream");
|
|
6033
|
+
var import_raknet112 = require("@serenityjs/raknet");
|
|
5960
6034
|
var SetLocalPlayerAsInitializedPacket = class extends DataPacket {
|
|
5961
6035
|
runtimeEntityId;
|
|
5962
6036
|
};
|
|
5963
6037
|
__decorateClass([
|
|
5964
|
-
(0,
|
|
6038
|
+
(0, import_raknet112.Serialize)(import_binarystream72.VarLong)
|
|
5965
6039
|
], SetLocalPlayerAsInitializedPacket.prototype, "runtimeEntityId", 2);
|
|
5966
6040
|
SetLocalPlayerAsInitializedPacket = __decorateClass([
|
|
5967
|
-
(0,
|
|
6041
|
+
(0, import_raknet112.Proto)(113 /* SetLocalPlayerAsInitialized */)
|
|
5968
6042
|
], SetLocalPlayerAsInitializedPacket);
|
|
5969
6043
|
|
|
5970
6044
|
// src/proto/data/set-player-game-type.ts
|
|
5971
|
-
var
|
|
5972
|
-
var
|
|
6045
|
+
var import_binarystream73 = require("@serenityjs/binarystream");
|
|
6046
|
+
var import_raknet113 = require("@serenityjs/raknet");
|
|
5973
6047
|
var SetPlayerGameTypePacket = class extends DataPacket {
|
|
5974
6048
|
gamemode;
|
|
5975
6049
|
};
|
|
5976
6050
|
__decorateClass([
|
|
5977
|
-
(0,
|
|
6051
|
+
(0, import_raknet113.Serialize)(import_binarystream73.ZigZag)
|
|
5978
6052
|
], SetPlayerGameTypePacket.prototype, "gamemode", 2);
|
|
5979
6053
|
SetPlayerGameTypePacket = __decorateClass([
|
|
5980
|
-
(0,
|
|
6054
|
+
(0, import_raknet113.Proto)(62 /* SetPlayerGameType */)
|
|
5981
6055
|
], SetPlayerGameTypePacket);
|
|
5982
6056
|
|
|
5983
6057
|
// src/proto/data/set-title.ts
|
|
5984
|
-
var
|
|
5985
|
-
var
|
|
6058
|
+
var import_binarystream74 = require("@serenityjs/binarystream");
|
|
6059
|
+
var import_raknet114 = require("@serenityjs/raknet");
|
|
5986
6060
|
var SetTitlePacket = class extends DataPacket {
|
|
5987
6061
|
type;
|
|
5988
6062
|
text;
|
|
@@ -5993,33 +6067,33 @@ var SetTitlePacket = class extends DataPacket {
|
|
|
5993
6067
|
platformOnlineId;
|
|
5994
6068
|
};
|
|
5995
6069
|
__decorateClass([
|
|
5996
|
-
(0,
|
|
6070
|
+
(0, import_raknet114.Serialize)(import_binarystream74.ZigZag)
|
|
5997
6071
|
], SetTitlePacket.prototype, "type", 2);
|
|
5998
6072
|
__decorateClass([
|
|
5999
|
-
(0,
|
|
6073
|
+
(0, import_raknet114.Serialize)(import_binarystream74.VarString)
|
|
6000
6074
|
], SetTitlePacket.prototype, "text", 2);
|
|
6001
6075
|
__decorateClass([
|
|
6002
|
-
(0,
|
|
6076
|
+
(0, import_raknet114.Serialize)(import_binarystream74.ZigZag)
|
|
6003
6077
|
], SetTitlePacket.prototype, "fadeInTime", 2);
|
|
6004
6078
|
__decorateClass([
|
|
6005
|
-
(0,
|
|
6079
|
+
(0, import_raknet114.Serialize)(import_binarystream74.ZigZag)
|
|
6006
6080
|
], SetTitlePacket.prototype, "stayTime", 2);
|
|
6007
6081
|
__decorateClass([
|
|
6008
|
-
(0,
|
|
6082
|
+
(0, import_raknet114.Serialize)(import_binarystream74.ZigZag)
|
|
6009
6083
|
], SetTitlePacket.prototype, "fadeOutTime", 2);
|
|
6010
6084
|
__decorateClass([
|
|
6011
|
-
(0,
|
|
6085
|
+
(0, import_raknet114.Serialize)(import_binarystream74.VarString)
|
|
6012
6086
|
], SetTitlePacket.prototype, "xuid", 2);
|
|
6013
6087
|
__decorateClass([
|
|
6014
|
-
(0,
|
|
6088
|
+
(0, import_raknet114.Serialize)(import_binarystream74.VarString)
|
|
6015
6089
|
], SetTitlePacket.prototype, "platformOnlineId", 2);
|
|
6016
6090
|
SetTitlePacket = __decorateClass([
|
|
6017
|
-
(0,
|
|
6091
|
+
(0, import_raknet114.Proto)(88 /* SetTitle */)
|
|
6018
6092
|
], SetTitlePacket);
|
|
6019
6093
|
|
|
6020
6094
|
// src/proto/data/start-game.ts
|
|
6021
|
-
var
|
|
6022
|
-
var
|
|
6095
|
+
var import_binarystream75 = require("@serenityjs/binarystream");
|
|
6096
|
+
var import_raknet115 = require("@serenityjs/raknet");
|
|
6023
6097
|
var StartGamePacket = class extends DataPacket {
|
|
6024
6098
|
entityId;
|
|
6025
6099
|
runtimeEntityId;
|
|
@@ -6102,249 +6176,249 @@ var StartGamePacket = class extends DataPacket {
|
|
|
6102
6176
|
serverControlledSounds;
|
|
6103
6177
|
};
|
|
6104
6178
|
__decorateClass([
|
|
6105
|
-
(0,
|
|
6179
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZong)
|
|
6106
6180
|
], StartGamePacket.prototype, "entityId", 2);
|
|
6107
6181
|
__decorateClass([
|
|
6108
|
-
(0,
|
|
6182
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarLong)
|
|
6109
6183
|
], StartGamePacket.prototype, "runtimeEntityId", 2);
|
|
6110
6184
|
__decorateClass([
|
|
6111
|
-
(0,
|
|
6185
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6112
6186
|
], StartGamePacket.prototype, "playerGamemode", 2);
|
|
6113
6187
|
__decorateClass([
|
|
6114
|
-
(0,
|
|
6188
|
+
(0, import_raknet115.Serialize)(Vector3f)
|
|
6115
6189
|
], StartGamePacket.prototype, "playerPosition", 2);
|
|
6116
6190
|
__decorateClass([
|
|
6117
|
-
(0,
|
|
6191
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
|
|
6118
6192
|
], StartGamePacket.prototype, "pitch", 2);
|
|
6119
6193
|
__decorateClass([
|
|
6120
|
-
(0,
|
|
6194
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
|
|
6121
6195
|
], StartGamePacket.prototype, "yaw", 2);
|
|
6122
6196
|
__decorateClass([
|
|
6123
|
-
(0,
|
|
6197
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint64, import_binarystream75.Endianness.Little)
|
|
6124
6198
|
], StartGamePacket.prototype, "seed", 2);
|
|
6125
6199
|
__decorateClass([
|
|
6126
|
-
(0,
|
|
6200
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Int16, import_binarystream75.Endianness.Little)
|
|
6127
6201
|
], StartGamePacket.prototype, "biomeType", 2);
|
|
6128
6202
|
__decorateClass([
|
|
6129
|
-
(0,
|
|
6203
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6130
6204
|
], StartGamePacket.prototype, "biomeName", 2);
|
|
6131
6205
|
__decorateClass([
|
|
6132
|
-
(0,
|
|
6206
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6133
6207
|
], StartGamePacket.prototype, "dimension", 2);
|
|
6134
6208
|
__decorateClass([
|
|
6135
|
-
(0,
|
|
6209
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6136
6210
|
], StartGamePacket.prototype, "generator", 2);
|
|
6137
6211
|
__decorateClass([
|
|
6138
|
-
(0,
|
|
6212
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6139
6213
|
], StartGamePacket.prototype, "worldGamemode", 2);
|
|
6140
6214
|
__decorateClass([
|
|
6141
|
-
(0,
|
|
6215
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6142
6216
|
], StartGamePacket.prototype, "difficulty", 2);
|
|
6143
6217
|
__decorateClass([
|
|
6144
|
-
(0,
|
|
6218
|
+
(0, import_raknet115.Serialize)(BlockCoordinates)
|
|
6145
6219
|
], StartGamePacket.prototype, "spawnPosition", 2);
|
|
6146
6220
|
__decorateClass([
|
|
6147
|
-
(0,
|
|
6221
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6148
6222
|
], StartGamePacket.prototype, "achievementsDisabled", 2);
|
|
6149
6223
|
__decorateClass([
|
|
6150
|
-
(0,
|
|
6224
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6151
6225
|
], StartGamePacket.prototype, "editorWorldType", 2);
|
|
6152
6226
|
__decorateClass([
|
|
6153
|
-
(0,
|
|
6227
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6154
6228
|
], StartGamePacket.prototype, "createdInEdior", 2);
|
|
6155
6229
|
__decorateClass([
|
|
6156
|
-
(0,
|
|
6230
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6157
6231
|
], StartGamePacket.prototype, "exportedFromEdior", 2);
|
|
6158
6232
|
__decorateClass([
|
|
6159
|
-
(0,
|
|
6233
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6160
6234
|
], StartGamePacket.prototype, "dayCycleStopTime", 2);
|
|
6161
6235
|
__decorateClass([
|
|
6162
|
-
(0,
|
|
6236
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6163
6237
|
], StartGamePacket.prototype, "eduOffer", 2);
|
|
6164
6238
|
__decorateClass([
|
|
6165
|
-
(0,
|
|
6239
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6166
6240
|
], StartGamePacket.prototype, "eduFeatures", 2);
|
|
6167
6241
|
__decorateClass([
|
|
6168
|
-
(0,
|
|
6242
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6169
6243
|
], StartGamePacket.prototype, "eduProductUuid", 2);
|
|
6170
6244
|
__decorateClass([
|
|
6171
|
-
(0,
|
|
6245
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
|
|
6172
6246
|
], StartGamePacket.prototype, "rainLevel", 2);
|
|
6173
6247
|
__decorateClass([
|
|
6174
|
-
(0,
|
|
6248
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
|
|
6175
6249
|
], StartGamePacket.prototype, "lightningLevel", 2);
|
|
6176
6250
|
__decorateClass([
|
|
6177
|
-
(0,
|
|
6251
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6178
6252
|
], StartGamePacket.prototype, "confirmedPlatformLockedContent", 2);
|
|
6179
6253
|
__decorateClass([
|
|
6180
|
-
(0,
|
|
6254
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6181
6255
|
], StartGamePacket.prototype, "multiplayerGame", 2);
|
|
6182
6256
|
__decorateClass([
|
|
6183
|
-
(0,
|
|
6257
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6184
6258
|
], StartGamePacket.prototype, "broadcastToLan", 2);
|
|
6185
6259
|
__decorateClass([
|
|
6186
|
-
(0,
|
|
6260
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarInt)
|
|
6187
6261
|
], StartGamePacket.prototype, "xblBroadcastMode", 2);
|
|
6188
6262
|
__decorateClass([
|
|
6189
|
-
(0,
|
|
6263
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarInt)
|
|
6190
6264
|
], StartGamePacket.prototype, "platformBroadcastMode", 2);
|
|
6191
6265
|
__decorateClass([
|
|
6192
|
-
(0,
|
|
6266
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6193
6267
|
], StartGamePacket.prototype, "commandsEnabled", 2);
|
|
6194
6268
|
__decorateClass([
|
|
6195
|
-
(0,
|
|
6269
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6196
6270
|
], StartGamePacket.prototype, "texturePacksRequired", 2);
|
|
6197
6271
|
__decorateClass([
|
|
6198
|
-
(0,
|
|
6272
|
+
(0, import_raknet115.Serialize)(GameRules)
|
|
6199
6273
|
], StartGamePacket.prototype, "gamerules", 2);
|
|
6200
6274
|
__decorateClass([
|
|
6201
|
-
(0,
|
|
6275
|
+
(0, import_raknet115.Serialize)(Experiments)
|
|
6202
6276
|
], StartGamePacket.prototype, "experiments", 2);
|
|
6203
6277
|
__decorateClass([
|
|
6204
|
-
(0,
|
|
6278
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6205
6279
|
], StartGamePacket.prototype, "experimentsPreviouslyToggled", 2);
|
|
6206
6280
|
__decorateClass([
|
|
6207
|
-
(0,
|
|
6281
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6208
6282
|
], StartGamePacket.prototype, "bonusChest", 2);
|
|
6209
6283
|
__decorateClass([
|
|
6210
|
-
(0,
|
|
6284
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6211
6285
|
], StartGamePacket.prototype, "mapEnabled", 2);
|
|
6212
6286
|
__decorateClass([
|
|
6213
|
-
(0,
|
|
6287
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint8)
|
|
6214
6288
|
], StartGamePacket.prototype, "permissionLevel", 2);
|
|
6215
6289
|
__decorateClass([
|
|
6216
|
-
(0,
|
|
6290
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Int32, import_binarystream75.Endianness.Little)
|
|
6217
6291
|
], StartGamePacket.prototype, "serverChunkTickRange", 2);
|
|
6218
6292
|
__decorateClass([
|
|
6219
|
-
(0,
|
|
6293
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6220
6294
|
], StartGamePacket.prototype, "hasLockedBehaviorPack", 2);
|
|
6221
6295
|
__decorateClass([
|
|
6222
|
-
(0,
|
|
6296
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6223
6297
|
], StartGamePacket.prototype, "hasLockedResourcePack", 2);
|
|
6224
6298
|
__decorateClass([
|
|
6225
|
-
(0,
|
|
6299
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6226
6300
|
], StartGamePacket.prototype, "isFromLockedWorldTemplate", 2);
|
|
6227
6301
|
__decorateClass([
|
|
6228
|
-
(0,
|
|
6302
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6229
6303
|
], StartGamePacket.prototype, "useMsaGamertagsOnly", 2);
|
|
6230
6304
|
__decorateClass([
|
|
6231
|
-
(0,
|
|
6305
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6232
6306
|
], StartGamePacket.prototype, "isFromWorldTemplate", 2);
|
|
6233
6307
|
__decorateClass([
|
|
6234
|
-
(0,
|
|
6308
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6235
6309
|
], StartGamePacket.prototype, "isWorldTemplateOptionLocked", 2);
|
|
6236
6310
|
__decorateClass([
|
|
6237
|
-
(0,
|
|
6311
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6238
6312
|
], StartGamePacket.prototype, "onlySpawnV1Villagers", 2);
|
|
6239
6313
|
__decorateClass([
|
|
6240
|
-
(0,
|
|
6314
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6241
6315
|
], StartGamePacket.prototype, "personaDisabled", 2);
|
|
6242
6316
|
__decorateClass([
|
|
6243
|
-
(0,
|
|
6317
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6244
6318
|
], StartGamePacket.prototype, "customSkinsDisabled", 2);
|
|
6245
6319
|
__decorateClass([
|
|
6246
|
-
(0,
|
|
6320
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6247
6321
|
], StartGamePacket.prototype, "emoteChatMuted", 2);
|
|
6248
6322
|
__decorateClass([
|
|
6249
|
-
(0,
|
|
6323
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6250
6324
|
], StartGamePacket.prototype, "gameVersion", 2);
|
|
6251
6325
|
__decorateClass([
|
|
6252
|
-
(0,
|
|
6326
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Int32, import_binarystream75.Endianness.Little)
|
|
6253
6327
|
], StartGamePacket.prototype, "limitedWorldWidth", 2);
|
|
6254
6328
|
__decorateClass([
|
|
6255
|
-
(0,
|
|
6329
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Int32, import_binarystream75.Endianness.Little)
|
|
6256
6330
|
], StartGamePacket.prototype, "limitedWorldLength", 2);
|
|
6257
6331
|
__decorateClass([
|
|
6258
|
-
(0,
|
|
6332
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6259
6333
|
], StartGamePacket.prototype, "isNewNether", 2);
|
|
6260
6334
|
__decorateClass([
|
|
6261
|
-
(0,
|
|
6335
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6262
6336
|
], StartGamePacket.prototype, "eduResourceUriButtonName", 2);
|
|
6263
6337
|
__decorateClass([
|
|
6264
|
-
(0,
|
|
6338
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6265
6339
|
], StartGamePacket.prototype, "eduResourceUriLink", 2);
|
|
6266
6340
|
__decorateClass([
|
|
6267
|
-
(0,
|
|
6341
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6268
6342
|
], StartGamePacket.prototype, "experimentalGameplayOverride", 2);
|
|
6269
6343
|
__decorateClass([
|
|
6270
|
-
(0,
|
|
6344
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint8)
|
|
6271
6345
|
], StartGamePacket.prototype, "chatRestrictionLevel", 2);
|
|
6272
6346
|
__decorateClass([
|
|
6273
|
-
(0,
|
|
6347
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6274
6348
|
], StartGamePacket.prototype, "disablePlayerInteractions", 2);
|
|
6275
6349
|
__decorateClass([
|
|
6276
|
-
(0,
|
|
6350
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6277
6351
|
], StartGamePacket.prototype, "levelId", 2);
|
|
6278
6352
|
__decorateClass([
|
|
6279
|
-
(0,
|
|
6353
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6280
6354
|
], StartGamePacket.prototype, "worldName", 2);
|
|
6281
6355
|
__decorateClass([
|
|
6282
|
-
(0,
|
|
6356
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6283
6357
|
], StartGamePacket.prototype, "premiumWorldTemplateId", 2);
|
|
6284
6358
|
__decorateClass([
|
|
6285
|
-
(0,
|
|
6359
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6286
6360
|
], StartGamePacket.prototype, "isTrial", 2);
|
|
6287
6361
|
__decorateClass([
|
|
6288
|
-
(0,
|
|
6362
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6289
6363
|
], StartGamePacket.prototype, "movementAuthority", 2);
|
|
6290
6364
|
__decorateClass([
|
|
6291
|
-
(0,
|
|
6365
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6292
6366
|
], StartGamePacket.prototype, "rewindHistorySize", 2);
|
|
6293
6367
|
__decorateClass([
|
|
6294
|
-
(0,
|
|
6368
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6295
6369
|
], StartGamePacket.prototype, "serverAuthoritativeBlockBreaking", 2);
|
|
6296
6370
|
__decorateClass([
|
|
6297
|
-
(0,
|
|
6371
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Int64, import_binarystream75.Endianness.Little)
|
|
6298
6372
|
], StartGamePacket.prototype, "currentTick", 2);
|
|
6299
6373
|
__decorateClass([
|
|
6300
|
-
(0,
|
|
6374
|
+
(0, import_raknet115.Serialize)(import_binarystream75.ZigZag)
|
|
6301
6375
|
], StartGamePacket.prototype, "enchantmentSeed", 2);
|
|
6302
6376
|
__decorateClass([
|
|
6303
|
-
(0,
|
|
6377
|
+
(0, import_raknet115.Serialize)(BlockProperties)
|
|
6304
6378
|
], StartGamePacket.prototype, "blockProperties", 2);
|
|
6305
6379
|
__decorateClass([
|
|
6306
|
-
(0,
|
|
6380
|
+
(0, import_raknet115.Serialize)(ItemData)
|
|
6307
6381
|
], StartGamePacket.prototype, "items", 2);
|
|
6308
6382
|
__decorateClass([
|
|
6309
|
-
(0,
|
|
6383
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6310
6384
|
], StartGamePacket.prototype, "multiplayerCorrelationId", 2);
|
|
6311
6385
|
__decorateClass([
|
|
6312
|
-
(0,
|
|
6386
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6313
6387
|
], StartGamePacket.prototype, "serverAuthoritativeInventory", 2);
|
|
6314
6388
|
__decorateClass([
|
|
6315
|
-
(0,
|
|
6389
|
+
(0, import_raknet115.Serialize)(import_binarystream75.VarString)
|
|
6316
6390
|
], StartGamePacket.prototype, "engine", 2);
|
|
6317
6391
|
__decorateClass([
|
|
6318
|
-
(0,
|
|
6392
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint8)
|
|
6319
6393
|
], StartGamePacket.prototype, "propertyData1", 2);
|
|
6320
6394
|
__decorateClass([
|
|
6321
|
-
(0,
|
|
6395
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint8)
|
|
6322
6396
|
], StartGamePacket.prototype, "propertyData2", 2);
|
|
6323
6397
|
__decorateClass([
|
|
6324
|
-
(0,
|
|
6398
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint8)
|
|
6325
6399
|
], StartGamePacket.prototype, "propertyData3", 2);
|
|
6326
6400
|
__decorateClass([
|
|
6327
|
-
(0,
|
|
6401
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uint64, import_binarystream75.Endianness.Little)
|
|
6328
6402
|
], StartGamePacket.prototype, "blockPaletteChecksum", 2);
|
|
6329
6403
|
__decorateClass([
|
|
6330
|
-
(0,
|
|
6404
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Uuid)
|
|
6331
6405
|
], StartGamePacket.prototype, "worldTemplateId", 2);
|
|
6332
6406
|
__decorateClass([
|
|
6333
|
-
(0,
|
|
6407
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6334
6408
|
], StartGamePacket.prototype, "clientSideGeneration", 2);
|
|
6335
6409
|
__decorateClass([
|
|
6336
|
-
(0,
|
|
6410
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6337
6411
|
], StartGamePacket.prototype, "blockNetworkIdsAreHashes", 2);
|
|
6338
6412
|
__decorateClass([
|
|
6339
|
-
(0,
|
|
6413
|
+
(0, import_raknet115.Serialize)(import_binarystream75.Bool)
|
|
6340
6414
|
], StartGamePacket.prototype, "serverControlledSounds", 2);
|
|
6341
6415
|
StartGamePacket = __decorateClass([
|
|
6342
|
-
(0,
|
|
6416
|
+
(0, import_raknet115.Proto)(11 /* StartGame */)
|
|
6343
6417
|
], StartGamePacket);
|
|
6344
6418
|
|
|
6345
6419
|
// src/proto/data/text.ts
|
|
6346
|
-
var
|
|
6347
|
-
var
|
|
6420
|
+
var import_binarystream76 = require("@serenityjs/binarystream");
|
|
6421
|
+
var import_raknet116 = require("@serenityjs/raknet");
|
|
6348
6422
|
var TextPacket = class extends DataPacket {
|
|
6349
6423
|
type;
|
|
6350
6424
|
needsTranslation;
|
|
@@ -6355,50 +6429,50 @@ var TextPacket = class extends DataPacket {
|
|
|
6355
6429
|
platformChatId;
|
|
6356
6430
|
};
|
|
6357
6431
|
__decorateClass([
|
|
6358
|
-
(0,
|
|
6432
|
+
(0, import_raknet116.Serialize)(import_binarystream76.Uint8)
|
|
6359
6433
|
], TextPacket.prototype, "type", 2);
|
|
6360
6434
|
__decorateClass([
|
|
6361
|
-
(0,
|
|
6435
|
+
(0, import_raknet116.Serialize)(import_binarystream76.Bool)
|
|
6362
6436
|
], TextPacket.prototype, "needsTranslation", 2);
|
|
6363
6437
|
__decorateClass([
|
|
6364
|
-
(0,
|
|
6438
|
+
(0, import_raknet116.Serialize)(TextSource, import_binarystream76.Endianness.Little, "type")
|
|
6365
6439
|
], TextPacket.prototype, "source", 2);
|
|
6366
6440
|
__decorateClass([
|
|
6367
|
-
(0,
|
|
6441
|
+
(0, import_raknet116.Serialize)(import_binarystream76.VarString)
|
|
6368
6442
|
], TextPacket.prototype, "message", 2);
|
|
6369
6443
|
__decorateClass([
|
|
6370
|
-
(0,
|
|
6444
|
+
(0, import_raknet116.Serialize)(TextParameters, import_binarystream76.Endianness.Little, "type")
|
|
6371
6445
|
], TextPacket.prototype, "parameters", 2);
|
|
6372
6446
|
__decorateClass([
|
|
6373
|
-
(0,
|
|
6447
|
+
(0, import_raknet116.Serialize)(import_binarystream76.VarString)
|
|
6374
6448
|
], TextPacket.prototype, "xuid", 2);
|
|
6375
6449
|
__decorateClass([
|
|
6376
|
-
(0,
|
|
6450
|
+
(0, import_raknet116.Serialize)(import_binarystream76.VarString)
|
|
6377
6451
|
], TextPacket.prototype, "platformChatId", 2);
|
|
6378
6452
|
TextPacket = __decorateClass([
|
|
6379
|
-
(0,
|
|
6453
|
+
(0, import_raknet116.Proto)(9 /* Text */)
|
|
6380
6454
|
], TextPacket);
|
|
6381
6455
|
|
|
6382
6456
|
// src/proto/data/toast-request.ts
|
|
6383
|
-
var
|
|
6384
|
-
var
|
|
6457
|
+
var import_binarystream77 = require("@serenityjs/binarystream");
|
|
6458
|
+
var import_raknet117 = require("@serenityjs/raknet");
|
|
6385
6459
|
var ToastRequestPacket = class extends DataPacket {
|
|
6386
6460
|
title;
|
|
6387
6461
|
message;
|
|
6388
6462
|
};
|
|
6389
6463
|
__decorateClass([
|
|
6390
|
-
(0,
|
|
6464
|
+
(0, import_raknet117.Serialize)(import_binarystream77.VarString)
|
|
6391
6465
|
], ToastRequestPacket.prototype, "title", 2);
|
|
6392
6466
|
__decorateClass([
|
|
6393
|
-
(0,
|
|
6467
|
+
(0, import_raknet117.Serialize)(import_binarystream77.VarString)
|
|
6394
6468
|
], ToastRequestPacket.prototype, "message", 2);
|
|
6395
6469
|
ToastRequestPacket = __decorateClass([
|
|
6396
|
-
(0,
|
|
6470
|
+
(0, import_raknet117.Proto)(186 /* ToastRequest */)
|
|
6397
6471
|
], ToastRequestPacket);
|
|
6398
6472
|
|
|
6399
6473
|
// src/proto/data/update-abilities.ts
|
|
6400
|
-
var
|
|
6401
|
-
var
|
|
6474
|
+
var import_binarystream78 = require("@serenityjs/binarystream");
|
|
6475
|
+
var import_raknet118 = require("@serenityjs/raknet");
|
|
6402
6476
|
var UpdateAbilitiesPacket = class extends DataPacket {
|
|
6403
6477
|
entityUniqueId;
|
|
6404
6478
|
permissionLevel;
|
|
@@ -6406,24 +6480,24 @@ var UpdateAbilitiesPacket = class extends DataPacket {
|
|
|
6406
6480
|
abilities;
|
|
6407
6481
|
};
|
|
6408
6482
|
__decorateClass([
|
|
6409
|
-
(0,
|
|
6483
|
+
(0, import_raknet118.Serialize)(import_binarystream78.Int64, import_binarystream78.Endianness.Little)
|
|
6410
6484
|
], UpdateAbilitiesPacket.prototype, "entityUniqueId", 2);
|
|
6411
6485
|
__decorateClass([
|
|
6412
|
-
(0,
|
|
6486
|
+
(0, import_raknet118.Serialize)(import_binarystream78.Uint8)
|
|
6413
6487
|
], UpdateAbilitiesPacket.prototype, "permissionLevel", 2);
|
|
6414
6488
|
__decorateClass([
|
|
6415
|
-
(0,
|
|
6489
|
+
(0, import_raknet118.Serialize)(import_binarystream78.Uint8)
|
|
6416
6490
|
], UpdateAbilitiesPacket.prototype, "commandPersmissionLevel", 2);
|
|
6417
6491
|
__decorateClass([
|
|
6418
|
-
(0,
|
|
6492
|
+
(0, import_raknet118.Serialize)(AbilityLayers)
|
|
6419
6493
|
], UpdateAbilitiesPacket.prototype, "abilities", 2);
|
|
6420
6494
|
UpdateAbilitiesPacket = __decorateClass([
|
|
6421
|
-
(0,
|
|
6495
|
+
(0, import_raknet118.Proto)(187 /* UpdateAbilities */)
|
|
6422
6496
|
], UpdateAbilitiesPacket);
|
|
6423
6497
|
|
|
6424
6498
|
// src/proto/data/update-adventure-settings.ts
|
|
6425
|
-
var
|
|
6426
|
-
var
|
|
6499
|
+
var import_binarystream79 = require("@serenityjs/binarystream");
|
|
6500
|
+
var import_raknet119 = require("@serenityjs/raknet");
|
|
6427
6501
|
var UpdateAdventureSettingsPacket = class extends DataPacket {
|
|
6428
6502
|
noPvm;
|
|
6429
6503
|
noPvp;
|
|
@@ -6432,48 +6506,48 @@ var UpdateAdventureSettingsPacket = class extends DataPacket {
|
|
|
6432
6506
|
autoJump;
|
|
6433
6507
|
};
|
|
6434
6508
|
__decorateClass([
|
|
6435
|
-
(0,
|
|
6509
|
+
(0, import_raknet119.Serialize)(import_binarystream79.Bool)
|
|
6436
6510
|
], UpdateAdventureSettingsPacket.prototype, "noPvm", 2);
|
|
6437
6511
|
__decorateClass([
|
|
6438
|
-
(0,
|
|
6512
|
+
(0, import_raknet119.Serialize)(import_binarystream79.Bool)
|
|
6439
6513
|
], UpdateAdventureSettingsPacket.prototype, "noPvp", 2);
|
|
6440
6514
|
__decorateClass([
|
|
6441
|
-
(0,
|
|
6515
|
+
(0, import_raknet119.Serialize)(import_binarystream79.Bool)
|
|
6442
6516
|
], UpdateAdventureSettingsPacket.prototype, "immutableWorld", 2);
|
|
6443
6517
|
__decorateClass([
|
|
6444
|
-
(0,
|
|
6518
|
+
(0, import_raknet119.Serialize)(import_binarystream79.Bool)
|
|
6445
6519
|
], UpdateAdventureSettingsPacket.prototype, "showNameTags", 2);
|
|
6446
6520
|
__decorateClass([
|
|
6447
|
-
(0,
|
|
6521
|
+
(0, import_raknet119.Serialize)(import_binarystream79.Bool)
|
|
6448
6522
|
], UpdateAdventureSettingsPacket.prototype, "autoJump", 2);
|
|
6449
6523
|
UpdateAdventureSettingsPacket = __decorateClass([
|
|
6450
|
-
(0,
|
|
6524
|
+
(0, import_raknet119.Proto)(188 /* UpdateAdventureSettings */)
|
|
6451
6525
|
], UpdateAdventureSettingsPacket);
|
|
6452
6526
|
|
|
6453
6527
|
// src/proto/data/update-attributes.ts
|
|
6454
|
-
var
|
|
6455
|
-
var
|
|
6528
|
+
var import_binarystream80 = require("@serenityjs/binarystream");
|
|
6529
|
+
var import_raknet120 = require("@serenityjs/raknet");
|
|
6456
6530
|
var UpdateAttributesPacket = class extends DataPacket {
|
|
6457
6531
|
runtimeEntityId;
|
|
6458
6532
|
attributes;
|
|
6459
6533
|
tick;
|
|
6460
6534
|
};
|
|
6461
6535
|
__decorateClass([
|
|
6462
|
-
(0,
|
|
6536
|
+
(0, import_raknet120.Serialize)(import_binarystream80.VarLong)
|
|
6463
6537
|
], UpdateAttributesPacket.prototype, "runtimeEntityId", 2);
|
|
6464
6538
|
__decorateClass([
|
|
6465
|
-
(0,
|
|
6539
|
+
(0, import_raknet120.Serialize)(PlayerAttributes)
|
|
6466
6540
|
], UpdateAttributesPacket.prototype, "attributes", 2);
|
|
6467
6541
|
__decorateClass([
|
|
6468
|
-
(0,
|
|
6542
|
+
(0, import_raknet120.Serialize)(import_binarystream80.VarLong)
|
|
6469
6543
|
], UpdateAttributesPacket.prototype, "tick", 2);
|
|
6470
6544
|
UpdateAttributesPacket = __decorateClass([
|
|
6471
|
-
(0,
|
|
6545
|
+
(0, import_raknet120.Proto)(29 /* UpdateAttributes */)
|
|
6472
6546
|
], UpdateAttributesPacket);
|
|
6473
6547
|
|
|
6474
6548
|
// src/proto/data/update-block.ts
|
|
6475
|
-
var
|
|
6476
|
-
var
|
|
6549
|
+
var import_binarystream81 = require("@serenityjs/binarystream");
|
|
6550
|
+
var import_raknet121 = require("@serenityjs/raknet");
|
|
6477
6551
|
var UpdateBlockPacket = class extends DataPacket {
|
|
6478
6552
|
position;
|
|
6479
6553
|
networkBlockId;
|
|
@@ -6481,19 +6555,19 @@ var UpdateBlockPacket = class extends DataPacket {
|
|
|
6481
6555
|
layer;
|
|
6482
6556
|
};
|
|
6483
6557
|
__decorateClass([
|
|
6484
|
-
(0,
|
|
6558
|
+
(0, import_raknet121.Serialize)(BlockCoordinates)
|
|
6485
6559
|
], UpdateBlockPacket.prototype, "position", 2);
|
|
6486
6560
|
__decorateClass([
|
|
6487
|
-
(0,
|
|
6561
|
+
(0, import_raknet121.Serialize)(import_binarystream81.VarInt)
|
|
6488
6562
|
], UpdateBlockPacket.prototype, "networkBlockId", 2);
|
|
6489
6563
|
__decorateClass([
|
|
6490
|
-
(0,
|
|
6564
|
+
(0, import_raknet121.Serialize)(import_binarystream81.VarInt)
|
|
6491
6565
|
], UpdateBlockPacket.prototype, "flags", 2);
|
|
6492
6566
|
__decorateClass([
|
|
6493
|
-
(0,
|
|
6567
|
+
(0, import_raknet121.Serialize)(import_binarystream81.VarInt)
|
|
6494
6568
|
], UpdateBlockPacket.prototype, "layer", 2);
|
|
6495
6569
|
UpdateBlockPacket = __decorateClass([
|
|
6496
|
-
(0,
|
|
6570
|
+
(0, import_raknet121.Proto)(21 /* UpdateBlock */)
|
|
6497
6571
|
], UpdateBlockPacket);
|
|
6498
6572
|
|
|
6499
6573
|
// src/proto/data/packets.ts
|
|
@@ -6639,10 +6713,10 @@ function VarintArray(type) {
|
|
|
6639
6713
|
}
|
|
6640
6714
|
|
|
6641
6715
|
// src/proto/framer.ts
|
|
6642
|
-
var
|
|
6716
|
+
var import_binarystream82 = require("@serenityjs/binarystream");
|
|
6643
6717
|
var Framer = class {
|
|
6644
6718
|
static unframe(buffer) {
|
|
6645
|
-
const stream = new
|
|
6719
|
+
const stream = new import_binarystream82.BinaryStream(buffer);
|
|
6646
6720
|
const frames = [];
|
|
6647
6721
|
do {
|
|
6648
6722
|
const length = stream.readVarInt();
|
|
@@ -6652,7 +6726,7 @@ var Framer = class {
|
|
|
6652
6726
|
return frames;
|
|
6653
6727
|
}
|
|
6654
6728
|
static frame(...buffers) {
|
|
6655
|
-
const stream = new
|
|
6729
|
+
const stream = new import_binarystream82.BinaryStream();
|
|
6656
6730
|
for (const buffer of buffers) {
|
|
6657
6731
|
stream.writeVarInt(buffer.length);
|
|
6658
6732
|
stream.writeBuffer(buffer);
|
|
@@ -6662,9 +6736,9 @@ var Framer = class {
|
|
|
6662
6736
|
};
|
|
6663
6737
|
|
|
6664
6738
|
// src/proto/packet-id.ts
|
|
6665
|
-
var
|
|
6739
|
+
var import_binarystream83 = require("@serenityjs/binarystream");
|
|
6666
6740
|
function getPacketId(buffer) {
|
|
6667
|
-
const stream =
|
|
6741
|
+
const stream = import_binarystream83.BinaryStream.fromBuffer(buffer);
|
|
6668
6742
|
return stream.readVarInt();
|
|
6669
6743
|
}
|
|
6670
6744
|
|
|
@@ -6693,6 +6767,7 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
6693
6767
|
BlockFace,
|
|
6694
6768
|
BlockPickRequestPacket,
|
|
6695
6769
|
BlockProperties,
|
|
6770
|
+
ChainedSubcommandValues,
|
|
6696
6771
|
ChangeDimensionPacket,
|
|
6697
6772
|
ChunkCoords,
|
|
6698
6773
|
ChunkRadiusUpdatePacket,
|
|
@@ -6724,9 +6799,9 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
6724
6799
|
EntityAttributes,
|
|
6725
6800
|
EntityProperties,
|
|
6726
6801
|
EnumConstraints,
|
|
6802
|
+
EnumValues,
|
|
6727
6803
|
Enums,
|
|
6728
6804
|
Experiments,
|
|
6729
|
-
FormType,
|
|
6730
6805
|
Framer,
|
|
6731
6806
|
GameRuleType,
|
|
6732
6807
|
GameRules,
|
|
@@ -6778,6 +6853,7 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
6778
6853
|
ModalFormData,
|
|
6779
6854
|
ModalFormRequestPacket,
|
|
6780
6855
|
ModalFormResponsePacket,
|
|
6856
|
+
ModalFormType,
|
|
6781
6857
|
MoveActorAbsolutePacket,
|
|
6782
6858
|
MoveMode,
|
|
6783
6859
|
MovePlayerPacket,
|
|
@@ -6799,6 +6875,7 @@ var MINECRAFT_TICK_SPEED = 50;
|
|
|
6799
6875
|
PlayerAuthInputPacket,
|
|
6800
6876
|
PlayerHotbarPacket,
|
|
6801
6877
|
PlayerListPacket,
|
|
6878
|
+
PostFixes,
|
|
6802
6879
|
RecordAction,
|
|
6803
6880
|
Records,
|
|
6804
6881
|
RemoveEntityPacket,
|