@serenityjs/protocol 0.1.0-beta.4 → 0.1.0-beta.5

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +365 -173
  2. package/dist/index.js +1434 -1218
  3. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -45,6 +45,7 @@ __export(src_exports, {
45
45
  BehaviorPackInfo: () => BehaviorPackInfo,
46
46
  BiomeDefinitionListPacket: () => BiomeDefinitionListPacket,
47
47
  BlockCoordinates: () => BlockCoordinates,
48
+ BlockFace: () => BlockFace,
48
49
  BlockPickRequestPacket: () => BlockPickRequestPacket,
49
50
  BlockProperties: () => BlockProperties,
50
51
  ChangeDimensionPacket: () => ChangeDimensionPacket,
@@ -58,6 +59,7 @@ __export(src_exports, {
58
59
  CommandPermissionLevel: () => CommandPermissionLevel,
59
60
  CommandRequestPacket: () => CommandRequestPacket,
60
61
  Commands: () => Commands,
62
+ ComplexInventoryTransaction: () => ComplexInventoryTransaction,
61
63
  ComponentItem: () => ComponentItem,
62
64
  CompressionMethod: () => CompressionMethod,
63
65
  ContainerClosePacket: () => ContainerClosePacket,
@@ -87,13 +89,18 @@ __export(src_exports, {
87
89
  InteractActions: () => InteractActions,
88
90
  InteractPacket: () => InteractPacket,
89
91
  InteractPosition: () => InteractPosition,
92
+ InventoryAction: () => InventoryAction,
90
93
  InventoryContentPacket: () => InventoryContentPacket,
91
94
  InventorySlotPacket: () => InventorySlotPacket,
95
+ InventorySource: () => InventorySource,
96
+ InventorySourceType: () => InventorySourceType,
97
+ InventoryTransaction: () => InventoryTransaction,
92
98
  InventoryTransactionPacket: () => InventoryTransactionPacket,
93
99
  ItemComponentPacket: () => ItemComponentPacket,
94
100
  ItemData: () => ItemData,
95
101
  ItemInstanceUserData: () => ItemInstanceUserData,
96
- ItemReleaseAction: () => ItemReleaseAction,
102
+ ItemReleaseInventoryTransaction: () => ItemReleaseInventoryTransaction,
103
+ ItemReleaseInventoryTransactionType: () => ItemReleaseInventoryTransactionType,
97
104
  ItemStackActionType: () => ItemStackActionType,
98
105
  ItemStackRequestPacket: () => ItemStackRequestPacket,
99
106
  ItemStackRequests: () => ItemStackRequests,
@@ -101,6 +108,11 @@ __export(src_exports, {
101
108
  ItemStackResponses: () => ItemStackResponses,
102
109
  ItemStackStatus: () => ItemStackStatus,
103
110
  ItemStacks: () => ItemStacks,
111
+ ItemUseInventoryTransaction: () => ItemUseInventoryTransaction,
112
+ ItemUseInventoryTransactionType: () => ItemUseInventoryTransactionType,
113
+ ItemUseOnEntityInventoryTransaction: () => ItemUseOnEntityInventoryTransaction,
114
+ ItemUseOnEntityInventoryTransactionType: () => ItemUseOnEntityInventoryTransactionType,
115
+ LegacyTransaction: () => LegacyTransaction,
104
116
  LevelChunkPacket: () => LevelChunkPacket,
105
117
  LevelEvent: () => LevelEvent,
106
118
  LevelEventPacket: () => LevelEventPacket,
@@ -177,22 +189,13 @@ __export(src_exports, {
177
189
  TexturePackInfo: () => TexturePackInfo,
178
190
  TitleTypes: () => TitleTypes,
179
191
  ToastRequestPacket: () => ToastRequestPacket,
180
- TransactionActions: () => TransactionActions,
181
- TransactionData: () => TransactionData,
182
- TransactionItemRelease: () => TransactionItemRelease,
183
- TransactionLegacy: () => TransactionLegacy,
184
192
  TransactionSourceType: () => TransactionSourceType,
185
- TransactionType: () => TransactionType,
186
- TransactionUseItem: () => TransactionUseItem,
187
- TransactionUseItemOnEntity: () => TransactionUseItemOnEntity,
188
193
  UpdateAbilitiesPacket: () => UpdateAbilitiesPacket,
189
194
  UpdateAdventureSettingsPacket: () => UpdateAdventureSettingsPacket,
190
195
  UpdateAttributesPacket: () => UpdateAttributesPacket,
191
196
  UpdateBlockFlagsType: () => UpdateBlockFlagsType,
192
197
  UpdateBlockLayerType: () => UpdateBlockLayerType,
193
198
  UpdateBlockPacket: () => UpdateBlockPacket,
194
- UseItemAction: () => UseItemAction,
195
- UseItemOnEntityAction: () => UseItemOnEntityAction,
196
199
  VarStringArray: () => VariableStringArray,
197
200
  VarintArray: () => VarintArray,
198
201
  Vector2f: () => Vector2f,
@@ -987,15 +990,15 @@ var MetadataFlags = /* @__PURE__ */ ((MetadataFlags2) => {
987
990
  return MetadataFlags2;
988
991
  })(MetadataFlags || {});
989
992
 
990
- // src/enums/transaction-type.ts
991
- var TransactionType = /* @__PURE__ */ ((TransactionType3) => {
992
- TransactionType3[TransactionType3["Normal"] = 0] = "Normal";
993
- TransactionType3[TransactionType3["InventoryMismatch"] = 1] = "InventoryMismatch";
994
- TransactionType3[TransactionType3["ItemUse"] = 2] = "ItemUse";
995
- TransactionType3[TransactionType3["ItemUseOnEntity"] = 3] = "ItemUseOnEntity";
996
- TransactionType3[TransactionType3["ItemRelease"] = 4] = "ItemRelease";
997
- return TransactionType3;
998
- })(TransactionType || {});
993
+ // src/enums/complex-inventory-transaction.ts
994
+ var ComplexInventoryTransaction = /* @__PURE__ */ ((ComplexInventoryTransaction2) => {
995
+ ComplexInventoryTransaction2[ComplexInventoryTransaction2["NormalTransaction"] = 0] = "NormalTransaction";
996
+ ComplexInventoryTransaction2[ComplexInventoryTransaction2["InventoryMismatch"] = 1] = "InventoryMismatch";
997
+ ComplexInventoryTransaction2[ComplexInventoryTransaction2["ItemUseTransaction"] = 2] = "ItemUseTransaction";
998
+ ComplexInventoryTransaction2[ComplexInventoryTransaction2["ItemUseOnEntityTransaction"] = 3] = "ItemUseOnEntityTransaction";
999
+ ComplexInventoryTransaction2[ComplexInventoryTransaction2["ItemReleaseTransaction"] = 4] = "ItemReleaseTransaction";
1000
+ return ComplexInventoryTransaction2;
1001
+ })(ComplexInventoryTransaction || {});
999
1002
 
1000
1003
  // src/enums/transaction-source-type.ts
1001
1004
  var TransactionSourceType = /* @__PURE__ */ ((TransactionSourceType2) => {
@@ -1008,28 +1011,6 @@ var TransactionSourceType = /* @__PURE__ */ ((TransactionSourceType2) => {
1008
1011
  return TransactionSourceType2;
1009
1012
  })(TransactionSourceType || {});
1010
1013
 
1011
- // src/enums/use-item-action.ts
1012
- var UseItemAction = /* @__PURE__ */ ((UseItemAction2) => {
1013
- UseItemAction2[UseItemAction2["ClickBlock"] = 0] = "ClickBlock";
1014
- UseItemAction2[UseItemAction2["ClickAir"] = 1] = "ClickAir";
1015
- UseItemAction2[UseItemAction2["BreakBlock"] = 2] = "BreakBlock";
1016
- return UseItemAction2;
1017
- })(UseItemAction || {});
1018
-
1019
- // src/enums/use-item-on-entity-action.ts
1020
- var UseItemOnEntityAction = /* @__PURE__ */ ((UseItemOnEntityAction2) => {
1021
- UseItemOnEntityAction2[UseItemOnEntityAction2["Interact"] = 0] = "Interact";
1022
- UseItemOnEntityAction2[UseItemOnEntityAction2["Attack"] = 1] = "Attack";
1023
- return UseItemOnEntityAction2;
1024
- })(UseItemOnEntityAction || {});
1025
-
1026
- // src/enums/item-release-action.ts
1027
- var ItemReleaseAction = /* @__PURE__ */ ((ItemReleaseAction2) => {
1028
- ItemReleaseAction2[ItemReleaseAction2["Release"] = 0] = "Release";
1029
- ItemReleaseAction2[ItemReleaseAction2["Consume"] = 1] = "Consume";
1030
- return ItemReleaseAction2;
1031
- })(ItemReleaseAction || {});
1032
-
1033
1014
  // src/enums/device-o-s.ts
1034
1015
  var DeviceOS = /* @__PURE__ */ ((DeviceOS3) => {
1035
1016
  DeviceOS3[DeviceOS3["Undefined"] = 0] = "Undefined";
@@ -1770,9 +1751,52 @@ var PackType = /* @__PURE__ */ ((PackType3) => {
1770
1751
  return PackType3;
1771
1752
  })(PackType || {});
1772
1753
 
1754
+ // src/enums/inventory-source-type.ts
1755
+ var InventorySourceType = /* @__PURE__ */ ((InventorySourceType2) => {
1756
+ InventorySourceType2[InventorySourceType2["ContainerInventory"] = 0] = "ContainerInventory";
1757
+ InventorySourceType2[InventorySourceType2["GlobalInventory"] = 1] = "GlobalInventory";
1758
+ InventorySourceType2[InventorySourceType2["WorldInteraction"] = 2] = "WorldInteraction";
1759
+ InventorySourceType2[InventorySourceType2["CreativeInventory"] = 3] = "CreativeInventory";
1760
+ InventorySourceType2[InventorySourceType2["NonImplementedFeatureTODO"] = 99999] = "NonImplementedFeatureTODO";
1761
+ return InventorySourceType2;
1762
+ })(InventorySourceType || {});
1763
+
1764
+ // src/enums/item-use-inventory-transaction-type.ts
1765
+ var ItemUseInventoryTransactionType = /* @__PURE__ */ ((ItemUseInventoryTransactionType2) => {
1766
+ ItemUseInventoryTransactionType2[ItemUseInventoryTransactionType2["Place"] = 0] = "Place";
1767
+ ItemUseInventoryTransactionType2[ItemUseInventoryTransactionType2["Use"] = 1] = "Use";
1768
+ ItemUseInventoryTransactionType2[ItemUseInventoryTransactionType2["Destroy"] = 2] = "Destroy";
1769
+ return ItemUseInventoryTransactionType2;
1770
+ })(ItemUseInventoryTransactionType || {});
1771
+
1772
+ // src/enums/item-use-on-entity-inventory-transaction-type.ts
1773
+ var ItemUseOnEntityInventoryTransactionType = /* @__PURE__ */ ((ItemUseOnEntityInventoryTransactionType2) => {
1774
+ ItemUseOnEntityInventoryTransactionType2[ItemUseOnEntityInventoryTransactionType2["Interact"] = 0] = "Interact";
1775
+ ItemUseOnEntityInventoryTransactionType2[ItemUseOnEntityInventoryTransactionType2["Attack"] = 1] = "Attack";
1776
+ return ItemUseOnEntityInventoryTransactionType2;
1777
+ })(ItemUseOnEntityInventoryTransactionType || {});
1778
+
1779
+ // src/enums/item-release-inventory-transaction-type.ts
1780
+ var ItemReleaseInventoryTransactionType = /* @__PURE__ */ ((ItemReleaseInventoryTransactionType2) => {
1781
+ ItemReleaseInventoryTransactionType2[ItemReleaseInventoryTransactionType2["Release"] = 0] = "Release";
1782
+ ItemReleaseInventoryTransactionType2[ItemReleaseInventoryTransactionType2["Consume"] = 1] = "Consume";
1783
+ return ItemReleaseInventoryTransactionType2;
1784
+ })(ItemReleaseInventoryTransactionType || {});
1785
+
1786
+ // src/enums/block-face.ts
1787
+ var BlockFace = /* @__PURE__ */ ((BlockFace2) => {
1788
+ BlockFace2[BlockFace2["Bottom"] = 0] = "Bottom";
1789
+ BlockFace2[BlockFace2["Top"] = 1] = "Top";
1790
+ BlockFace2[BlockFace2["North"] = 2] = "North";
1791
+ BlockFace2[BlockFace2["South"] = 3] = "South";
1792
+ BlockFace2[BlockFace2["West"] = 4] = "West";
1793
+ BlockFace2[BlockFace2["East"] = 5] = "East";
1794
+ return BlockFace2;
1795
+ })(BlockFace || {});
1796
+
1773
1797
  // src/proto/data/add-entity.ts
1774
1798
  var import_binarystream25 = require("@serenityjs/binarystream");
1775
- var import_raknet55 = require("@serenityjs/raknet");
1799
+ var import_raknet56 = require("@serenityjs/raknet");
1776
1800
 
1777
1801
  // src/proto/types/login-tokens.ts
1778
1802
  var import_binarystream = require("@serenityjs/binarystream");
@@ -2818,69 +2842,189 @@ var EntityProperties = class _EntityProperties extends import_raknet23.DataType
2818
2842
  }
2819
2843
  };
2820
2844
 
2821
- // src/proto/types/transaction-legacy.ts
2845
+ // src/proto/types/links.ts
2822
2846
  var import_raknet24 = require("@serenityjs/raknet");
2823
- var TransactionLegacy = class _TransactionLegacy extends import_raknet24.DataType {
2824
- requestId;
2825
- transactions;
2826
- constructor(requestId, transactions) {
2847
+ var Links = class _Links extends import_raknet24.DataType {
2848
+ immediate;
2849
+ riddenEntityId;
2850
+ riderEntityId;
2851
+ riderInitiated;
2852
+ type;
2853
+ constructor(immediate, riddenEntityId, riderEntityId, riderInitiated, type) {
2827
2854
  super();
2828
- this.requestId = requestId;
2829
- this.transactions = transactions;
2855
+ this.immediate = immediate;
2856
+ this.riddenEntityId = riddenEntityId;
2857
+ this.riderEntityId = riderEntityId;
2858
+ this.riderInitiated = riderInitiated;
2859
+ this.type = type;
2830
2860
  }
2831
2861
  static read(stream) {
2832
- const requestId = stream.readZigZag();
2833
- if (requestId === 0) {
2834
- return {
2835
- requestId,
2836
- transactions: null
2837
- };
2838
- }
2839
- const transactions = [];
2862
+ const links = [];
2840
2863
  const amount = stream.readVarInt();
2841
2864
  for (let index = 0; index < amount; index++) {
2842
- const containerId = stream.readByte();
2843
- const changedSlotsAmount = stream.readVarInt();
2844
- const changedSlots = [];
2845
- for (let index2 = 0; index2 < changedSlotsAmount; index2++) {
2846
- const changedSlot = stream.readUint8();
2847
- changedSlots.push(changedSlot);
2848
- }
2849
- transactions.push({
2850
- changedSlots,
2851
- containerId
2852
- });
2865
+ const riddenEntityId = stream.readZigZong();
2866
+ const riderEntityId = stream.readZigZong();
2867
+ const type = stream.readUint8();
2868
+ const immediate = stream.readBool();
2869
+ const riderInitiated = stream.readBool();
2870
+ links.push(
2871
+ new _Links(
2872
+ immediate,
2873
+ riddenEntityId,
2874
+ riderEntityId,
2875
+ riderInitiated,
2876
+ type
2877
+ )
2878
+ );
2853
2879
  }
2854
- return new _TransactionLegacy(requestId, transactions);
2880
+ return links;
2855
2881
  }
2856
2882
  static write(stream, value) {
2857
- stream.writeZigZag(value.requestId);
2858
- if (value.requestId === 0) {
2859
- return;
2883
+ stream.writeVarInt(value.length);
2884
+ for (const link of value) {
2885
+ stream.writeZigZong(link.riddenEntityId);
2886
+ stream.writeZigZong(link.riderEntityId);
2887
+ stream.writeUint8(link.type);
2888
+ stream.writeBool(link.immediate);
2889
+ stream.writeBool(link.riderInitiated);
2860
2890
  }
2861
- stream.writeVarInt(value.transactions.length);
2862
- for (const transaction of value.transactions) {
2863
- stream.writeByte(transaction.containerId);
2864
- stream.writeVarInt(transaction.changedSlots.length);
2865
- for (const changedSlot of transaction.changedSlots) {
2866
- stream.writeUint8(changedSlot);
2867
- }
2891
+ }
2892
+ };
2893
+
2894
+ // src/proto/types/modal-form-data.ts
2895
+ var import_raknet25 = require("@serenityjs/raknet");
2896
+ var ModalFormData = class extends import_raknet25.DataType {
2897
+ static read(stream, _endian, response) {
2898
+ return response ? stream.readVarString() : null;
2899
+ }
2900
+ static write(stream, value, _endian, response) {
2901
+ if (response) {
2902
+ stream.writeVarString(value);
2903
+ }
2904
+ }
2905
+ };
2906
+
2907
+ // src/proto/types/modal-form-canceled.ts
2908
+ var import_raknet26 = require("@serenityjs/raknet");
2909
+ var ModalFormCanceled = class extends import_raknet26.DataType {
2910
+ static read(stream, _endian, canceled) {
2911
+ return canceled ? stream.readUint8() : null;
2912
+ }
2913
+ static write(stream, value, _endian, canceled) {
2914
+ if (canceled) {
2915
+ stream.writeUint8(value);
2868
2916
  }
2869
2917
  }
2870
2918
  };
2871
2919
 
2872
- // src/proto/types/transaction-actions.ts
2920
+ // src/proto/types/entity-attributes.ts
2921
+ var import_binarystream15 = require("@serenityjs/binarystream");
2873
2922
  var import_raknet27 = require("@serenityjs/raknet");
2923
+ var EntityAttributes = class _EntityAttributes extends import_raknet27.DataType {
2924
+ /**
2925
+ * The name of the attribute.
2926
+ */
2927
+ name;
2928
+ /**
2929
+ * The minimum value of the attribute.
2930
+ */
2931
+ min;
2932
+ /**
2933
+ * The current value of the attribute.
2934
+ */
2935
+ value;
2936
+ /**
2937
+ * The maximum value of the attribute.
2938
+ */
2939
+ max;
2940
+ /**
2941
+ * Construct an instance of the class.
2942
+ *
2943
+ * @param name - The name of the attribute.
2944
+ * @param min - The minimum value of the attribute.
2945
+ * @param value - The current value of the attribute.
2946
+ * @param max - The maximum value of the attribute.
2947
+ */
2948
+ constructor(name, min, value, max) {
2949
+ super();
2950
+ this.name = name;
2951
+ this.min = min;
2952
+ this.value = value;
2953
+ this.max = max;
2954
+ }
2955
+ /**
2956
+ * Read the attributes from the stream.
2957
+ *
2958
+ * @param stream - The stream to read the attributes from.
2959
+ * @returns An array of attributes.
2960
+ */
2961
+ static read(stream) {
2962
+ const attributes = [];
2963
+ const amount = stream.readVarInt();
2964
+ for (let index = 0; index < amount; index++) {
2965
+ const name = stream.readVarString();
2966
+ const min = stream.readFloat32(import_binarystream15.Endianness.Little);
2967
+ const value = stream.readFloat32(import_binarystream15.Endianness.Little);
2968
+ const max = stream.readFloat32(import_binarystream15.Endianness.Little);
2969
+ attributes.push(new _EntityAttributes(name, min, value, max));
2970
+ }
2971
+ return attributes;
2972
+ }
2973
+ /**
2974
+ * Write the attributes to the stream.
2975
+ *
2976
+ * @param stream - The stream to write the attributes to.
2977
+ * @param value - The attributes to write.
2978
+ */
2979
+ static write(stream, value) {
2980
+ stream.writeVarInt(value.length);
2981
+ for (const attribute of value) {
2982
+ stream.writeVarString(attribute.name);
2983
+ stream.writeFloat32(attribute.min, import_binarystream15.Endianness.Little);
2984
+ stream.writeFloat32(attribute.value, import_binarystream15.Endianness.Little);
2985
+ stream.writeFloat32(attribute.max, import_binarystream15.Endianness.Little);
2986
+ }
2987
+ }
2988
+ };
2874
2989
 
2875
- // src/proto/types/network-item-stack-descriptor.ts
2876
- var import_raknet26 = require("@serenityjs/raknet");
2877
- var import_binarystream16 = require("@serenityjs/binarystream");
2990
+ // src/proto/types/item-stack-requests.ts
2991
+ var import_binarystream18 = require("@serenityjs/binarystream");
2992
+ var import_raknet31 = require("@serenityjs/raknet");
2993
+
2994
+ // src/proto/types/stack-request-slot-info.ts
2995
+ var import_raknet28 = require("@serenityjs/raknet");
2996
+ var StackRequestSlotInfo = class _StackRequestSlotInfo extends import_raknet28.DataType {
2997
+ type;
2998
+ slot;
2999
+ stackId;
3000
+ constructor(type, slot, stackId) {
3001
+ super();
3002
+ this.type = type;
3003
+ this.slot = slot;
3004
+ this.stackId = stackId;
3005
+ }
3006
+ static read(stream) {
3007
+ const type = stream.readUint8();
3008
+ const slot = stream.readUint8();
3009
+ const stackId = stream.readZigZag();
3010
+ return new _StackRequestSlotInfo(type, slot, stackId);
3011
+ }
3012
+ static write(stream, value) {
3013
+ stream.writeUint8(value.type);
3014
+ stream.writeUint8(value.slot);
3015
+ stream.writeZigZag(value.stackId);
3016
+ }
3017
+ };
3018
+
3019
+ // src/proto/types/network-item-instance-descriptor.ts
3020
+ var import_raknet30 = require("@serenityjs/raknet");
3021
+ var import_binarystream17 = require("@serenityjs/binarystream");
2878
3022
 
2879
3023
  // src/proto/types/item-instance-user-data.ts
2880
- var import_binarystream15 = require("@serenityjs/binarystream");
3024
+ var import_binarystream16 = require("@serenityjs/binarystream");
2881
3025
  var import_nbt2 = require("@serenityjs/nbt");
2882
- var import_raknet25 = require("@serenityjs/raknet");
2883
- var ItemInstanceUserData = class _ItemInstanceUserData extends import_raknet25.DataType {
3026
+ var import_raknet29 = require("@serenityjs/raknet");
3027
+ var ItemInstanceUserData = class _ItemInstanceUserData extends import_raknet29.DataType {
2884
3028
  nbt;
2885
3029
  canPlaceOn;
2886
3030
  canDestroy;
@@ -2899,13 +3043,13 @@ var ItemInstanceUserData = class _ItemInstanceUserData extends import_raknet25.D
2899
3043
  this.ticking = ticking;
2900
3044
  }
2901
3045
  static read(stream, _endian, id) {
2902
- const marker = stream.readUint16(import_binarystream15.Endianness.Little);
3046
+ const marker = stream.readUint16(import_binarystream16.Endianness.Little);
2903
3047
  let nbt;
2904
3048
  if (marker === 65535) {
2905
3049
  const version = stream.readInt8();
2906
3050
  switch (version) {
2907
3051
  case 1: {
2908
- nbt = import_nbt2.CompoundTag.read(stream, true, false);
3052
+ nbt = import_nbt2.CompoundTag.read(stream);
2909
3053
  break;
2910
3054
  }
2911
3055
  default: {
@@ -2916,84 +3060,79 @@ var ItemInstanceUserData = class _ItemInstanceUserData extends import_raknet25.D
2916
3060
  nbt = null;
2917
3061
  }
2918
3062
  const canPlaceOn = [];
2919
- const canPlaceOnLength = stream.readInt32(import_binarystream15.Endianness.Little);
3063
+ const canPlaceOnLength = stream.readInt32(import_binarystream16.Endianness.Little);
2920
3064
  for (let index = 0; index < canPlaceOnLength; index++) {
2921
- const string = stream.readString32(import_binarystream15.Endianness.Little);
3065
+ const string = stream.readString32(import_binarystream16.Endianness.Little);
2922
3066
  canPlaceOn.push(string);
2923
3067
  }
2924
3068
  const canDestroy = [];
2925
- const canDestroyLength = stream.readInt32(import_binarystream15.Endianness.Little);
3069
+ const canDestroyLength = stream.readInt32(import_binarystream16.Endianness.Little);
2926
3070
  for (let index = 0; index < canDestroyLength; index++) {
2927
- const string = stream.readString32(import_binarystream15.Endianness.Little);
3071
+ const string = stream.readString32(import_binarystream16.Endianness.Little);
2928
3072
  canDestroy.push(string);
2929
3073
  }
2930
- const ticking = id === 358 ? stream.readInt64(import_binarystream15.Endianness.Little) : null;
3074
+ const ticking = id === 358 ? stream.readInt64(import_binarystream16.Endianness.Little) : null;
2931
3075
  return new _ItemInstanceUserData(nbt, canPlaceOn, canDestroy, ticking);
2932
3076
  }
2933
3077
  static write(stream, value, _endian, id) {
2934
3078
  if (value.nbt) {
2935
- stream.writeUint16(65535, import_binarystream15.Endianness.Little);
3079
+ stream.writeUint16(65535, import_binarystream16.Endianness.Little);
2936
3080
  stream.writeInt8(1);
2937
3081
  import_nbt2.CompoundTag.write(stream, value.nbt, false);
2938
3082
  } else {
2939
- stream.writeUint16(0, import_binarystream15.Endianness.Little);
3083
+ stream.writeUint16(0, import_binarystream16.Endianness.Little);
2940
3084
  }
2941
- stream.writeInt32(value.canPlaceOn.length, import_binarystream15.Endianness.Little);
3085
+ stream.writeInt32(value.canPlaceOn.length, import_binarystream16.Endianness.Little);
2942
3086
  for (const string of value.canPlaceOn) {
2943
- stream.writeString32(string, import_binarystream15.Endianness.Little);
3087
+ stream.writeString32(string, import_binarystream16.Endianness.Little);
2944
3088
  }
2945
- stream.writeInt32(value.canDestroy.length, import_binarystream15.Endianness.Little);
3089
+ stream.writeInt32(value.canDestroy.length, import_binarystream16.Endianness.Little);
2946
3090
  for (const string of value.canDestroy) {
2947
- stream.writeString32(string, import_binarystream15.Endianness.Little);
3091
+ stream.writeString32(string, import_binarystream16.Endianness.Little);
2948
3092
  }
2949
3093
  if (id === 358) {
2950
- stream.writeInt64(value.ticking ?? BigInt(0), import_binarystream15.Endianness.Little);
3094
+ stream.writeInt64(value.ticking ?? BigInt(0), import_binarystream16.Endianness.Little);
2951
3095
  }
2952
3096
  }
2953
3097
  };
2954
3098
 
2955
- // src/proto/types/network-item-stack-descriptor.ts
2956
- var NetworkItemStackDescriptor = class _NetworkItemStackDescriptor extends import_raknet26.DataType {
3099
+ // src/proto/types/network-item-instance-descriptor.ts
3100
+ var NetworkItemInstanceDescriptor = class _NetworkItemInstanceDescriptor extends import_raknet30.DataType {
2957
3101
  network;
2958
3102
  stackSize;
2959
3103
  metadata;
2960
- stackNetId;
2961
- blockRuntimeId;
3104
+ networkBlockId;
2962
3105
  extras;
2963
3106
  /**
2964
- * Creates an instance of NetworkItemStackDescriptor.
3107
+ * Creates an instance of NetworkItemInstanceDescriptor.
2965
3108
  * @param id The network id of the item.
2966
3109
  * @param stackSize The size of the stack.
2967
3110
  * @param metadata The metadata of the item.
2968
- * @param includeStackNetId Whether to include the stack net id.
2969
3111
  * @param auxValue The aux value of the item.
2970
3112
  * @param userData The user data of the item.
2971
3113
  */
2972
- constructor(network, stackSize, metadata, stackNetId, blockRuntimeId, extras) {
3114
+ constructor(network, stackSize, metadata, networkBlockId, extras) {
2973
3115
  super();
2974
3116
  this.network = network;
2975
- this.stackSize = stackSize;
2976
- this.metadata = metadata;
2977
- this.stackNetId = stackNetId;
2978
- this.blockRuntimeId = blockRuntimeId;
2979
- this.extras = extras;
3117
+ this.stackSize = stackSize ?? null;
3118
+ this.metadata = metadata ?? null;
3119
+ this.networkBlockId = networkBlockId ?? null;
3120
+ this.extras = extras ?? null;
2980
3121
  }
2981
3122
  static read(stream) {
2982
3123
  const network = stream.readZigZag();
2983
3124
  if (network === 0)
2984
- return new _NetworkItemStackDescriptor(network);
2985
- const stackSize = stream.readUint16(import_binarystream16.Endianness.Little);
3125
+ return new _NetworkItemInstanceDescriptor(network);
3126
+ const stackSize = stream.readUint16(import_binarystream17.Endianness.Little);
2986
3127
  const metadata = stream.readVarInt();
2987
- const stackNetId = stream.readBool() ? stream.readVarInt() : null;
2988
- const blockRuntimeId = stream.readZigZag();
3128
+ const networkBlockId = stream.readZigZag();
2989
3129
  const length = stream.readVarInt();
2990
- const extras = length > 0 ? ItemInstanceUserData.read(stream, import_binarystream16.Endianness.Little, network) : null;
2991
- return new _NetworkItemStackDescriptor(
3130
+ const extras = length > 0 ? ItemInstanceUserData.read(stream, import_binarystream17.Endianness.Little, network) : null;
3131
+ return new _NetworkItemInstanceDescriptor(
2992
3132
  network,
2993
3133
  stackSize,
2994
3134
  metadata,
2995
- stackNetId,
2996
- blockRuntimeId,
3135
+ networkBlockId,
2997
3136
  extras
2998
3137
  );
2999
3138
  }
@@ -3001,21 +3140,15 @@ var NetworkItemStackDescriptor = class _NetworkItemStackDescriptor extends impor
3001
3140
  stream.writeZigZag(value.network);
3002
3141
  if (value.network === 0)
3003
3142
  return;
3004
- stream.writeUint16(value.stackSize ?? 0, import_binarystream16.Endianness.Little);
3143
+ stream.writeUint16(value.stackSize ?? 0, import_binarystream17.Endianness.Little);
3005
3144
  stream.writeVarInt(value.metadata ?? 0);
3006
- if (value.stackNetId) {
3007
- stream.writeBool(true);
3008
- stream.writeVarInt(value.stackNetId);
3009
- } else {
3010
- stream.writeBool(false);
3011
- }
3012
- stream.writeZigZag(value.blockRuntimeId ?? 0);
3145
+ stream.writeZigZag(value.networkBlockId ?? 0);
3013
3146
  if (value.extras) {
3014
- const extras = new import_binarystream16.BinaryStream();
3147
+ const extras = new import_binarystream17.BinaryStream();
3015
3148
  ItemInstanceUserData.write(
3016
3149
  extras,
3017
3150
  value.extras,
3018
- import_binarystream16.Endianness.Little,
3151
+ import_binarystream17.Endianness.Little,
3019
3152
  value.network
3020
3153
  );
3021
3154
  stream.writeVarInt(extras.binary.length);
@@ -3026,548 +3159,21 @@ var NetworkItemStackDescriptor = class _NetworkItemStackDescriptor extends impor
3026
3159
  }
3027
3160
  };
3028
3161
 
3029
- // src/proto/types/transaction-actions.ts
3030
- var TransactionActions = class _TransactionActions extends import_raknet27.DataType {
3031
- action;
3032
- flags;
3033
- inventoryId;
3034
- newItem;
3035
- oldItem;
3036
- slot;
3037
- sourceType;
3038
- constructor(action, flags, inventoryId, newItem, oldItem, slot, sourceType) {
3162
+ // src/proto/types/item-stack-requests.ts
3163
+ var ItemStackRequests = class _ItemStackRequests extends import_raknet31.DataType {
3164
+ id;
3165
+ actions;
3166
+ names;
3167
+ cause;
3168
+ constructor(id, actions, names, cause) {
3039
3169
  super();
3040
- this.action = action;
3041
- this.flags = flags;
3042
- this.inventoryId = inventoryId;
3043
- this.newItem = newItem;
3044
- this.oldItem = oldItem;
3045
- this.slot = slot;
3046
- this.sourceType = sourceType;
3170
+ this.id = id;
3171
+ this.actions = actions;
3172
+ this.names = names;
3173
+ this.cause = cause;
3047
3174
  }
3048
3175
  static read(stream) {
3049
- const transactions = [];
3050
- const amount = stream.readVarInt();
3051
- for (let index = 0; index < amount; index++) {
3052
- const sourceType = stream.readVarInt();
3053
- let inventoryId = null;
3054
- if (sourceType === 0 /* Container */ || sourceType === 9999 /* Craft */) {
3055
- inventoryId = stream.readVarInt();
3056
- }
3057
- let flags = null;
3058
- if (sourceType === 2 /* WorldInteraction */) {
3059
- flags = stream.readVarInt();
3060
- }
3061
- let action = null;
3062
- if (sourceType === 9999 /* Craft */ || sourceType === 100 /* CraftSlot */) {
3063
- action = stream.readVarInt();
3064
- }
3065
- const slot = stream.readVarInt();
3066
- const oldItem = NetworkItemStackDescriptor.read(stream);
3067
- const newItem = NetworkItemStackDescriptor.read(stream);
3068
- transactions.push(
3069
- new _TransactionActions(
3070
- action,
3071
- flags,
3072
- inventoryId,
3073
- newItem,
3074
- oldItem,
3075
- slot,
3076
- sourceType
3077
- )
3078
- );
3079
- }
3080
- return transactions;
3081
- }
3082
- static write(stream, value) {
3083
- stream.writeVarInt(value.sourceType);
3084
- if (value.sourceType === 0 /* Container */ || value.sourceType === 9999 /* Craft */) {
3085
- stream.writeVarInt(value.inventoryId ?? 0);
3086
- }
3087
- if (value.sourceType === 2 /* WorldInteraction */) {
3088
- stream.writeVarInt(value.flags ?? 0);
3089
- }
3090
- if (value.sourceType === 9999 /* Craft */ || value.sourceType === 100 /* CraftSlot */) {
3091
- stream.writeVarInt(value.action ?? 0);
3092
- }
3093
- stream.writeVarInt(value.slot);
3094
- NetworkItemStackDescriptor.write(stream, value.oldItem);
3095
- NetworkItemStackDescriptor.write(stream, value.newItem);
3096
- }
3097
- };
3098
-
3099
- // src/proto/types/transaction-use-item.ts
3100
- var import_raknet28 = require("@serenityjs/raknet");
3101
- var TransactionUseItem = class _TransactionUseItem extends import_raknet28.DataType {
3102
- action;
3103
- blockPosition;
3104
- blockRuntimeId;
3105
- clickPosition;
3106
- face;
3107
- heldItem;
3108
- hotbarSlot;
3109
- playerPosition;
3110
- constructor(action, blockPosition, blockRuntimeId, clickPosition, face, heldItem, hotbarSlot, playerPosition) {
3111
- super();
3112
- this.action = action;
3113
- this.blockPosition = blockPosition;
3114
- this.blockRuntimeId = blockRuntimeId;
3115
- this.clickPosition = clickPosition;
3116
- this.face = face;
3117
- this.heldItem = heldItem;
3118
- this.hotbarSlot = hotbarSlot;
3119
- this.playerPosition = playerPosition;
3120
- }
3121
- static read(stream) {
3122
- const action = stream.readVarInt();
3123
- const blockPosition = BlockCoordinates.read(stream);
3124
- const face = stream.readZigZag();
3125
- const hotbarSlot = stream.readZigZag();
3126
- const heldItem = NetworkItemStackDescriptor.read(stream);
3127
- const playerPosition = Vector3f.read(stream);
3128
- const clickPosition = Vector3f.read(stream);
3129
- const blockRuntimeId = stream.readVarInt();
3130
- return new _TransactionUseItem(
3131
- action,
3132
- blockPosition,
3133
- blockRuntimeId,
3134
- clickPosition,
3135
- face,
3136
- heldItem,
3137
- hotbarSlot,
3138
- playerPosition
3139
- );
3140
- }
3141
- static write(stream, value) {
3142
- stream.writeVarInt(value.action);
3143
- BlockCoordinates.write(stream, value.blockPosition);
3144
- stream.writeZigZag(value.face);
3145
- stream.writeZigZag(value.hotbarSlot);
3146
- NetworkItemStackDescriptor.write(stream, value.heldItem);
3147
- Vector3f.write(stream, value.playerPosition);
3148
- Vector3f.write(stream, value.clickPosition);
3149
- stream.writeVarInt(value.blockRuntimeId);
3150
- }
3151
- };
3152
-
3153
- // src/proto/types/transaction-use-item-on-entity.ts
3154
- var import_raknet29 = require("@serenityjs/raknet");
3155
- var TransactionUseItemOnEntity = class _TransactionUseItemOnEntity extends import_raknet29.DataType {
3156
- /**
3157
- * The action.
3158
- */
3159
- action;
3160
- /**
3161
- * The click position.
3162
- */
3163
- clickPosition;
3164
- /**
3165
- * The entity runtime id.
3166
- */
3167
- entityRuntimeId;
3168
- /**
3169
- * The held item.
3170
- */
3171
- heldItem;
3172
- /**
3173
- * The hotbar slot.
3174
- */
3175
- hotbarSlot;
3176
- /**
3177
- * The player position.
3178
- */
3179
- playerPosition;
3180
- /**
3181
- * Creates a new TransactionUseItemOnEntity.
3182
- */
3183
- constructor(action, clickPosition, entityRuntimeId, heldItem, hotbarSlot, playerPosition) {
3184
- super();
3185
- this.action = action;
3186
- this.clickPosition = clickPosition;
3187
- this.entityRuntimeId = entityRuntimeId;
3188
- this.heldItem = heldItem;
3189
- this.hotbarSlot = hotbarSlot;
3190
- this.playerPosition = playerPosition;
3191
- }
3192
- static read(stream) {
3193
- const entityRuntimeId = stream.readVarLong();
3194
- const action = stream.readVarInt();
3195
- const hotbarSlot = stream.readZigZag();
3196
- const heldItem = NetworkItemStackDescriptor.read(stream);
3197
- const playerPosition = Vector3f.read(stream);
3198
- const clickPosition = Vector3f.read(stream);
3199
- return new _TransactionUseItemOnEntity(
3200
- action,
3201
- clickPosition,
3202
- entityRuntimeId,
3203
- heldItem,
3204
- hotbarSlot,
3205
- playerPosition
3206
- );
3207
- }
3208
- static write(stream, value) {
3209
- stream.writeVarLong(value.entityRuntimeId);
3210
- stream.writeVarInt(value.action);
3211
- stream.writeZigZag(value.hotbarSlot);
3212
- NetworkItemStackDescriptor.write(stream, value.heldItem);
3213
- Vector3f.write(stream, value.playerPosition);
3214
- Vector3f.write(stream, value.clickPosition);
3215
- }
3216
- };
3217
-
3218
- // src/proto/types/transaction-data.ts
3219
- var import_raknet31 = require("@serenityjs/raknet");
3220
-
3221
- // src/proto/types/transaction-item-release.ts
3222
- var import_raknet30 = require("@serenityjs/raknet");
3223
- var TransactionItemRelease = class _TransactionItemRelease extends import_raknet30.DataType {
3224
- action;
3225
- headPosition;
3226
- heldItem;
3227
- hotbarSlot;
3228
- constructor(action, headPosition, heldItem, hotbarSlot) {
3229
- super();
3230
- this.action = action;
3231
- this.headPosition = headPosition;
3232
- this.heldItem = heldItem;
3233
- this.hotbarSlot = hotbarSlot;
3234
- }
3235
- static read(stream) {
3236
- const action = stream.readVarInt();
3237
- const hotbarSlot = stream.readZigZag();
3238
- const heldItem = NetworkItemStackDescriptor.read(stream);
3239
- const headPosition = Vector3f.read(stream);
3240
- return new _TransactionItemRelease(
3241
- action,
3242
- headPosition,
3243
- heldItem,
3244
- hotbarSlot
3245
- );
3246
- }
3247
- static write(stream, value) {
3248
- stream.writeVarInt(value.action);
3249
- stream.writeZigZag(value.hotbarSlot);
3250
- NetworkItemStackDescriptor.write(stream, value.heldItem);
3251
- Vector3f.write(stream, value.headPosition);
3252
- }
3253
- };
3254
-
3255
- // src/proto/types/transaction-data.ts
3256
- var TransactionData = class extends import_raknet31.DataType {
3257
- action;
3258
- blockPosition;
3259
- blockRuntimeId;
3260
- clickPosition;
3261
- entityRuntimeId;
3262
- face;
3263
- headPosition;
3264
- heldItem;
3265
- hotbarSlot;
3266
- playerPosition;
3267
- constructor(action, blockPosition, blockRuntimeId, clickPosition, entityRuntimeId, face, headPosition, heldItem, hotbarSlot, playerPosition) {
3268
- super();
3269
- this.action = action;
3270
- this.blockPosition = blockPosition;
3271
- this.blockRuntimeId = blockRuntimeId;
3272
- this.clickPosition = clickPosition;
3273
- this.entityRuntimeId = entityRuntimeId;
3274
- this.face = face;
3275
- this.headPosition = headPosition;
3276
- this.heldItem = heldItem;
3277
- this.hotbarSlot = hotbarSlot;
3278
- this.playerPosition = playerPosition;
3279
- }
3280
- static read(stream, endian, type) {
3281
- if (type === 0 /* Normal */ || type === 1 /* InventoryMismatch */)
3282
- return null;
3283
- if (type === 2 /* ItemUse */) {
3284
- const data = TransactionUseItem.read(stream);
3285
- return {
3286
- headPosition: null,
3287
- entityRuntimeId: null,
3288
- ...data
3289
- };
3290
- }
3291
- if (type === 3 /* ItemUseOnEntity */) {
3292
- const data = TransactionUseItemOnEntity.read(stream);
3293
- return {
3294
- headPosition: null,
3295
- blockPosition: null,
3296
- blockRuntimeId: null,
3297
- face: null,
3298
- ...data
3299
- };
3300
- }
3301
- if (type === 4 /* ItemRelease */) {
3302
- const data = TransactionItemRelease.read(stream);
3303
- return {
3304
- entityRuntimeId: null,
3305
- blockPosition: null,
3306
- blockRuntimeId: null,
3307
- playerPosition: null,
3308
- clickPosition: null,
3309
- face: null,
3310
- ...data
3311
- };
3312
- }
3313
- return null;
3314
- }
3315
- };
3316
-
3317
- // src/proto/types/links.ts
3318
- var import_raknet32 = require("@serenityjs/raknet");
3319
- var Links = class _Links extends import_raknet32.DataType {
3320
- immediate;
3321
- riddenEntityId;
3322
- riderEntityId;
3323
- riderInitiated;
3324
- type;
3325
- constructor(immediate, riddenEntityId, riderEntityId, riderInitiated, type) {
3326
- super();
3327
- this.immediate = immediate;
3328
- this.riddenEntityId = riddenEntityId;
3329
- this.riderEntityId = riderEntityId;
3330
- this.riderInitiated = riderInitiated;
3331
- this.type = type;
3332
- }
3333
- static read(stream) {
3334
- const links = [];
3335
- const amount = stream.readVarInt();
3336
- for (let index = 0; index < amount; index++) {
3337
- const riddenEntityId = stream.readZigZong();
3338
- const riderEntityId = stream.readZigZong();
3339
- const type = stream.readUint8();
3340
- const immediate = stream.readBool();
3341
- const riderInitiated = stream.readBool();
3342
- links.push(
3343
- new _Links(
3344
- immediate,
3345
- riddenEntityId,
3346
- riderEntityId,
3347
- riderInitiated,
3348
- type
3349
- )
3350
- );
3351
- }
3352
- return links;
3353
- }
3354
- static write(stream, value) {
3355
- stream.writeVarInt(value.length);
3356
- for (const link of value) {
3357
- stream.writeZigZong(link.riddenEntityId);
3358
- stream.writeZigZong(link.riderEntityId);
3359
- stream.writeUint8(link.type);
3360
- stream.writeBool(link.immediate);
3361
- stream.writeBool(link.riderInitiated);
3362
- }
3363
- }
3364
- };
3365
-
3366
- // src/proto/types/modal-form-data.ts
3367
- var import_raknet33 = require("@serenityjs/raknet");
3368
- var ModalFormData = class extends import_raknet33.DataType {
3369
- static read(stream, _endian, response) {
3370
- return response ? stream.readVarString() : null;
3371
- }
3372
- static write(stream, value, _endian, response) {
3373
- if (response) {
3374
- stream.writeVarString(value);
3375
- }
3376
- }
3377
- };
3378
-
3379
- // src/proto/types/modal-form-canceled.ts
3380
- var import_raknet34 = require("@serenityjs/raknet");
3381
- var ModalFormCanceled = class extends import_raknet34.DataType {
3382
- static read(stream, _endian, canceled) {
3383
- return canceled ? stream.readUint8() : null;
3384
- }
3385
- static write(stream, value, _endian, canceled) {
3386
- if (canceled) {
3387
- stream.writeUint8(value);
3388
- }
3389
- }
3390
- };
3391
-
3392
- // src/proto/types/entity-attributes.ts
3393
- var import_binarystream17 = require("@serenityjs/binarystream");
3394
- var import_raknet35 = require("@serenityjs/raknet");
3395
- var EntityAttributes = class _EntityAttributes extends import_raknet35.DataType {
3396
- /**
3397
- * The name of the attribute.
3398
- */
3399
- name;
3400
- /**
3401
- * The minimum value of the attribute.
3402
- */
3403
- min;
3404
- /**
3405
- * The current value of the attribute.
3406
- */
3407
- value;
3408
- /**
3409
- * The maximum value of the attribute.
3410
- */
3411
- max;
3412
- /**
3413
- * Construct an instance of the class.
3414
- *
3415
- * @param name - The name of the attribute.
3416
- * @param min - The minimum value of the attribute.
3417
- * @param value - The current value of the attribute.
3418
- * @param max - The maximum value of the attribute.
3419
- */
3420
- constructor(name, min, value, max) {
3421
- super();
3422
- this.name = name;
3423
- this.min = min;
3424
- this.value = value;
3425
- this.max = max;
3426
- }
3427
- /**
3428
- * Read the attributes from the stream.
3429
- *
3430
- * @param stream - The stream to read the attributes from.
3431
- * @returns An array of attributes.
3432
- */
3433
- static read(stream) {
3434
- const attributes = [];
3435
- const amount = stream.readVarInt();
3436
- for (let index = 0; index < amount; index++) {
3437
- const name = stream.readVarString();
3438
- const min = stream.readFloat32(import_binarystream17.Endianness.Little);
3439
- const value = stream.readFloat32(import_binarystream17.Endianness.Little);
3440
- const max = stream.readFloat32(import_binarystream17.Endianness.Little);
3441
- attributes.push(new _EntityAttributes(name, min, value, max));
3442
- }
3443
- return attributes;
3444
- }
3445
- /**
3446
- * Write the attributes to the stream.
3447
- *
3448
- * @param stream - The stream to write the attributes to.
3449
- * @param value - The attributes to write.
3450
- */
3451
- static write(stream, value) {
3452
- stream.writeVarInt(value.length);
3453
- for (const attribute of value) {
3454
- stream.writeVarString(attribute.name);
3455
- stream.writeFloat32(attribute.min, import_binarystream17.Endianness.Little);
3456
- stream.writeFloat32(attribute.value, import_binarystream17.Endianness.Little);
3457
- stream.writeFloat32(attribute.max, import_binarystream17.Endianness.Little);
3458
- }
3459
- }
3460
- };
3461
-
3462
- // src/proto/types/item-stack-requests.ts
3463
- var import_binarystream19 = require("@serenityjs/binarystream");
3464
- var import_raknet38 = require("@serenityjs/raknet");
3465
-
3466
- // src/proto/types/stack-request-slot-info.ts
3467
- var import_raknet36 = require("@serenityjs/raknet");
3468
- var StackRequestSlotInfo = class _StackRequestSlotInfo extends import_raknet36.DataType {
3469
- type;
3470
- slot;
3471
- stackId;
3472
- constructor(type, slot, stackId) {
3473
- super();
3474
- this.type = type;
3475
- this.slot = slot;
3476
- this.stackId = stackId;
3477
- }
3478
- static read(stream) {
3479
- const type = stream.readUint8();
3480
- const slot = stream.readUint8();
3481
- const stackId = stream.readZigZag();
3482
- return new _StackRequestSlotInfo(type, slot, stackId);
3483
- }
3484
- static write(stream, value) {
3485
- stream.writeUint8(value.type);
3486
- stream.writeUint8(value.slot);
3487
- stream.writeZigZag(value.stackId);
3488
- }
3489
- };
3490
-
3491
- // src/proto/types/network-item-instance-descriptor.ts
3492
- var import_raknet37 = require("@serenityjs/raknet");
3493
- var import_binarystream18 = require("@serenityjs/binarystream");
3494
- var NetworkItemInstanceDescriptor = class _NetworkItemInstanceDescriptor extends import_raknet37.DataType {
3495
- network;
3496
- stackSize;
3497
- metadata;
3498
- blockRuntimeId;
3499
- extras;
3500
- /**
3501
- * Creates an instance of NetworkItemInstanceDescriptor.
3502
- * @param id The network id of the item.
3503
- * @param stackSize The size of the stack.
3504
- * @param metadata The metadata of the item.
3505
- * @param auxValue The aux value of the item.
3506
- * @param userData The user data of the item.
3507
- */
3508
- constructor(network, stackSize, metadata, blockRuntimeId, extras) {
3509
- super();
3510
- this.network = network;
3511
- this.stackSize = stackSize;
3512
- this.metadata = metadata;
3513
- this.blockRuntimeId = blockRuntimeId;
3514
- this.extras = extras;
3515
- }
3516
- static read(stream) {
3517
- const network = stream.readZigZag();
3518
- if (network === 0)
3519
- return new _NetworkItemInstanceDescriptor(network);
3520
- const stackSize = stream.readUint16(import_binarystream18.Endianness.Little);
3521
- const metadata = stream.readVarInt();
3522
- const blockRuntimeId = stream.readZigZag();
3523
- const length = stream.readVarInt();
3524
- const extras = length > 0 ? ItemInstanceUserData.read(stream, import_binarystream18.Endianness.Little, network) : null;
3525
- return new _NetworkItemInstanceDescriptor(
3526
- network,
3527
- stackSize,
3528
- metadata,
3529
- blockRuntimeId,
3530
- extras
3531
- );
3532
- }
3533
- static write(stream, value) {
3534
- stream.writeZigZag(value.network);
3535
- if (value.network === 0)
3536
- return;
3537
- stream.writeUint16(value.stackSize ?? 0, import_binarystream18.Endianness.Little);
3538
- stream.writeVarInt(value.metadata ?? 0);
3539
- stream.writeZigZag(value.blockRuntimeId ?? 0);
3540
- if (value.extras) {
3541
- const extras = new import_binarystream18.BinaryStream();
3542
- ItemInstanceUserData.write(
3543
- extras,
3544
- value.extras,
3545
- import_binarystream18.Endianness.Little,
3546
- value.network
3547
- );
3548
- stream.writeVarInt(extras.binary.length);
3549
- stream.write(extras.binary);
3550
- } else {
3551
- stream.writeVarInt(0);
3552
- }
3553
- }
3554
- };
3555
-
3556
- // src/proto/types/item-stack-requests.ts
3557
- var ItemStackRequests = class _ItemStackRequests extends import_raknet38.DataType {
3558
- id;
3559
- actions;
3560
- names;
3561
- cause;
3562
- constructor(id, actions, names, cause) {
3563
- super();
3564
- this.id = id;
3565
- this.actions = actions;
3566
- this.names = names;
3567
- this.cause = cause;
3568
- }
3569
- static read(stream) {
3570
- const stacks = [];
3176
+ const stacks = [];
3571
3177
  const amount = stream.readVarInt();
3572
3178
  for (let index = 0; index < amount; index++) {
3573
3179
  const requestId = stream.readZigZag();
@@ -3678,7 +3284,7 @@ var ItemStackRequests = class _ItemStackRequests extends import_raknet38.DataTyp
3678
3284
  }
3679
3285
  case 15 /* Optional */: {
3680
3286
  const recipeNetworkId = stream.readVarInt();
3681
- const filterStringIndex = stream.readInt32(import_binarystream19.Endianness.Little);
3287
+ const filterStringIndex = stream.readInt32(import_binarystream18.Endianness.Little);
3682
3288
  actions.push({
3683
3289
  type,
3684
3290
  recipeNetworkId,
@@ -3729,7 +3335,7 @@ var ItemStackRequests = class _ItemStackRequests extends import_raknet38.DataTyp
3729
3335
  for (let index2 = 0; index2 < namesLength; index2++) {
3730
3336
  names.push(stream.readVarString());
3731
3337
  }
3732
- const cause = stream.readInt32(import_binarystream19.Endianness.Little);
3338
+ const cause = stream.readInt32(import_binarystream18.Endianness.Little);
3733
3339
  stacks.push(new _ItemStackRequests(requestId, actions, names, cause));
3734
3340
  }
3735
3341
  return stacks;
@@ -3737,8 +3343,8 @@ var ItemStackRequests = class _ItemStackRequests extends import_raknet38.DataTyp
3737
3343
  };
3738
3344
 
3739
3345
  // src/proto/types/item-stack-responses.ts
3740
- var import_raknet39 = require("@serenityjs/raknet");
3741
- var ItemStackResponses = class _ItemStackResponses extends import_raknet39.DataType {
3346
+ var import_raknet32 = require("@serenityjs/raknet");
3347
+ var ItemStackResponses = class _ItemStackResponses extends import_raknet32.DataType {
3742
3348
  status;
3743
3349
  id;
3744
3350
  containers;
@@ -3813,8 +3419,104 @@ var ItemStackResponses = class _ItemStackResponses extends import_raknet39.DataT
3813
3419
  };
3814
3420
 
3815
3421
  // src/proto/types/item-stacks.ts
3816
- var import_raknet40 = require("@serenityjs/raknet");
3817
- var ItemStacks = class extends import_raknet40.DataType {
3422
+ var import_raknet34 = require("@serenityjs/raknet");
3423
+
3424
+ // src/proto/types/network-item-stack-descriptor.ts
3425
+ var import_raknet33 = require("@serenityjs/raknet");
3426
+ var import_binarystream19 = require("@serenityjs/binarystream");
3427
+ var NetworkItemStackDescriptor = class _NetworkItemStackDescriptor extends import_raknet33.DataType {
3428
+ /**
3429
+ * The network id of the item.
3430
+ */
3431
+ network;
3432
+ /**
3433
+ * The size of the stack.
3434
+ */
3435
+ stackSize;
3436
+ /**
3437
+ * The metadata of the item.
3438
+ */
3439
+ metadata;
3440
+ /**
3441
+ * The stack net id of the item.
3442
+ */
3443
+ stackNetId;
3444
+ /**
3445
+ * The network block id of the item.
3446
+ */
3447
+ networkBlockId;
3448
+ /**
3449
+ * The extra data of the item.
3450
+ */
3451
+ extras;
3452
+ /**
3453
+ * Creates an instance of NetworkItemStackDescriptor.
3454
+ * @param id The network id of the item.
3455
+ * @param stackSize The size of the stack.
3456
+ * @param metadata The metadata of the item.
3457
+ * @param stackNetId The stack net id of the item.
3458
+ * @param networkBlockid The network block id of the item.
3459
+ * @param extras The extra data of the item.
3460
+ */
3461
+ constructor(network, stackSize, metadata, stackNetId, networkBlockid, extras) {
3462
+ super();
3463
+ this.network = network;
3464
+ this.stackSize = stackSize ?? null;
3465
+ this.metadata = metadata ?? null;
3466
+ this.stackNetId = stackNetId ?? null;
3467
+ this.networkBlockId = networkBlockid ?? null;
3468
+ this.extras = extras ?? null;
3469
+ }
3470
+ static read(stream) {
3471
+ const network = stream.readZigZag();
3472
+ if (network === 0)
3473
+ return new _NetworkItemStackDescriptor(network);
3474
+ const stackSize = stream.readUint16(import_binarystream19.Endianness.Little);
3475
+ const metadata = stream.readVarInt();
3476
+ const stackNetId = stream.readBool() ? stream.readVarInt() : null;
3477
+ const networkBlockId = stream.readZigZag();
3478
+ const length = stream.readVarInt();
3479
+ const extras = length > 0 ? ItemInstanceUserData.read(stream, import_binarystream19.Endianness.Little, network) : null;
3480
+ return new _NetworkItemStackDescriptor(
3481
+ network,
3482
+ stackSize,
3483
+ metadata,
3484
+ stackNetId,
3485
+ networkBlockId,
3486
+ extras
3487
+ );
3488
+ }
3489
+ static write(stream, value) {
3490
+ stream.writeZigZag(value.network);
3491
+ if (value.network === 0)
3492
+ return;
3493
+ stream.writeUint16(value.stackSize ?? 0, import_binarystream19.Endianness.Little);
3494
+ stream.writeVarInt(value.metadata ?? 0);
3495
+ if (value.stackNetId) {
3496
+ stream.writeBool(true);
3497
+ stream.writeVarInt(value.stackNetId);
3498
+ } else {
3499
+ stream.writeBool(false);
3500
+ }
3501
+ stream.writeZigZag(value.networkBlockId ?? 0);
3502
+ if (value.extras) {
3503
+ const extras = new import_binarystream19.BinaryStream();
3504
+ ItemInstanceUserData.write(
3505
+ extras,
3506
+ value.extras,
3507
+ import_binarystream19.Endianness.Little,
3508
+ value.network
3509
+ );
3510
+ stream.writeVarInt(extras.binary.length);
3511
+ stream.write(extras.binary);
3512
+ } else {
3513
+ stream.writeVarInt(0);
3514
+ }
3515
+ }
3516
+ };
3517
+
3518
+ // src/proto/types/item-stacks.ts
3519
+ var ItemStacks = class extends import_raknet34.DataType {
3818
3520
  static read(stream) {
3819
3521
  const stacks = [];
3820
3522
  const amount = stream.readVarInt();
@@ -3833,8 +3535,8 @@ var ItemStacks = class extends import_raknet40.DataType {
3833
3535
  };
3834
3536
 
3835
3537
  // src/proto/types/variable-string-array.ts
3836
- var import_raknet41 = require("@serenityjs/raknet");
3837
- var VariableStringArray = class extends import_raknet41.DataType {
3538
+ var import_raknet35 = require("@serenityjs/raknet");
3539
+ var VariableStringArray = class extends import_raknet35.DataType {
3838
3540
  static read(stream) {
3839
3541
  const strings = [];
3840
3542
  const amount = stream.readVarInt();
@@ -3852,8 +3554,8 @@ var VariableStringArray = class extends import_raknet41.DataType {
3852
3554
 
3853
3555
  // src/proto/types/enums.ts
3854
3556
  var import_binarystream20 = require("@serenityjs/binarystream");
3855
- var import_raknet42 = require("@serenityjs/raknet");
3856
- var Enums = class _Enums extends import_raknet42.DataType {
3557
+ var import_raknet36 = require("@serenityjs/raknet");
3558
+ var Enums = class _Enums extends import_raknet36.DataType {
3857
3559
  name;
3858
3560
  values;
3859
3561
  constructor(name, values) {
@@ -3903,8 +3605,8 @@ var Enums = class _Enums extends import_raknet42.DataType {
3903
3605
 
3904
3606
  // src/proto/types/subcommands.ts
3905
3607
  var import_binarystream21 = require("@serenityjs/binarystream");
3906
- var import_raknet43 = require("@serenityjs/raknet");
3907
- var Subcommands = class _Subcommands extends import_raknet43.DataType {
3608
+ var import_raknet37 = require("@serenityjs/raknet");
3609
+ var Subcommands = class _Subcommands extends import_raknet37.DataType {
3908
3610
  name;
3909
3611
  values;
3910
3612
  constructor(name, values) {
@@ -3943,8 +3645,8 @@ var Subcommands = class _Subcommands extends import_raknet43.DataType {
3943
3645
 
3944
3646
  // src/proto/types/commands.ts
3945
3647
  var import_binarystream22 = require("@serenityjs/binarystream");
3946
- var import_raknet44 = require("@serenityjs/raknet");
3947
- var Commands = class _Commands extends import_raknet44.DataType {
3648
+ var import_raknet38 = require("@serenityjs/raknet");
3649
+ var Commands = class _Commands extends import_raknet38.DataType {
3948
3650
  name;
3949
3651
  description;
3950
3652
  flags;
@@ -4049,8 +3751,8 @@ var Commands = class _Commands extends import_raknet44.DataType {
4049
3751
  };
4050
3752
 
4051
3753
  // src/proto/types/dynamic-enums.ts
4052
- var import_raknet45 = require("@serenityjs/raknet");
4053
- var DynamicEnums = class _DynamicEnums extends import_raknet45.DataType {
3754
+ var import_raknet39 = require("@serenityjs/raknet");
3755
+ var DynamicEnums = class _DynamicEnums extends import_raknet39.DataType {
4054
3756
  name;
4055
3757
  values;
4056
3758
  constructor(name, values) {
@@ -4084,8 +3786,8 @@ var DynamicEnums = class _DynamicEnums extends import_raknet45.DataType {
4084
3786
  };
4085
3787
 
4086
3788
  // src/proto/types/enum-constraints.ts
4087
- var import_raknet46 = require("@serenityjs/raknet");
4088
- var EnumConstraints = class _EnumConstraints extends import_raknet46.DataType {
3789
+ var import_raknet40 = require("@serenityjs/raknet");
3790
+ var EnumConstraints = class _EnumConstraints extends import_raknet40.DataType {
4089
3791
  valueIndex;
4090
3792
  enumIndex;
4091
3793
  constaints;
@@ -4124,8 +3826,8 @@ var EnumConstraints = class _EnumConstraints extends import_raknet46.DataType {
4124
3826
 
4125
3827
  // src/proto/types/animate-action.ts
4126
3828
  var import_binarystream23 = require("@serenityjs/binarystream");
4127
- var import_raknet47 = require("@serenityjs/raknet");
4128
- var AnimateAction = class extends import_raknet47.DataType {
3829
+ var import_raknet41 = require("@serenityjs/raknet");
3830
+ var AnimateAction = class extends import_raknet41.DataType {
4129
3831
  static read(stream, endian, id) {
4130
3832
  if (id === 128 /* RowRight */ || id === 129 /* RowLeft */) {
4131
3833
  return stream.readFloat32(endian);
@@ -4140,8 +3842,8 @@ var AnimateAction = class extends import_raknet47.DataType {
4140
3842
  };
4141
3843
 
4142
3844
  // src/proto/types/command-origin-data.ts
4143
- var import_raknet48 = require("@serenityjs/raknet");
4144
- var CommandOriginData = class _CommandOriginData extends import_raknet48.DataType {
3845
+ var import_raknet42 = require("@serenityjs/raknet");
3846
+ var CommandOriginData = class _CommandOriginData extends import_raknet42.DataType {
4145
3847
  origin;
4146
3848
  uuid;
4147
3849
  requestId;
@@ -4174,11 +3876,11 @@ var CommandOriginData = class _CommandOriginData extends import_raknet48.DataTyp
4174
3876
  };
4175
3877
 
4176
3878
  // src/proto/types/command-output-data.ts
4177
- var import_raknet50 = require("@serenityjs/raknet");
3879
+ var import_raknet44 = require("@serenityjs/raknet");
4178
3880
 
4179
3881
  // src/proto/types/command-output-message.ts
4180
- var import_raknet49 = require("@serenityjs/raknet");
4181
- var CommandOutputMessage = class _CommandOutputMessage extends import_raknet49.DataType {
3882
+ var import_raknet43 = require("@serenityjs/raknet");
3883
+ var CommandOutputMessage = class _CommandOutputMessage extends import_raknet43.DataType {
4182
3884
  isInternal;
4183
3885
  messageId;
4184
3886
  parameters;
@@ -4209,7 +3911,7 @@ var CommandOutputMessage = class _CommandOutputMessage extends import_raknet49.D
4209
3911
  };
4210
3912
 
4211
3913
  // src/proto/types/command-output-data.ts
4212
- var CommandOutputData = class _CommandOutputData extends import_raknet50.DataType {
3914
+ var CommandOutputData = class _CommandOutputData extends import_raknet44.DataType {
4213
3915
  originData;
4214
3916
  outputType;
4215
3917
  successCount;
@@ -4256,8 +3958,8 @@ var CommandOutputData = class _CommandOutputData extends import_raknet50.DataTyp
4256
3958
  };
4257
3959
 
4258
3960
  // src/proto/types/rotation.ts
4259
- var import_raknet51 = require("@serenityjs/raknet");
4260
- var Rotation = class _Rotation extends import_raknet51.DataType {
3961
+ var import_raknet45 = require("@serenityjs/raknet");
3962
+ var Rotation = class _Rotation extends import_raknet45.DataType {
4261
3963
  /**
4262
3964
  * The yaw of the vector.
4263
3965
  */
@@ -4329,8 +4031,8 @@ var Rotation = class _Rotation extends import_raknet51.DataType {
4329
4031
  };
4330
4032
 
4331
4033
  // src/proto/types/creative-items.ts
4332
- var import_raknet52 = require("@serenityjs/raknet");
4333
- var CreativeItems = class extends import_raknet52.DataType {
4034
+ var import_raknet46 = require("@serenityjs/raknet");
4035
+ var CreativeItems = class extends import_raknet46.DataType {
4334
4036
  static read(stream) {
4335
4037
  const items = [];
4336
4038
  const amount = stream.readVarInt();
@@ -4352,8 +4054,8 @@ var CreativeItems = class extends import_raknet52.DataType {
4352
4054
 
4353
4055
  // src/proto/types/component-item.ts
4354
4056
  var import_nbt3 = require("@serenityjs/nbt");
4355
- var import_raknet53 = require("@serenityjs/raknet");
4356
- var ComponentItem = class _ComponentItem extends import_raknet53.DataType {
4057
+ var import_raknet47 = require("@serenityjs/raknet");
4058
+ var ComponentItem = class _ComponentItem extends import_raknet47.DataType {
4357
4059
  name;
4358
4060
  data;
4359
4061
  constructor(name, data) {
@@ -4369,21 +4071,541 @@ var ComponentItem = class _ComponentItem extends import_raknet53.DataType {
4369
4071
  const data = import_nbt3.CompoundTag.read(stream);
4370
4072
  items.push(new _ComponentItem(name, data));
4371
4073
  }
4372
- return items;
4074
+ return items;
4075
+ }
4076
+ static write(stream, value) {
4077
+ stream.writeVarInt(value.length);
4078
+ for (const item of value) {
4079
+ stream.writeVarString(item.name);
4080
+ import_nbt3.CompoundTag.write(stream, item.data);
4081
+ }
4082
+ }
4083
+ };
4084
+
4085
+ // src/proto/types/legacy-transaction.ts
4086
+ var import_raknet48 = require("@serenityjs/raknet");
4087
+ var LegacyTransaction = class _LegacyTransaction extends import_raknet48.DataType {
4088
+ /**
4089
+ * The request identifier of the legacy transaction.
4090
+ */
4091
+ request;
4092
+ /**
4093
+ * The actions of the legacy transaction.
4094
+ * If the request identifier is 0, then this value will not be present.
4095
+ */
4096
+ actions;
4097
+ /**
4098
+ * Creates an instance of LegacyTransaction.
4099
+ *
4100
+ * @param request The request identifier of the legacy transaction.
4101
+ * @param actions The actions of the legacy transaction.
4102
+ */
4103
+ constructor(request, actions) {
4104
+ super();
4105
+ this.request = request;
4106
+ this.actions = actions ?? null;
4107
+ }
4108
+ static read(stream) {
4109
+ const request = stream.readZigZag();
4110
+ if (request === 0) {
4111
+ return new _LegacyTransaction(request);
4112
+ }
4113
+ const transactions = [];
4114
+ const amount = stream.readVarInt();
4115
+ for (let index = 0; index < amount; index++) {
4116
+ const containerId = stream.readUint8();
4117
+ const changedSlots = [];
4118
+ const changedSlotsAmount = stream.readVarInt();
4119
+ for (let index2 = 0; index2 < changedSlotsAmount; index2++) {
4120
+ const changedSlot = stream.readUint8();
4121
+ changedSlots.push(changedSlot);
4122
+ }
4123
+ transactions.push({
4124
+ containerId,
4125
+ changedSlots
4126
+ });
4127
+ }
4128
+ return new _LegacyTransaction(request, transactions);
4129
+ }
4130
+ static write(stream, value) {
4131
+ stream.writeZigZag(value.request);
4132
+ if (value.request === 0) {
4133
+ return;
4134
+ }
4135
+ if (value.actions === null) {
4136
+ throw new Error("actions are not present.");
4137
+ }
4138
+ stream.writeVarInt(value.actions.length);
4139
+ for (const transaction of value.actions) {
4140
+ stream.writeUint8(transaction.containerId);
4141
+ stream.writeVarInt(transaction.changedSlots.length);
4142
+ for (const changedSlot of transaction.changedSlots) {
4143
+ stream.writeUint8(changedSlot);
4144
+ }
4145
+ }
4146
+ }
4147
+ };
4148
+
4149
+ // src/proto/types/inventory-transaction.ts
4150
+ var import_raknet54 = require("@serenityjs/raknet");
4151
+
4152
+ // src/proto/types/inventory-action.ts
4153
+ var import_raknet50 = require("@serenityjs/raknet");
4154
+
4155
+ // src/proto/types/inventory-source.ts
4156
+ var import_raknet49 = require("@serenityjs/raknet");
4157
+ var InventorySource = class _InventorySource extends import_raknet49.DataType {
4158
+ /**
4159
+ * The source type of the inventory action.
4160
+ */
4161
+ type;
4162
+ /**
4163
+ * The container id of the inventory source.
4164
+ * If the source type is not ContainerInventory, then this value will not be present.
4165
+ */
4166
+ containerId;
4167
+ /**
4168
+ * The bit flags of the inventory source.
4169
+ * If the source type is not GlobalInteraction, then this value will not be present.
4170
+ */
4171
+ bitFlags;
4172
+ /**
4173
+ * Creates an instance of InventorySource.
4174
+ *
4175
+ * @param type The source type of the inventory action.
4176
+ * @param containerId The container id of the inventory source.
4177
+ * @param bitFlags The bit flags of the inventory source.
4178
+ */
4179
+ constructor(type, containerId, bitFlags) {
4180
+ super();
4181
+ this.type = type;
4182
+ this.containerId = containerId ?? null;
4183
+ this.bitFlags = bitFlags ?? null;
4184
+ }
4185
+ static read(stream) {
4186
+ const type = stream.readVarInt();
4187
+ let containerId = null;
4188
+ let bitFlags = null;
4189
+ switch (type) {
4190
+ case 0 /* ContainerInventory */: {
4191
+ containerId = stream.readVarInt();
4192
+ break;
4193
+ }
4194
+ case 2 /* WorldInteraction */: {
4195
+ bitFlags = stream.readVarInt();
4196
+ break;
4197
+ }
4198
+ default: {
4199
+ throw new Error(
4200
+ `Unknown/not implemented inventory source type: ${type}`
4201
+ );
4202
+ }
4203
+ }
4204
+ return new _InventorySource(type, containerId, bitFlags);
4205
+ }
4206
+ static write(stream, value) {
4207
+ stream.writeVarInt(value.type);
4208
+ switch (value.type) {
4209
+ case 0 /* ContainerInventory */: {
4210
+ if (value.containerId === null) {
4211
+ throw new Error(
4212
+ "ContainerInventory type must have a containerId value"
4213
+ );
4214
+ }
4215
+ stream.writeVarInt(value.containerId);
4216
+ break;
4217
+ }
4218
+ case 2 /* WorldInteraction */: {
4219
+ if (value.bitFlags === null) {
4220
+ throw new Error("WorldInteraction type must have a bitFlags value");
4221
+ }
4222
+ stream.writeVarInt(value.bitFlags);
4223
+ break;
4224
+ }
4225
+ default: {
4226
+ throw new Error(
4227
+ `Unknown/not implemented inventory source type: ${value.type}`
4228
+ );
4229
+ }
4230
+ }
4231
+ }
4232
+ };
4233
+
4234
+ // src/proto/types/inventory-action.ts
4235
+ var InventoryAction = class _InventoryAction extends import_raknet50.DataType {
4236
+ /**
4237
+ * The source type of the inventory action.
4238
+ */
4239
+ source;
4240
+ /**
4241
+ * The slot of the inventory action.
4242
+ */
4243
+ slot;
4244
+ /**
4245
+ * The old item of the inventory action.
4246
+ */
4247
+ oldItem;
4248
+ /**
4249
+ * The new item of the inventory action.
4250
+ */
4251
+ newItem;
4252
+ /**
4253
+ * Creates a new instance of InventoryAction.
4254
+ *
4255
+ * @param source - The source type of the inventory action.
4256
+ * @param slot - The slot of the inventory action.
4257
+ * @param oldItem - The old item of the inventory action.
4258
+ * @param newItem - The new item of the inventory action.
4259
+ */
4260
+ constructor(source, slot, oldItem, newItem) {
4261
+ super();
4262
+ this.source = source;
4263
+ this.slot = slot;
4264
+ this.oldItem = oldItem;
4265
+ this.newItem = newItem;
4266
+ }
4267
+ static read(stream) {
4268
+ const source = InventorySource.read(stream);
4269
+ const slot = stream.readVarInt();
4270
+ const oldItem = NetworkItemStackDescriptor.read(stream);
4271
+ const newItem = NetworkItemStackDescriptor.read(stream);
4272
+ return new _InventoryAction(source, slot, oldItem, newItem);
4273
+ }
4274
+ static write(stream, value) {
4275
+ InventorySource.write(stream, value.source);
4276
+ stream.writeVarInt(value.slot);
4277
+ NetworkItemStackDescriptor.write(stream, value.oldItem);
4278
+ NetworkItemStackDescriptor.write(stream, value.newItem);
4279
+ }
4280
+ };
4281
+
4282
+ // src/proto/types/item-use-inventory-transaction.ts
4283
+ var import_raknet51 = require("@serenityjs/raknet");
4284
+ var ItemUseInventoryTransaction = class _ItemUseInventoryTransaction extends import_raknet51.DataType {
4285
+ /**
4286
+ * The type of the item use inventory transaction.
4287
+ */
4288
+ type;
4289
+ /**
4290
+ * The block position of the item use inventory transaction.
4291
+ */
4292
+ blockPosition;
4293
+ /**
4294
+ * The block face of the item use inventory transaction.
4295
+ */
4296
+ face;
4297
+ /**
4298
+ * The slot of the item use inventory transaction.
4299
+ */
4300
+ slot;
4301
+ /**
4302
+ * The item of the item use inventory transaction.
4303
+ */
4304
+ item;
4305
+ /**
4306
+ * The from position of the item use inventory transaction.
4307
+ */
4308
+ fromPosition;
4309
+ /**
4310
+ * The click position of the item use inventory transaction.
4311
+ */
4312
+ clickPosition;
4313
+ /**
4314
+ * The network block id of the item use inventory transaction.
4315
+ */
4316
+ networkBlockId;
4317
+ /**
4318
+ * Creates an instance of ItemUseInventoryTransaction.
4319
+ *
4320
+ * @param type The type of the item use inventory transaction.
4321
+ * @param blockPosition The block position of the item use inventory transaction.
4322
+ * @param face The block face of the item use inventory transaction.
4323
+ * @param slot The slot of the item use inventory transaction.
4324
+ * @param item The item of the item use inventory transaction.
4325
+ * @param fromPosition The from position of the item use inventory transaction.
4326
+ * @param clickPosition The click position of the item use inventory transaction.
4327
+ * @param networkBlockId The network block id of the item use inventory transaction.
4328
+ */
4329
+ constructor(type, blockPosition, face, slot, item, fromPosition, clickPosition, networkBlockId) {
4330
+ super();
4331
+ this.type = type;
4332
+ this.blockPosition = blockPosition;
4333
+ this.face = face;
4334
+ this.slot = slot;
4335
+ this.item = item;
4336
+ this.fromPosition = fromPosition;
4337
+ this.clickPosition = clickPosition;
4338
+ this.networkBlockId = networkBlockId;
4339
+ }
4340
+ static read(stream) {
4341
+ const type = stream.readVarInt();
4342
+ const blockPosition = BlockCoordinates.read(stream);
4343
+ const face = stream.readZigZag();
4344
+ const slot = stream.readZigZag();
4345
+ const item = NetworkItemStackDescriptor.read(stream);
4346
+ const fromPosition = Vector3f.read(stream);
4347
+ const clickPosition = Vector3f.read(stream);
4348
+ const networkBlockId = stream.readZigZag();
4349
+ return new _ItemUseInventoryTransaction(
4350
+ type,
4351
+ blockPosition,
4352
+ face,
4353
+ slot,
4354
+ item,
4355
+ fromPosition,
4356
+ clickPosition,
4357
+ networkBlockId
4358
+ );
4359
+ }
4360
+ static write(stream, value) {
4361
+ stream.writeVarInt(value.type);
4362
+ BlockCoordinates.write(stream, value.blockPosition);
4363
+ stream.writeZigZag(value.face);
4364
+ stream.writeZigZag(value.slot);
4365
+ NetworkItemStackDescriptor.write(stream, value.item);
4366
+ Vector3f.write(stream, value.fromPosition);
4367
+ Vector3f.write(stream, value.clickPosition);
4368
+ stream.writeZigZag(value.networkBlockId);
4369
+ }
4370
+ };
4371
+
4372
+ // src/proto/types/item-use-on-entity-inventory-transaction.ts
4373
+ var import_raknet52 = require("@serenityjs/raknet");
4374
+ var ItemUseOnEntityInventoryTransaction = class _ItemUseOnEntityInventoryTransaction extends import_raknet52.DataType {
4375
+ /**
4376
+ * The runtime ID of the actor.
4377
+ */
4378
+ actorRuntimeId;
4379
+ /**
4380
+ * The type of the item use on entity inventory transaction.
4381
+ */
4382
+ type;
4383
+ /**
4384
+ * The slot of the item use on entity inventory transaction.
4385
+ */
4386
+ slot;
4387
+ /**
4388
+ * The item of the item use on entity inventory transaction.
4389
+ */
4390
+ item;
4391
+ /**
4392
+ * The from position of the item use on entity inventory transaction.
4393
+ */
4394
+ fromPosition;
4395
+ /**
4396
+ * The click position of the item use on entity inventory transaction.
4397
+ */
4398
+ clickPosition;
4399
+ /**
4400
+ * Creates an instance of ItemUseOnEntityInventoryTransaction.
4401
+ * @param actorRuntimeId - The runtime ID of the actor.
4402
+ * @param type - The type of the item use on entity inventory transaction.
4403
+ * @param slot - The slot of the item use on entity inventory transaction.
4404
+ * @param item - The item of the item use on entity inventory transaction.
4405
+ * @param fromPosition - The from position of the item use on entity inventory transaction.
4406
+ * @param clickPosition - The click position of the item use on entity inventory transaction.
4407
+ */
4408
+ constructor(actorRuntimeId, type, slot, item, fromPosition, clickPosition) {
4409
+ super();
4410
+ this.actorRuntimeId = actorRuntimeId;
4411
+ this.type = type;
4412
+ this.slot = slot;
4413
+ this.item = item;
4414
+ this.fromPosition = fromPosition;
4415
+ this.clickPosition = clickPosition;
4416
+ }
4417
+ static read(stream) {
4418
+ const actorRuntimeId = stream.readVarLong();
4419
+ const type = stream.readVarInt();
4420
+ const slot = stream.readZigZag();
4421
+ const item = NetworkItemStackDescriptor.read(stream);
4422
+ const fromPosition = Vector3f.read(stream);
4423
+ const clickPosition = Vector3f.read(stream);
4424
+ return new _ItemUseOnEntityInventoryTransaction(
4425
+ actorRuntimeId,
4426
+ type,
4427
+ slot,
4428
+ item,
4429
+ fromPosition,
4430
+ clickPosition
4431
+ );
4432
+ }
4433
+ static write(stream, value) {
4434
+ stream.writeVarLong(value.actorRuntimeId);
4435
+ stream.writeVarInt(value.type);
4436
+ stream.writeZigZag(value.slot);
4437
+ NetworkItemStackDescriptor.write(stream, value.item);
4438
+ Vector3f.write(stream, value.fromPosition);
4439
+ Vector3f.write(stream, value.clickPosition);
4440
+ }
4441
+ };
4442
+
4443
+ // src/proto/types/item-release-inventory-transaction.ts
4444
+ var import_raknet53 = require("@serenityjs/raknet");
4445
+ var ItemReleaseInventoryTransaction = class _ItemReleaseInventoryTransaction extends import_raknet53.DataType {
4446
+ /**
4447
+ * The type of the item release inventory transaction.
4448
+ */
4449
+ type;
4450
+ /**
4451
+ * The slot of the item release inventory transaction.
4452
+ */
4453
+ slot;
4454
+ /**
4455
+ * The item of the item release inventory transaction.
4456
+ */
4457
+ item;
4458
+ /**
4459
+ * The head position of the item release inventory transaction.
4460
+ */
4461
+ headPosition;
4462
+ /**
4463
+ * Creates an instance of ItemReleaseInventoryTransaction.
4464
+ * @param type - The type of the item release inventory transaction.
4465
+ * @param slot - The slot of the item release inventory transaction.
4466
+ * @param item - The item of the item release inventory transaction.
4467
+ * @param headPosition - The head position of the item release inventory transaction.
4468
+ */
4469
+ constructor(type, slot, item, headPosition) {
4470
+ super();
4471
+ this.type = type;
4472
+ this.slot = slot;
4473
+ this.item = item;
4474
+ this.headPosition = headPosition;
4475
+ }
4476
+ static read(stream) {
4477
+ const type = stream.readVarInt();
4478
+ const slot = stream.readZigZag();
4479
+ const item = NetworkItemStackDescriptor.read(stream);
4480
+ const headPosition = Vector3f.read(stream);
4481
+ return new _ItemReleaseInventoryTransaction(type, slot, item, headPosition);
4482
+ }
4483
+ static write(stream, value) {
4484
+ stream.writeVarInt(value.type);
4485
+ stream.writeZigZag(value.slot);
4486
+ NetworkItemStackDescriptor.write(stream, value.item);
4487
+ Vector3f.write(stream, value.headPosition);
4488
+ }
4489
+ };
4490
+
4491
+ // src/proto/types/inventory-transaction.ts
4492
+ var InventoryTransaction = class _InventoryTransaction extends import_raknet54.DataType {
4493
+ /**
4494
+ * The type of the inventory transaction.
4495
+ */
4496
+ type;
4497
+ /**
4498
+ * The actions of the inventory transaction.
4499
+ */
4500
+ actions;
4501
+ /**
4502
+ * The item use of the inventory transaction.
4503
+ */
4504
+ itemUse;
4505
+ /**
4506
+ * The item use on entity of the inventory transaction.
4507
+ */
4508
+ itemUseOnEntity;
4509
+ /**
4510
+ * The item release of the inventory transaction.
4511
+ */
4512
+ itemRelease;
4513
+ /**
4514
+ * Creates a new instance of InventoryTransaction.
4515
+ * @param actions - The actions of the inventory transaction.
4516
+ * @param type - The type of the inventory transaction.
4517
+ * @param itemUse - The item use of the inventory transaction.
4518
+ * @param itemUseOnEntity - The item use on entity of the inventory transaction.
4519
+ * @param itemRelease - The item release of the inventory transaction.
4520
+ */
4521
+ constructor(type, actions, itemUse, itemUseOnEntity, itemRelease) {
4522
+ super();
4523
+ this.type = type;
4524
+ this.actions = actions;
4525
+ this.itemUse = itemUse ?? null;
4526
+ this.itemUseOnEntity = itemUseOnEntity ?? null;
4527
+ this.itemRelease = itemRelease ?? null;
4528
+ }
4529
+ static read(stream) {
4530
+ const type = stream.readVarInt();
4531
+ const amount = stream.readVarInt();
4532
+ const actions = [];
4533
+ for (let index = 0; index < amount; index++) {
4534
+ const action = InventoryAction.read(stream);
4535
+ actions.push(action);
4536
+ }
4537
+ if (actions.length > 0) {
4538
+ return new _InventoryTransaction(type, actions);
4539
+ }
4540
+ switch (type) {
4541
+ default: {
4542
+ throw new Error(
4543
+ `Unknown/not implemented inventory transaction type: ${type}`
4544
+ );
4545
+ }
4546
+ case 0 /* NormalTransaction */:
4547
+ case 1 /* InventoryMismatch */: {
4548
+ return new _InventoryTransaction(type, actions);
4549
+ }
4550
+ case 2 /* ItemUseTransaction */: {
4551
+ const itemUse = ItemUseInventoryTransaction.read(stream);
4552
+ return new _InventoryTransaction(type, actions, itemUse);
4553
+ }
4554
+ case 3 /* ItemUseOnEntityTransaction */: {
4555
+ const itemUseOnEntity = ItemUseOnEntityInventoryTransaction.read(stream);
4556
+ return new _InventoryTransaction(type, actions, null, itemUseOnEntity);
4557
+ }
4558
+ case 4 /* ItemReleaseTransaction */: {
4559
+ const itemRelease = ItemReleaseInventoryTransaction.read(stream);
4560
+ return new _InventoryTransaction(type, actions, null, null, itemRelease);
4561
+ }
4562
+ }
4373
4563
  }
4374
4564
  static write(stream, value) {
4375
- stream.writeVarInt(value.length);
4376
- for (const item of value) {
4377
- stream.writeVarString(item.name);
4378
- import_nbt3.CompoundTag.write(stream, item.data);
4565
+ stream.writeVarInt(value.type);
4566
+ stream.writeVarInt(value.actions.length);
4567
+ for (const action of value.actions) {
4568
+ InventoryAction.write(stream, action);
4569
+ }
4570
+ switch (value.type) {
4571
+ default: {
4572
+ throw new Error(
4573
+ `Unknown/not implemented inventory transaction type: ${value.type}`
4574
+ );
4575
+ }
4576
+ case 0 /* NormalTransaction */:
4577
+ case 1 /* InventoryMismatch */: {
4578
+ return;
4579
+ }
4580
+ case 2 /* ItemUseTransaction */: {
4581
+ ItemUseInventoryTransaction.write(
4582
+ stream,
4583
+ value.itemUse
4584
+ );
4585
+ return;
4586
+ }
4587
+ case 3 /* ItemUseOnEntityTransaction */: {
4588
+ ItemUseOnEntityInventoryTransaction.write(
4589
+ stream,
4590
+ value.itemUseOnEntity
4591
+ );
4592
+ return;
4593
+ }
4594
+ case 4 /* ItemReleaseTransaction */: {
4595
+ ItemReleaseInventoryTransaction.write(
4596
+ stream,
4597
+ value.itemRelease
4598
+ );
4599
+ return;
4600
+ }
4379
4601
  }
4380
4602
  }
4381
4603
  };
4382
4604
 
4383
4605
  // src/proto/data/data-packet.ts
4384
- var import_raknet54 = require("@serenityjs/raknet");
4606
+ var import_raknet55 = require("@serenityjs/raknet");
4385
4607
  var import_binarystream24 = require("@serenityjs/binarystream");
4386
- var DataPacket = class extends import_raknet54.BasePacket {
4608
+ var DataPacket = class extends import_raknet55.BasePacket {
4387
4609
  static id;
4388
4610
  static id_type = import_binarystream24.VarInt;
4389
4611
  serialize() {
@@ -4411,51 +4633,51 @@ var AddEntityPacket = class extends DataPacket {
4411
4633
  links;
4412
4634
  };
4413
4635
  __decorateClass([
4414
- (0, import_raknet55.Serialize)(import_binarystream25.ZigZong)
4636
+ (0, import_raknet56.Serialize)(import_binarystream25.ZigZong)
4415
4637
  ], AddEntityPacket.prototype, "uniqueEntityId", 2);
4416
4638
  __decorateClass([
4417
- (0, import_raknet55.Serialize)(import_binarystream25.VarLong)
4639
+ (0, import_raknet56.Serialize)(import_binarystream25.VarLong)
4418
4640
  ], AddEntityPacket.prototype, "runtimeId", 2);
4419
4641
  __decorateClass([
4420
- (0, import_raknet55.Serialize)(import_binarystream25.VarString)
4642
+ (0, import_raknet56.Serialize)(import_binarystream25.VarString)
4421
4643
  ], AddEntityPacket.prototype, "identifier", 2);
4422
4644
  __decorateClass([
4423
- (0, import_raknet55.Serialize)(Vector3f)
4645
+ (0, import_raknet56.Serialize)(Vector3f)
4424
4646
  ], AddEntityPacket.prototype, "position", 2);
4425
4647
  __decorateClass([
4426
- (0, import_raknet55.Serialize)(Vector3f)
4648
+ (0, import_raknet56.Serialize)(Vector3f)
4427
4649
  ], AddEntityPacket.prototype, "velocity", 2);
4428
4650
  __decorateClass([
4429
- (0, import_raknet55.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4651
+ (0, import_raknet56.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4430
4652
  ], AddEntityPacket.prototype, "pitch", 2);
4431
4653
  __decorateClass([
4432
- (0, import_raknet55.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4654
+ (0, import_raknet56.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4433
4655
  ], AddEntityPacket.prototype, "yaw", 2);
4434
4656
  __decorateClass([
4435
- (0, import_raknet55.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4657
+ (0, import_raknet56.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4436
4658
  ], AddEntityPacket.prototype, "headYaw", 2);
4437
4659
  __decorateClass([
4438
- (0, import_raknet55.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4660
+ (0, import_raknet56.Serialize)(import_binarystream25.Float32, import_binarystream25.Endianness.Little)
4439
4661
  ], AddEntityPacket.prototype, "bodyYaw", 2);
4440
4662
  __decorateClass([
4441
- (0, import_raknet55.Serialize)(EntityAttributes)
4663
+ (0, import_raknet56.Serialize)(EntityAttributes)
4442
4664
  ], AddEntityPacket.prototype, "attributes", 2);
4443
4665
  __decorateClass([
4444
- (0, import_raknet55.Serialize)(MetadataDictionary)
4666
+ (0, import_raknet56.Serialize)(MetadataDictionary)
4445
4667
  ], AddEntityPacket.prototype, "metadata", 2);
4446
4668
  __decorateClass([
4447
- (0, import_raknet55.Serialize)(EntityProperties)
4669
+ (0, import_raknet56.Serialize)(EntityProperties)
4448
4670
  ], AddEntityPacket.prototype, "properties", 2);
4449
4671
  __decorateClass([
4450
- (0, import_raknet55.Serialize)(Links)
4672
+ (0, import_raknet56.Serialize)(Links)
4451
4673
  ], AddEntityPacket.prototype, "links", 2);
4452
4674
  AddEntityPacket = __decorateClass([
4453
- (0, import_raknet55.Proto)(13 /* AddEntity */)
4675
+ (0, import_raknet56.Proto)(13 /* AddEntity */)
4454
4676
  ], AddEntityPacket);
4455
4677
 
4456
4678
  // src/proto/data/add-item-actor.ts
4457
4679
  var import_binarystream26 = require("@serenityjs/binarystream");
4458
- var import_raknet56 = require("@serenityjs/raknet");
4680
+ var import_raknet57 = require("@serenityjs/raknet");
4459
4681
  var AddItemActorPacket = class extends DataPacket {
4460
4682
  uniqueId;
4461
4683
  runtimeId;
@@ -4466,33 +4688,33 @@ var AddItemActorPacket = class extends DataPacket {
4466
4688
  fromFishing;
4467
4689
  };
4468
4690
  __decorateClass([
4469
- (0, import_raknet56.Serialize)(import_binarystream26.ZigZong)
4691
+ (0, import_raknet57.Serialize)(import_binarystream26.ZigZong)
4470
4692
  ], AddItemActorPacket.prototype, "uniqueId", 2);
4471
4693
  __decorateClass([
4472
- (0, import_raknet56.Serialize)(import_binarystream26.VarLong)
4694
+ (0, import_raknet57.Serialize)(import_binarystream26.VarLong)
4473
4695
  ], AddItemActorPacket.prototype, "runtimeId", 2);
4474
4696
  __decorateClass([
4475
- (0, import_raknet56.Serialize)(NetworkItemStackDescriptor)
4697
+ (0, import_raknet57.Serialize)(NetworkItemStackDescriptor)
4476
4698
  ], AddItemActorPacket.prototype, "item", 2);
4477
4699
  __decorateClass([
4478
- (0, import_raknet56.Serialize)(Vector3f)
4700
+ (0, import_raknet57.Serialize)(Vector3f)
4479
4701
  ], AddItemActorPacket.prototype, "position", 2);
4480
4702
  __decorateClass([
4481
- (0, import_raknet56.Serialize)(Vector3f)
4703
+ (0, import_raknet57.Serialize)(Vector3f)
4482
4704
  ], AddItemActorPacket.prototype, "velocity", 2);
4483
4705
  __decorateClass([
4484
- (0, import_raknet56.Serialize)(MetadataDictionary)
4706
+ (0, import_raknet57.Serialize)(MetadataDictionary)
4485
4707
  ], AddItemActorPacket.prototype, "metadata", 2);
4486
4708
  __decorateClass([
4487
- (0, import_raknet56.Serialize)(import_binarystream26.Bool)
4709
+ (0, import_raknet57.Serialize)(import_binarystream26.Bool)
4488
4710
  ], AddItemActorPacket.prototype, "fromFishing", 2);
4489
4711
  AddItemActorPacket = __decorateClass([
4490
- (0, import_raknet56.Proto)(15 /* AddItemActor */)
4712
+ (0, import_raknet57.Proto)(15 /* AddItemActor */)
4491
4713
  ], AddItemActorPacket);
4492
4714
 
4493
4715
  // src/proto/data/add-player.ts
4494
4716
  var import_binarystream27 = require("@serenityjs/binarystream");
4495
- var import_raknet57 = require("@serenityjs/raknet");
4717
+ var import_raknet58 = require("@serenityjs/raknet");
4496
4718
  var AddPlayerPacket = class extends DataPacket {
4497
4719
  uuid;
4498
4720
  username;
@@ -4516,93 +4738,93 @@ var AddPlayerPacket = class extends DataPacket {
4516
4738
  deviceOS;
4517
4739
  };
4518
4740
  __decorateClass([
4519
- (0, import_raknet57.Serialize)(import_binarystream27.Uuid)
4741
+ (0, import_raknet58.Serialize)(import_binarystream27.Uuid)
4520
4742
  ], AddPlayerPacket.prototype, "uuid", 2);
4521
4743
  __decorateClass([
4522
- (0, import_raknet57.Serialize)(import_binarystream27.VarString)
4744
+ (0, import_raknet58.Serialize)(import_binarystream27.VarString)
4523
4745
  ], AddPlayerPacket.prototype, "username", 2);
4524
4746
  __decorateClass([
4525
- (0, import_raknet57.Serialize)(import_binarystream27.VarLong)
4747
+ (0, import_raknet58.Serialize)(import_binarystream27.VarLong)
4526
4748
  ], AddPlayerPacket.prototype, "runtimeId", 2);
4527
4749
  __decorateClass([
4528
- (0, import_raknet57.Serialize)(import_binarystream27.VarString)
4750
+ (0, import_raknet58.Serialize)(import_binarystream27.VarString)
4529
4751
  ], AddPlayerPacket.prototype, "platformChatId", 2);
4530
4752
  __decorateClass([
4531
- (0, import_raknet57.Serialize)(Vector3f)
4753
+ (0, import_raknet58.Serialize)(Vector3f)
4532
4754
  ], AddPlayerPacket.prototype, "position", 2);
4533
4755
  __decorateClass([
4534
- (0, import_raknet57.Serialize)(Vector3f)
4756
+ (0, import_raknet58.Serialize)(Vector3f)
4535
4757
  ], AddPlayerPacket.prototype, "velocity", 2);
4536
4758
  __decorateClass([
4537
- (0, import_raknet57.Serialize)(import_binarystream27.Float32, import_binarystream27.Endianness.Little)
4759
+ (0, import_raknet58.Serialize)(import_binarystream27.Float32, import_binarystream27.Endianness.Little)
4538
4760
  ], AddPlayerPacket.prototype, "pitch", 2);
4539
4761
  __decorateClass([
4540
- (0, import_raknet57.Serialize)(import_binarystream27.Float32, import_binarystream27.Endianness.Little)
4762
+ (0, import_raknet58.Serialize)(import_binarystream27.Float32, import_binarystream27.Endianness.Little)
4541
4763
  ], AddPlayerPacket.prototype, "yaw", 2);
4542
4764
  __decorateClass([
4543
- (0, import_raknet57.Serialize)(import_binarystream27.Float32, import_binarystream27.Endianness.Little)
4765
+ (0, import_raknet58.Serialize)(import_binarystream27.Float32, import_binarystream27.Endianness.Little)
4544
4766
  ], AddPlayerPacket.prototype, "headYaw", 2);
4545
4767
  __decorateClass([
4546
- (0, import_raknet57.Serialize)(NetworkItemStackDescriptor)
4768
+ (0, import_raknet58.Serialize)(NetworkItemStackDescriptor)
4547
4769
  ], AddPlayerPacket.prototype, "heldItem", 2);
4548
4770
  __decorateClass([
4549
- (0, import_raknet57.Serialize)(import_binarystream27.ZigZag)
4771
+ (0, import_raknet58.Serialize)(import_binarystream27.ZigZag)
4550
4772
  ], AddPlayerPacket.prototype, "gamemode", 2);
4551
4773
  __decorateClass([
4552
- (0, import_raknet57.Serialize)(MetadataDictionary)
4774
+ (0, import_raknet58.Serialize)(MetadataDictionary)
4553
4775
  ], AddPlayerPacket.prototype, "metadata", 2);
4554
4776
  __decorateClass([
4555
- (0, import_raknet57.Serialize)(EntityProperties)
4777
+ (0, import_raknet58.Serialize)(EntityProperties)
4556
4778
  ], AddPlayerPacket.prototype, "properties", 2);
4557
4779
  __decorateClass([
4558
- (0, import_raknet57.Serialize)(import_binarystream27.Int64, import_binarystream27.Endianness.Little)
4780
+ (0, import_raknet58.Serialize)(import_binarystream27.Int64, import_binarystream27.Endianness.Little)
4559
4781
  ], AddPlayerPacket.prototype, "uniqueEntityId", 2);
4560
4782
  __decorateClass([
4561
- (0, import_raknet57.Serialize)(import_binarystream27.Uint8)
4783
+ (0, import_raknet58.Serialize)(import_binarystream27.Uint8)
4562
4784
  ], AddPlayerPacket.prototype, "premissionLevel", 2);
4563
4785
  __decorateClass([
4564
- (0, import_raknet57.Serialize)(import_binarystream27.Uint8)
4786
+ (0, import_raknet58.Serialize)(import_binarystream27.Uint8)
4565
4787
  ], AddPlayerPacket.prototype, "commandPermission", 2);
4566
4788
  __decorateClass([
4567
- (0, import_raknet57.Serialize)(AbilityLayers)
4789
+ (0, import_raknet58.Serialize)(AbilityLayers)
4568
4790
  ], AddPlayerPacket.prototype, "abilities", 2);
4569
4791
  __decorateClass([
4570
- (0, import_raknet57.Serialize)(Links)
4792
+ (0, import_raknet58.Serialize)(Links)
4571
4793
  ], AddPlayerPacket.prototype, "links", 2);
4572
4794
  __decorateClass([
4573
- (0, import_raknet57.Serialize)(import_binarystream27.VarString)
4795
+ (0, import_raknet58.Serialize)(import_binarystream27.VarString)
4574
4796
  ], AddPlayerPacket.prototype, "deviceId", 2);
4575
4797
  __decorateClass([
4576
- (0, import_raknet57.Serialize)(import_binarystream27.Int32, import_binarystream27.Endianness.Little)
4798
+ (0, import_raknet58.Serialize)(import_binarystream27.Int32, import_binarystream27.Endianness.Little)
4577
4799
  ], AddPlayerPacket.prototype, "deviceOS", 2);
4578
4800
  AddPlayerPacket = __decorateClass([
4579
- (0, import_raknet57.Proto)(12 /* AddPlayer */)
4801
+ (0, import_raknet58.Proto)(12 /* AddPlayer */)
4580
4802
  ], AddPlayerPacket);
4581
4803
 
4582
4804
  // src/proto/data/animate.ts
4583
4805
  var import_binarystream28 = require("@serenityjs/binarystream");
4584
- var import_raknet58 = require("@serenityjs/raknet");
4806
+ var import_raknet59 = require("@serenityjs/raknet");
4585
4807
  var AnimatePacket = class extends DataPacket {
4586
4808
  id;
4587
4809
  runtimeEntityId;
4588
4810
  boatRowingTime;
4589
4811
  };
4590
4812
  __decorateClass([
4591
- (0, import_raknet58.Serialize)(import_binarystream28.ZigZag)
4813
+ (0, import_raknet59.Serialize)(import_binarystream28.ZigZag)
4592
4814
  ], AnimatePacket.prototype, "id", 2);
4593
4815
  __decorateClass([
4594
- (0, import_raknet58.Serialize)(import_binarystream28.VarLong)
4816
+ (0, import_raknet59.Serialize)(import_binarystream28.VarLong)
4595
4817
  ], AnimatePacket.prototype, "runtimeEntityId", 2);
4596
4818
  __decorateClass([
4597
- (0, import_raknet58.Serialize)(AnimateAction)
4819
+ (0, import_raknet59.Serialize)(AnimateAction)
4598
4820
  ], AnimatePacket.prototype, "boatRowingTime", 2);
4599
4821
  AnimatePacket = __decorateClass([
4600
- (0, import_raknet58.Proto)(44 /* Animate */)
4822
+ (0, import_raknet59.Proto)(44 /* Animate */)
4601
4823
  ], AnimatePacket);
4602
4824
 
4603
4825
  // src/proto/data/available-commands.ts
4604
4826
  var import_binarystream29 = require("@serenityjs/binarystream");
4605
- var import_raknet59 = require("@serenityjs/raknet");
4827
+ var import_raknet60 = require("@serenityjs/raknet");
4606
4828
  var AvailableCommandsPacket = class extends DataPacket {
4607
4829
  enumValues;
4608
4830
  subcommandValues;
@@ -4614,35 +4836,35 @@ var AvailableCommandsPacket = class extends DataPacket {
4614
4836
  enumConstraints;
4615
4837
  };
4616
4838
  __decorateClass([
4617
- (0, import_raknet59.Serialize)(VariableStringArray)
4839
+ (0, import_raknet60.Serialize)(VariableStringArray)
4618
4840
  ], AvailableCommandsPacket.prototype, "enumValues", 2);
4619
4841
  __decorateClass([
4620
- (0, import_raknet59.Serialize)(VariableStringArray)
4842
+ (0, import_raknet60.Serialize)(VariableStringArray)
4621
4843
  ], AvailableCommandsPacket.prototype, "subcommandValues", 2);
4622
4844
  __decorateClass([
4623
- (0, import_raknet59.Serialize)(VariableStringArray)
4845
+ (0, import_raknet60.Serialize)(VariableStringArray)
4624
4846
  ], AvailableCommandsPacket.prototype, "suffixes", 2);
4625
4847
  __decorateClass([
4626
- (0, import_raknet59.Serialize)(Enums, import_binarystream29.Endianness.Little, "enumValues")
4848
+ (0, import_raknet60.Serialize)(Enums, import_binarystream29.Endianness.Little, "enumValues")
4627
4849
  ], AvailableCommandsPacket.prototype, "enums", 2);
4628
4850
  __decorateClass([
4629
- (0, import_raknet59.Serialize)(Subcommands)
4851
+ (0, import_raknet60.Serialize)(Subcommands)
4630
4852
  ], AvailableCommandsPacket.prototype, "subcommands", 2);
4631
4853
  __decorateClass([
4632
- (0, import_raknet59.Serialize)(Commands)
4854
+ (0, import_raknet60.Serialize)(Commands)
4633
4855
  ], AvailableCommandsPacket.prototype, "commands", 2);
4634
4856
  __decorateClass([
4635
- (0, import_raknet59.Serialize)(DynamicEnums)
4857
+ (0, import_raknet60.Serialize)(DynamicEnums)
4636
4858
  ], AvailableCommandsPacket.prototype, "dynamicEnums", 2);
4637
4859
  __decorateClass([
4638
- (0, import_raknet59.Serialize)(EnumConstraints)
4860
+ (0, import_raknet60.Serialize)(EnumConstraints)
4639
4861
  ], AvailableCommandsPacket.prototype, "enumConstraints", 2);
4640
4862
  AvailableCommandsPacket = __decorateClass([
4641
- (0, import_raknet59.Proto)(76 /* AvailableCommands */)
4863
+ (0, import_raknet60.Proto)(76 /* AvailableCommands */)
4642
4864
  ], AvailableCommandsPacket);
4643
4865
 
4644
4866
  // src/proto/data/biome-definition-list.ts
4645
- var import_raknet60 = require("@serenityjs/raknet");
4867
+ var import_raknet61 = require("@serenityjs/raknet");
4646
4868
  var BiomeDefinitionListPacket = class extends DataPacket {
4647
4869
  biomes;
4648
4870
  serialize() {
@@ -4657,12 +4879,12 @@ var BiomeDefinitionListPacket = class extends DataPacket {
4657
4879
  }
4658
4880
  };
4659
4881
  BiomeDefinitionListPacket = __decorateClass([
4660
- (0, import_raknet60.Proto)(122 /* BiomeDefinitionList */)
4882
+ (0, import_raknet61.Proto)(122 /* BiomeDefinitionList */)
4661
4883
  ], BiomeDefinitionListPacket);
4662
4884
 
4663
4885
  // src/proto/data/block-pick-request.ts
4664
4886
  var import_binarystream30 = require("@serenityjs/binarystream");
4665
- var import_raknet61 = require("@serenityjs/raknet");
4887
+ var import_raknet62 = require("@serenityjs/raknet");
4666
4888
  var BlockPickRequestPacket = class extends DataPacket {
4667
4889
  x;
4668
4890
  y;
@@ -4671,73 +4893,73 @@ var BlockPickRequestPacket = class extends DataPacket {
4671
4893
  selectedSlot;
4672
4894
  };
4673
4895
  __decorateClass([
4674
- (0, import_raknet61.Serialize)(import_binarystream30.ZigZag)
4896
+ (0, import_raknet62.Serialize)(import_binarystream30.ZigZag)
4675
4897
  ], BlockPickRequestPacket.prototype, "x", 2);
4676
4898
  __decorateClass([
4677
- (0, import_raknet61.Serialize)(import_binarystream30.ZigZag)
4899
+ (0, import_raknet62.Serialize)(import_binarystream30.ZigZag)
4678
4900
  ], BlockPickRequestPacket.prototype, "y", 2);
4679
4901
  __decorateClass([
4680
- (0, import_raknet61.Serialize)(import_binarystream30.ZigZag)
4902
+ (0, import_raknet62.Serialize)(import_binarystream30.ZigZag)
4681
4903
  ], BlockPickRequestPacket.prototype, "z", 2);
4682
4904
  __decorateClass([
4683
- (0, import_raknet61.Serialize)(import_binarystream30.Bool)
4905
+ (0, import_raknet62.Serialize)(import_binarystream30.Bool)
4684
4906
  ], BlockPickRequestPacket.prototype, "addData", 2);
4685
4907
  __decorateClass([
4686
- (0, import_raknet61.Serialize)(import_binarystream30.Uint8)
4908
+ (0, import_raknet62.Serialize)(import_binarystream30.Uint8)
4687
4909
  ], BlockPickRequestPacket.prototype, "selectedSlot", 2);
4688
4910
  BlockPickRequestPacket = __decorateClass([
4689
- (0, import_raknet61.Proto)(34 /* BlockPickRequest */)
4911
+ (0, import_raknet62.Proto)(34 /* BlockPickRequest */)
4690
4912
  ], BlockPickRequestPacket);
4691
4913
 
4692
4914
  // src/proto/data/change-dimension.ts
4693
4915
  var import_binarystream31 = require("@serenityjs/binarystream");
4694
- var import_raknet62 = require("@serenityjs/raknet");
4916
+ var import_raknet63 = require("@serenityjs/raknet");
4695
4917
  var ChangeDimensionPacket = class extends DataPacket {
4696
4918
  dimension;
4697
4919
  position;
4698
4920
  respawn;
4699
4921
  };
4700
4922
  __decorateClass([
4701
- (0, import_raknet62.Serialize)(import_binarystream31.ZigZag)
4923
+ (0, import_raknet63.Serialize)(import_binarystream31.ZigZag)
4702
4924
  ], ChangeDimensionPacket.prototype, "dimension", 2);
4703
4925
  __decorateClass([
4704
- (0, import_raknet62.Serialize)(Vector3f)
4926
+ (0, import_raknet63.Serialize)(Vector3f)
4705
4927
  ], ChangeDimensionPacket.prototype, "position", 2);
4706
4928
  __decorateClass([
4707
- (0, import_raknet62.Serialize)(import_binarystream31.Bool)
4929
+ (0, import_raknet63.Serialize)(import_binarystream31.Bool)
4708
4930
  ], ChangeDimensionPacket.prototype, "respawn", 2);
4709
4931
  ChangeDimensionPacket = __decorateClass([
4710
- (0, import_raknet62.Proto)(61 /* ChangeDimension */)
4932
+ (0, import_raknet63.Proto)(61 /* ChangeDimension */)
4711
4933
  ], ChangeDimensionPacket);
4712
4934
 
4713
4935
  // src/proto/data/chunk-radius-update.ts
4714
4936
  var import_binarystream32 = require("@serenityjs/binarystream");
4715
- var import_raknet63 = require("@serenityjs/raknet");
4937
+ var import_raknet64 = require("@serenityjs/raknet");
4716
4938
  var ChunkRadiusUpdatePacket = class extends DataPacket {
4717
4939
  radius;
4718
4940
  };
4719
4941
  __decorateClass([
4720
- (0, import_raknet63.Serialize)(import_binarystream32.ZigZag)
4942
+ (0, import_raknet64.Serialize)(import_binarystream32.ZigZag)
4721
4943
  ], ChunkRadiusUpdatePacket.prototype, "radius", 2);
4722
4944
  ChunkRadiusUpdatePacket = __decorateClass([
4723
- (0, import_raknet63.Proto)(70 /* ChunkRadiusUpdate */)
4945
+ (0, import_raknet64.Proto)(70 /* ChunkRadiusUpdate */)
4724
4946
  ], ChunkRadiusUpdatePacket);
4725
4947
 
4726
4948
  // src/proto/data/command-output.ts
4727
- var import_raknet64 = require("@serenityjs/raknet");
4949
+ var import_raknet65 = require("@serenityjs/raknet");
4728
4950
  var CommandOutputPacket = class extends DataPacket {
4729
4951
  originData;
4730
4952
  };
4731
4953
  __decorateClass([
4732
- (0, import_raknet64.Serialize)(CommandOutputData)
4954
+ (0, import_raknet65.Serialize)(CommandOutputData)
4733
4955
  ], CommandOutputPacket.prototype, "originData", 2);
4734
4956
  CommandOutputPacket = __decorateClass([
4735
- (0, import_raknet64.Proto)(79 /* CommandOutput */)
4957
+ (0, import_raknet65.Proto)(79 /* CommandOutput */)
4736
4958
  ], CommandOutputPacket);
4737
4959
 
4738
4960
  // src/proto/data/command-request.ts
4739
4961
  var import_binarystream33 = require("@serenityjs/binarystream");
4740
- var import_raknet65 = require("@serenityjs/raknet");
4962
+ var import_raknet66 = require("@serenityjs/raknet");
4741
4963
  var CommandRequestPacket = class extends DataPacket {
4742
4964
  rawCommand;
4743
4965
  originData;
@@ -4745,41 +4967,41 @@ var CommandRequestPacket = class extends DataPacket {
4745
4967
  version;
4746
4968
  };
4747
4969
  __decorateClass([
4748
- (0, import_raknet65.Serialize)(import_binarystream33.VarString)
4970
+ (0, import_raknet66.Serialize)(import_binarystream33.VarString)
4749
4971
  ], CommandRequestPacket.prototype, "rawCommand", 2);
4750
4972
  __decorateClass([
4751
- (0, import_raknet65.Serialize)(CommandOriginData)
4973
+ (0, import_raknet66.Serialize)(CommandOriginData)
4752
4974
  ], CommandRequestPacket.prototype, "originData", 2);
4753
4975
  __decorateClass([
4754
- (0, import_raknet65.Serialize)(import_binarystream33.Bool)
4976
+ (0, import_raknet66.Serialize)(import_binarystream33.Bool)
4755
4977
  ], CommandRequestPacket.prototype, "isInternal", 2);
4756
4978
  __decorateClass([
4757
- (0, import_raknet65.Serialize)(import_binarystream33.VarInt)
4979
+ (0, import_raknet66.Serialize)(import_binarystream33.VarInt)
4758
4980
  ], CommandRequestPacket.prototype, "version", 2);
4759
4981
  CommandRequestPacket = __decorateClass([
4760
- (0, import_raknet65.Proto)(77 /* CommandRequest */)
4982
+ (0, import_raknet66.Proto)(77 /* CommandRequest */)
4761
4983
  ], CommandRequestPacket);
4762
4984
 
4763
4985
  // src/proto/data/container-close.ts
4764
4986
  var import_binarystream34 = require("@serenityjs/binarystream");
4765
- var import_raknet66 = require("@serenityjs/raknet");
4987
+ var import_raknet67 = require("@serenityjs/raknet");
4766
4988
  var ContainerClosePacket = class extends DataPacket {
4767
4989
  containerId;
4768
4990
  serverInitiated;
4769
4991
  };
4770
4992
  __decorateClass([
4771
- (0, import_raknet66.Serialize)(import_binarystream34.Int8)
4993
+ (0, import_raknet67.Serialize)(import_binarystream34.Int8)
4772
4994
  ], ContainerClosePacket.prototype, "containerId", 2);
4773
4995
  __decorateClass([
4774
- (0, import_raknet66.Serialize)(import_binarystream34.Bool)
4996
+ (0, import_raknet67.Serialize)(import_binarystream34.Bool)
4775
4997
  ], ContainerClosePacket.prototype, "serverInitiated", 2);
4776
4998
  ContainerClosePacket = __decorateClass([
4777
- (0, import_raknet66.Proto)(47 /* ContainerClose */)
4999
+ (0, import_raknet67.Proto)(47 /* ContainerClose */)
4778
5000
  ], ContainerClosePacket);
4779
5001
 
4780
5002
  // src/proto/data/container-open.ts
4781
5003
  var import_binarystream35 = require("@serenityjs/binarystream");
4782
- var import_raknet67 = require("@serenityjs/raknet");
5004
+ var import_raknet68 = require("@serenityjs/raknet");
4783
5005
  var ContainerOpenPacket = class extends DataPacket {
4784
5006
  containerId;
4785
5007
  containerType;
@@ -4787,177 +5009,168 @@ var ContainerOpenPacket = class extends DataPacket {
4787
5009
  targetRuntimeEntityId;
4788
5010
  };
4789
5011
  __decorateClass([
4790
- (0, import_raknet67.Serialize)(import_binarystream35.Int8)
5012
+ (0, import_raknet68.Serialize)(import_binarystream35.Int8)
4791
5013
  ], ContainerOpenPacket.prototype, "containerId", 2);
4792
5014
  __decorateClass([
4793
- (0, import_raknet67.Serialize)(import_binarystream35.Int8)
5015
+ (0, import_raknet68.Serialize)(import_binarystream35.Int8)
4794
5016
  ], ContainerOpenPacket.prototype, "containerType", 2);
4795
5017
  __decorateClass([
4796
- (0, import_raknet67.Serialize)(BlockCoordinates)
5018
+ (0, import_raknet68.Serialize)(BlockCoordinates)
4797
5019
  ], ContainerOpenPacket.prototype, "position", 2);
4798
5020
  __decorateClass([
4799
- (0, import_raknet67.Serialize)(import_binarystream35.ZigZong)
5021
+ (0, import_raknet68.Serialize)(import_binarystream35.ZigZong)
4800
5022
  ], ContainerOpenPacket.prototype, "targetRuntimeEntityId", 2);
4801
5023
  ContainerOpenPacket = __decorateClass([
4802
- (0, import_raknet67.Proto)(46 /* ContainerOpen */)
5024
+ (0, import_raknet68.Proto)(46 /* ContainerOpen */)
4803
5025
  ], ContainerOpenPacket);
4804
5026
 
4805
5027
  // src/proto/data/creative-content.ts
4806
- var import_raknet68 = require("@serenityjs/raknet");
5028
+ var import_raknet69 = require("@serenityjs/raknet");
4807
5029
  var CreativeContentPacket = class extends DataPacket {
4808
5030
  items;
4809
5031
  };
4810
5032
  __decorateClass([
4811
- (0, import_raknet68.Serialize)(CreativeItems)
5033
+ (0, import_raknet69.Serialize)(CreativeItems)
4812
5034
  ], CreativeContentPacket.prototype, "items", 2);
4813
5035
  CreativeContentPacket = __decorateClass([
4814
- (0, import_raknet68.Proto)(145 /* CreativeContent */)
5036
+ (0, import_raknet69.Proto)(145 /* CreativeContent */)
4815
5037
  ], CreativeContentPacket);
4816
5038
 
4817
5039
  // src/proto/data/disconnect.ts
4818
5040
  var import_binarystream36 = require("@serenityjs/binarystream");
4819
- var import_raknet69 = require("@serenityjs/raknet");
5041
+ var import_raknet70 = require("@serenityjs/raknet");
4820
5042
  var DisconnectPacket = class extends DataPacket {
4821
5043
  reason;
4822
5044
  hideDisconnectScreen;
4823
5045
  message;
4824
5046
  };
4825
5047
  __decorateClass([
4826
- (0, import_raknet69.Serialize)(import_binarystream36.ZigZag)
5048
+ (0, import_raknet70.Serialize)(import_binarystream36.ZigZag)
4827
5049
  ], DisconnectPacket.prototype, "reason", 2);
4828
5050
  __decorateClass([
4829
- (0, import_raknet69.Serialize)(import_binarystream36.Bool)
5051
+ (0, import_raknet70.Serialize)(import_binarystream36.Bool)
4830
5052
  ], DisconnectPacket.prototype, "hideDisconnectScreen", 2);
4831
5053
  __decorateClass([
4832
- (0, import_raknet69.Serialize)(import_binarystream36.VarString)
5054
+ (0, import_raknet70.Serialize)(import_binarystream36.VarString)
4833
5055
  ], DisconnectPacket.prototype, "message", 2);
4834
5056
  DisconnectPacket = __decorateClass([
4835
- (0, import_raknet69.Proto)(5 /* Disconnect */)
5057
+ (0, import_raknet70.Proto)(5 /* Disconnect */)
4836
5058
  ], DisconnectPacket);
4837
5059
 
4838
5060
  // src/proto/data/interact.ts
4839
5061
  var import_binarystream37 = require("@serenityjs/binarystream");
4840
- var import_raknet70 = require("@serenityjs/raknet");
5062
+ var import_raknet71 = require("@serenityjs/raknet");
4841
5063
  var InteractPacket = class extends DataPacket {
4842
5064
  action;
4843
5065
  targetUniqueEntityId;
4844
5066
  position;
4845
5067
  };
4846
5068
  __decorateClass([
4847
- (0, import_raknet70.Serialize)(import_binarystream37.Uint8)
5069
+ (0, import_raknet71.Serialize)(import_binarystream37.Uint8)
4848
5070
  ], InteractPacket.prototype, "action", 2);
4849
5071
  __decorateClass([
4850
- (0, import_raknet70.Serialize)(import_binarystream37.VarLong)
5072
+ (0, import_raknet71.Serialize)(import_binarystream37.VarLong)
4851
5073
  ], InteractPacket.prototype, "targetUniqueEntityId", 2);
4852
5074
  __decorateClass([
4853
- (0, import_raknet70.Serialize)(InteractPosition, import_binarystream37.Endianness.Big, "action")
5075
+ (0, import_raknet71.Serialize)(InteractPosition, import_binarystream37.Endianness.Big, "action")
4854
5076
  ], InteractPacket.prototype, "position", 2);
4855
5077
  InteractPacket = __decorateClass([
4856
- (0, import_raknet70.Proto)(33 /* Interact */)
5078
+ (0, import_raknet71.Proto)(33 /* Interact */)
4857
5079
  ], InteractPacket);
4858
5080
 
4859
5081
  // src/proto/data/inventory-content.ts
4860
5082
  var import_binarystream38 = require("@serenityjs/binarystream");
4861
- var import_raknet71 = require("@serenityjs/raknet");
5083
+ var import_raknet72 = require("@serenityjs/raknet");
4862
5084
  var InventoryContentPacket = class extends DataPacket {
4863
5085
  containerId;
4864
5086
  items;
4865
5087
  };
4866
5088
  __decorateClass([
4867
- (0, import_raknet71.Serialize)(import_binarystream38.VarInt)
5089
+ (0, import_raknet72.Serialize)(import_binarystream38.VarInt)
4868
5090
  ], InventoryContentPacket.prototype, "containerId", 2);
4869
5091
  __decorateClass([
4870
- (0, import_raknet71.Serialize)(ItemStacks)
5092
+ (0, import_raknet72.Serialize)(ItemStacks)
4871
5093
  ], InventoryContentPacket.prototype, "items", 2);
4872
5094
  InventoryContentPacket = __decorateClass([
4873
- (0, import_raknet71.Proto)(49 /* InventoryContent */)
5095
+ (0, import_raknet72.Proto)(49 /* InventoryContent */)
4874
5096
  ], InventoryContentPacket);
4875
5097
 
4876
5098
  // src/proto/data/inventory-slot.ts
4877
5099
  var import_binarystream39 = require("@serenityjs/binarystream");
4878
- var import_raknet72 = require("@serenityjs/raknet");
5100
+ var import_raknet73 = require("@serenityjs/raknet");
4879
5101
  var InventorySlotPacket = class extends DataPacket {
4880
5102
  containerId;
4881
5103
  slot;
4882
5104
  item;
4883
5105
  };
4884
5106
  __decorateClass([
4885
- (0, import_raknet72.Serialize)(import_binarystream39.VarInt)
5107
+ (0, import_raknet73.Serialize)(import_binarystream39.VarInt)
4886
5108
  ], InventorySlotPacket.prototype, "containerId", 2);
4887
5109
  __decorateClass([
4888
- (0, import_raknet72.Serialize)(import_binarystream39.VarInt)
5110
+ (0, import_raknet73.Serialize)(import_binarystream39.VarInt)
4889
5111
  ], InventorySlotPacket.prototype, "slot", 2);
4890
5112
  __decorateClass([
4891
- (0, import_raknet72.Serialize)(NetworkItemStackDescriptor)
5113
+ (0, import_raknet73.Serialize)(NetworkItemStackDescriptor)
4892
5114
  ], InventorySlotPacket.prototype, "item", 2);
4893
5115
  InventorySlotPacket = __decorateClass([
4894
- (0, import_raknet72.Proto)(50 /* InventorySlot */)
5116
+ (0, import_raknet73.Proto)(50 /* InventorySlot */)
4895
5117
  ], InventorySlotPacket);
4896
5118
 
4897
5119
  // src/proto/data/inventory-transaction.ts
4898
- var import_binarystream40 = require("@serenityjs/binarystream");
4899
- var import_raknet73 = require("@serenityjs/raknet");
5120
+ var import_raknet74 = require("@serenityjs/raknet");
4900
5121
  var InventoryTransactionPacket = class extends DataPacket {
4901
5122
  legacy;
4902
- type;
4903
- actions;
4904
- data;
5123
+ transaction;
4905
5124
  };
4906
5125
  __decorateClass([
4907
- (0, import_raknet73.Serialize)(TransactionLegacy)
5126
+ (0, import_raknet74.Serialize)(LegacyTransaction)
4908
5127
  ], InventoryTransactionPacket.prototype, "legacy", 2);
4909
5128
  __decorateClass([
4910
- (0, import_raknet73.Serialize)(import_binarystream40.VarInt)
4911
- ], InventoryTransactionPacket.prototype, "type", 2);
4912
- __decorateClass([
4913
- (0, import_raknet73.Serialize)(TransactionActions)
4914
- ], InventoryTransactionPacket.prototype, "actions", 2);
4915
- __decorateClass([
4916
- (0, import_raknet73.Serialize)(TransactionData, import_binarystream40.Endianness.Little, "type")
4917
- ], InventoryTransactionPacket.prototype, "data", 2);
5129
+ (0, import_raknet74.Serialize)(InventoryTransaction)
5130
+ ], InventoryTransactionPacket.prototype, "transaction", 2);
4918
5131
  InventoryTransactionPacket = __decorateClass([
4919
- (0, import_raknet73.Proto)(30 /* InventoryTransaction */)
5132
+ (0, import_raknet74.Proto)(30 /* InventoryTransaction */)
4920
5133
  ], InventoryTransactionPacket);
4921
5134
 
4922
5135
  // src/proto/data/item-component.ts
4923
- var import_raknet74 = require("@serenityjs/raknet");
5136
+ var import_raknet75 = require("@serenityjs/raknet");
4924
5137
  var ItemComponentPacket = class extends DataPacket {
4925
5138
  items;
4926
5139
  };
4927
5140
  __decorateClass([
4928
- (0, import_raknet74.Serialize)(ComponentItem)
5141
+ (0, import_raknet75.Serialize)(ComponentItem)
4929
5142
  ], ItemComponentPacket.prototype, "items", 2);
4930
5143
  ItemComponentPacket = __decorateClass([
4931
- (0, import_raknet74.Proto)(162 /* ItemComponent */)
5144
+ (0, import_raknet75.Proto)(162 /* ItemComponent */)
4932
5145
  ], ItemComponentPacket);
4933
5146
 
4934
5147
  // src/proto/data/item-stack-request.ts
4935
- var import_raknet75 = require("@serenityjs/raknet");
5148
+ var import_raknet76 = require("@serenityjs/raknet");
4936
5149
  var ItemStackRequestPacket = class extends DataPacket {
4937
5150
  requests;
4938
5151
  };
4939
5152
  __decorateClass([
4940
- (0, import_raknet75.Serialize)(ItemStackRequests)
5153
+ (0, import_raknet76.Serialize)(ItemStackRequests)
4941
5154
  ], ItemStackRequestPacket.prototype, "requests", 2);
4942
5155
  ItemStackRequestPacket = __decorateClass([
4943
- (0, import_raknet75.Proto)(147 /* ItemStackRequest */)
5156
+ (0, import_raknet76.Proto)(147 /* ItemStackRequest */)
4944
5157
  ], ItemStackRequestPacket);
4945
5158
 
4946
5159
  // src/proto/data/item-stack-response.ts
4947
- var import_raknet76 = require("@serenityjs/raknet");
5160
+ var import_raknet77 = require("@serenityjs/raknet");
4948
5161
  var ItemStackResponsePacket = class extends DataPacket {
4949
5162
  responses;
4950
5163
  };
4951
5164
  __decorateClass([
4952
- (0, import_raknet76.Serialize)(ItemStackResponses)
5165
+ (0, import_raknet77.Serialize)(ItemStackResponses)
4953
5166
  ], ItemStackResponsePacket.prototype, "responses", 2);
4954
5167
  ItemStackResponsePacket = __decorateClass([
4955
- (0, import_raknet76.Proto)(148 /* ItemStackResponse */)
5168
+ (0, import_raknet77.Proto)(148 /* ItemStackResponse */)
4956
5169
  ], ItemStackResponsePacket);
4957
5170
 
4958
5171
  // src/proto/data/level-chunk.ts
4959
- var import_binarystream41 = require("@serenityjs/binarystream");
4960
- var import_raknet77 = require("@serenityjs/raknet");
5172
+ var import_binarystream40 = require("@serenityjs/binarystream");
5173
+ var import_raknet78 = require("@serenityjs/raknet");
4961
5174
  var LevelChunkPacket = class extends DataPacket {
4962
5175
  x;
4963
5176
  z;
@@ -4973,7 +5186,7 @@ var LevelChunkPacket = class extends DataPacket {
4973
5186
  this.writeZigZag(this.dimension);
4974
5187
  if (this.cacheEnabled) {
4975
5188
  this.writeVarInt(-2);
4976
- this.writeUint16(this.subChunkCount, import_binarystream41.Endianness.Little);
5189
+ this.writeUint16(this.subChunkCount, import_binarystream40.Endianness.Little);
4977
5190
  } else {
4978
5191
  this.writeVarInt(this.subChunkCount);
4979
5192
  }
@@ -4981,7 +5194,7 @@ var LevelChunkPacket = class extends DataPacket {
4981
5194
  if (this.blobs) {
4982
5195
  this.writeVarInt(this.blobs.length);
4983
5196
  for (const hash of this.blobs) {
4984
- this.writeUint64(hash, import_binarystream41.Endianness.Little);
5197
+ this.writeUint64(hash, import_binarystream40.Endianness.Little);
4985
5198
  }
4986
5199
  }
4987
5200
  this.writeVarInt(this.data.byteLength);
@@ -4995,14 +5208,14 @@ var LevelChunkPacket = class extends DataPacket {
4995
5208
  this.dimension = this.readZigZag();
4996
5209
  this.subChunkCount = this.readVarInt();
4997
5210
  if (this.subChunkCount === -2) {
4998
- this.subChunkCount = this.readUint16(import_binarystream41.Endianness.Little);
5211
+ this.subChunkCount = this.readUint16(import_binarystream40.Endianness.Little);
4999
5212
  }
5000
5213
  this.cacheEnabled = this.readBool();
5001
5214
  if (this.cacheEnabled) {
5002
5215
  const blobCount = this.readVarInt();
5003
5216
  this.blobs = [];
5004
5217
  for (let index = 0; index < blobCount; index++) {
5005
- this.blobs.push(this.readUint64(import_binarystream41.Endianness.Little));
5218
+ this.blobs.push(this.readUint64(import_binarystream40.Endianness.Little));
5006
5219
  }
5007
5220
  }
5008
5221
  const length = this.readVarInt();
@@ -5011,33 +5224,33 @@ var LevelChunkPacket = class extends DataPacket {
5011
5224
  }
5012
5225
  };
5013
5226
  LevelChunkPacket = __decorateClass([
5014
- (0, import_raknet77.Proto)(58 /* LevelChunk */)
5227
+ (0, import_raknet78.Proto)(58 /* LevelChunk */)
5015
5228
  ], LevelChunkPacket);
5016
5229
 
5017
5230
  // src/proto/data/level-event.ts
5018
- var import_binarystream42 = require("@serenityjs/binarystream");
5019
- var import_raknet78 = require("@serenityjs/raknet");
5231
+ var import_binarystream41 = require("@serenityjs/binarystream");
5232
+ var import_raknet79 = require("@serenityjs/raknet");
5020
5233
  var LevelEventPacket = class extends DataPacket {
5021
5234
  event;
5022
5235
  position;
5023
5236
  data;
5024
5237
  };
5025
5238
  __decorateClass([
5026
- (0, import_raknet78.Serialize)(import_binarystream42.ZigZag)
5239
+ (0, import_raknet79.Serialize)(import_binarystream41.ZigZag)
5027
5240
  ], LevelEventPacket.prototype, "event", 2);
5028
5241
  __decorateClass([
5029
- (0, import_raknet78.Serialize)(Vector3f)
5242
+ (0, import_raknet79.Serialize)(Vector3f)
5030
5243
  ], LevelEventPacket.prototype, "position", 2);
5031
5244
  __decorateClass([
5032
- (0, import_raknet78.Serialize)(import_binarystream42.ZigZag)
5245
+ (0, import_raknet79.Serialize)(import_binarystream41.ZigZag)
5033
5246
  ], LevelEventPacket.prototype, "data", 2);
5034
5247
  LevelEventPacket = __decorateClass([
5035
- (0, import_raknet78.Proto)(25 /* LevelEvent */)
5248
+ (0, import_raknet79.Proto)(25 /* LevelEvent */)
5036
5249
  ], LevelEventPacket);
5037
5250
 
5038
5251
  // src/proto/data/level-sound-event.ts
5039
- var import_binarystream43 = require("@serenityjs/binarystream");
5040
- var import_raknet79 = require("@serenityjs/raknet");
5252
+ var import_binarystream42 = require("@serenityjs/binarystream");
5253
+ var import_raknet80 = require("@serenityjs/raknet");
5041
5254
  var LevelSoundEventPacket = class extends DataPacket {
5042
5255
  event;
5043
5256
  position;
@@ -5047,47 +5260,47 @@ var LevelSoundEventPacket = class extends DataPacket {
5047
5260
  isGlobal;
5048
5261
  };
5049
5262
  __decorateClass([
5050
- (0, import_raknet79.Serialize)(import_binarystream43.VarInt)
5263
+ (0, import_raknet80.Serialize)(import_binarystream42.VarInt)
5051
5264
  ], LevelSoundEventPacket.prototype, "event", 2);
5052
5265
  __decorateClass([
5053
- (0, import_raknet79.Serialize)(Vector3f)
5266
+ (0, import_raknet80.Serialize)(Vector3f)
5054
5267
  ], LevelSoundEventPacket.prototype, "position", 2);
5055
5268
  __decorateClass([
5056
- (0, import_raknet79.Serialize)(import_binarystream43.ZigZag)
5269
+ (0, import_raknet80.Serialize)(import_binarystream42.ZigZag)
5057
5270
  ], LevelSoundEventPacket.prototype, "data", 2);
5058
5271
  __decorateClass([
5059
- (0, import_raknet79.Serialize)(import_binarystream43.VarString)
5272
+ (0, import_raknet80.Serialize)(import_binarystream42.VarString)
5060
5273
  ], LevelSoundEventPacket.prototype, "actorIdentifier", 2);
5061
5274
  __decorateClass([
5062
- (0, import_raknet79.Serialize)(import_binarystream43.Bool)
5275
+ (0, import_raknet80.Serialize)(import_binarystream42.Bool)
5063
5276
  ], LevelSoundEventPacket.prototype, "isBabyMob", 2);
5064
5277
  __decorateClass([
5065
- (0, import_raknet79.Serialize)(import_binarystream43.Bool)
5278
+ (0, import_raknet80.Serialize)(import_binarystream42.Bool)
5066
5279
  ], LevelSoundEventPacket.prototype, "isGlobal", 2);
5067
5280
  LevelSoundEventPacket = __decorateClass([
5068
- (0, import_raknet79.Proto)(123 /* LevelSoundEvent */)
5281
+ (0, import_raknet80.Proto)(123 /* LevelSoundEvent */)
5069
5282
  ], LevelSoundEventPacket);
5070
5283
 
5071
5284
  // src/proto/data/login.ts
5072
- var import_binarystream44 = require("@serenityjs/binarystream");
5073
- var import_raknet80 = require("@serenityjs/raknet");
5285
+ var import_binarystream43 = require("@serenityjs/binarystream");
5286
+ var import_raknet81 = require("@serenityjs/raknet");
5074
5287
  var LoginPacket = class extends DataPacket {
5075
5288
  protocol;
5076
5289
  tokens;
5077
5290
  };
5078
5291
  __decorateClass([
5079
- (0, import_raknet80.Serialize)(import_binarystream44.Int32)
5292
+ (0, import_raknet81.Serialize)(import_binarystream43.Int32)
5080
5293
  ], LoginPacket.prototype, "protocol", 2);
5081
5294
  __decorateClass([
5082
- (0, import_raknet80.Serialize)(LoginTokens)
5295
+ (0, import_raknet81.Serialize)(LoginTokens)
5083
5296
  ], LoginPacket.prototype, "tokens", 2);
5084
5297
  LoginPacket = __decorateClass([
5085
- (0, import_raknet80.Proto)(1 /* Login */)
5298
+ (0, import_raknet81.Proto)(1 /* Login */)
5086
5299
  ], LoginPacket);
5087
5300
 
5088
5301
  // src/proto/data/mob-equipment.ts
5089
- var import_binarystream45 = require("@serenityjs/binarystream");
5090
- var import_raknet81 = require("@serenityjs/raknet");
5302
+ var import_binarystream44 = require("@serenityjs/binarystream");
5303
+ var import_raknet82 = require("@serenityjs/raknet");
5091
5304
  var MobEquipmentPacket = class extends DataPacket {
5092
5305
  runtimeEntityId;
5093
5306
  item;
@@ -5096,44 +5309,44 @@ var MobEquipmentPacket = class extends DataPacket {
5096
5309
  containerId;
5097
5310
  };
5098
5311
  __decorateClass([
5099
- (0, import_raknet81.Serialize)(import_binarystream45.VarLong)
5312
+ (0, import_raknet82.Serialize)(import_binarystream44.VarLong)
5100
5313
  ], MobEquipmentPacket.prototype, "runtimeEntityId", 2);
5101
5314
  __decorateClass([
5102
- (0, import_raknet81.Serialize)(NetworkItemStackDescriptor)
5315
+ (0, import_raknet82.Serialize)(NetworkItemStackDescriptor)
5103
5316
  ], MobEquipmentPacket.prototype, "item", 2);
5104
5317
  __decorateClass([
5105
- (0, import_raknet81.Serialize)(import_binarystream45.Uint8)
5318
+ (0, import_raknet82.Serialize)(import_binarystream44.Uint8)
5106
5319
  ], MobEquipmentPacket.prototype, "slot", 2);
5107
5320
  __decorateClass([
5108
- (0, import_raknet81.Serialize)(import_binarystream45.Uint8)
5321
+ (0, import_raknet82.Serialize)(import_binarystream44.Uint8)
5109
5322
  ], MobEquipmentPacket.prototype, "selectedSlot", 2);
5110
5323
  __decorateClass([
5111
- (0, import_raknet81.Serialize)(import_binarystream45.Int8)
5324
+ (0, import_raknet82.Serialize)(import_binarystream44.Int8)
5112
5325
  ], MobEquipmentPacket.prototype, "containerId", 2);
5113
5326
  MobEquipmentPacket = __decorateClass([
5114
- (0, import_raknet81.Proto)(31 /* MobEquipment */)
5327
+ (0, import_raknet82.Proto)(31 /* MobEquipment */)
5115
5328
  ], MobEquipmentPacket);
5116
5329
 
5117
5330
  // src/proto/data/modal-form-request.ts
5118
- var import_binarystream46 = require("@serenityjs/binarystream");
5119
- var import_raknet82 = require("@serenityjs/raknet");
5331
+ var import_binarystream45 = require("@serenityjs/binarystream");
5332
+ var import_raknet83 = require("@serenityjs/raknet");
5120
5333
  var ModalFormRequestPacket = class extends DataPacket {
5121
5334
  id;
5122
5335
  payload;
5123
5336
  };
5124
5337
  __decorateClass([
5125
- (0, import_raknet82.Serialize)(import_binarystream46.VarInt)
5338
+ (0, import_raknet83.Serialize)(import_binarystream45.VarInt)
5126
5339
  ], ModalFormRequestPacket.prototype, "id", 2);
5127
5340
  __decorateClass([
5128
- (0, import_raknet82.Serialize)(import_binarystream46.VarString)
5341
+ (0, import_raknet83.Serialize)(import_binarystream45.VarString)
5129
5342
  ], ModalFormRequestPacket.prototype, "payload", 2);
5130
5343
  ModalFormRequestPacket = __decorateClass([
5131
- (0, import_raknet82.Proto)(100 /* ModalFormRequest */)
5344
+ (0, import_raknet83.Proto)(100 /* ModalFormRequest */)
5132
5345
  ], ModalFormRequestPacket);
5133
5346
 
5134
5347
  // src/proto/data/modal-form-response.ts
5135
- var import_binarystream47 = require("@serenityjs/binarystream");
5136
- var import_raknet83 = require("@serenityjs/raknet");
5348
+ var import_binarystream46 = require("@serenityjs/binarystream");
5349
+ var import_raknet84 = require("@serenityjs/raknet");
5137
5350
  var ModalFormResponsePacket = class extends DataPacket {
5138
5351
  id;
5139
5352
  response;
@@ -5142,27 +5355,27 @@ var ModalFormResponsePacket = class extends DataPacket {
5142
5355
  reason;
5143
5356
  };
5144
5357
  __decorateClass([
5145
- (0, import_raknet83.Serialize)(import_binarystream47.VarInt)
5358
+ (0, import_raknet84.Serialize)(import_binarystream46.VarInt)
5146
5359
  ], ModalFormResponsePacket.prototype, "id", 2);
5147
5360
  __decorateClass([
5148
- (0, import_raknet83.Serialize)(import_binarystream47.Bool)
5361
+ (0, import_raknet84.Serialize)(import_binarystream46.Bool)
5149
5362
  ], ModalFormResponsePacket.prototype, "response", 2);
5150
5363
  __decorateClass([
5151
- (0, import_raknet83.Serialize)(ModalFormData, import_binarystream47.Endianness.Big, "response")
5364
+ (0, import_raknet84.Serialize)(ModalFormData, import_binarystream46.Endianness.Big, "response")
5152
5365
  ], ModalFormResponsePacket.prototype, "data", 2);
5153
5366
  __decorateClass([
5154
- (0, import_raknet83.Serialize)(import_binarystream47.Bool)
5367
+ (0, import_raknet84.Serialize)(import_binarystream46.Bool)
5155
5368
  ], ModalFormResponsePacket.prototype, "canceled", 2);
5156
5369
  __decorateClass([
5157
- (0, import_raknet83.Serialize)(ModalFormCanceled, import_binarystream47.Endianness.Big, "canceled")
5370
+ (0, import_raknet84.Serialize)(ModalFormCanceled, import_binarystream46.Endianness.Big, "canceled")
5158
5371
  ], ModalFormResponsePacket.prototype, "reason", 2);
5159
5372
  ModalFormResponsePacket = __decorateClass([
5160
- (0, import_raknet83.Proto)(101 /* ModalFormResponse */)
5373
+ (0, import_raknet84.Proto)(101 /* ModalFormResponse */)
5161
5374
  ], ModalFormResponsePacket);
5162
5375
 
5163
5376
  // src/proto/data/move-actor-absolute.ts
5164
- var import_binarystream48 = require("@serenityjs/binarystream");
5165
- var import_raknet84 = require("@serenityjs/raknet");
5377
+ var import_binarystream47 = require("@serenityjs/binarystream");
5378
+ var import_raknet85 = require("@serenityjs/raknet");
5166
5379
  var MoveActorAbsolutePacket = class extends DataPacket {
5167
5380
  runtimeId;
5168
5381
  flags;
@@ -5170,24 +5383,24 @@ var MoveActorAbsolutePacket = class extends DataPacket {
5170
5383
  rotation;
5171
5384
  };
5172
5385
  __decorateClass([
5173
- (0, import_raknet84.Serialize)(import_binarystream48.VarLong)
5386
+ (0, import_raknet85.Serialize)(import_binarystream47.VarLong)
5174
5387
  ], MoveActorAbsolutePacket.prototype, "runtimeId", 2);
5175
5388
  __decorateClass([
5176
- (0, import_raknet84.Serialize)(import_binarystream48.Uint8)
5389
+ (0, import_raknet85.Serialize)(import_binarystream47.Uint8)
5177
5390
  ], MoveActorAbsolutePacket.prototype, "flags", 2);
5178
5391
  __decorateClass([
5179
- (0, import_raknet84.Serialize)(Vector3f)
5392
+ (0, import_raknet85.Serialize)(Vector3f)
5180
5393
  ], MoveActorAbsolutePacket.prototype, "position", 2);
5181
5394
  __decorateClass([
5182
- (0, import_raknet84.Serialize)(Rotation)
5395
+ (0, import_raknet85.Serialize)(Rotation)
5183
5396
  ], MoveActorAbsolutePacket.prototype, "rotation", 2);
5184
5397
  MoveActorAbsolutePacket = __decorateClass([
5185
- (0, import_raknet84.Proto)(18 /* MoveActorAbsolute */)
5398
+ (0, import_raknet85.Proto)(18 /* MoveActorAbsolute */)
5186
5399
  ], MoveActorAbsolutePacket);
5187
5400
 
5188
5401
  // src/proto/data/move-player.ts
5189
- var import_binarystream49 = require("@serenityjs/binarystream");
5190
- var import_raknet85 = require("@serenityjs/raknet");
5402
+ var import_binarystream48 = require("@serenityjs/binarystream");
5403
+ var import_raknet86 = require("@serenityjs/raknet");
5191
5404
  var MovePlayerPacket = class extends DataPacket {
5192
5405
  runtimeId;
5193
5406
  position;
@@ -5201,63 +5414,63 @@ var MovePlayerPacket = class extends DataPacket {
5201
5414
  tick;
5202
5415
  };
5203
5416
  __decorateClass([
5204
- (0, import_raknet85.Serialize)(import_binarystream49.VarLong)
5417
+ (0, import_raknet86.Serialize)(import_binarystream48.VarLong)
5205
5418
  ], MovePlayerPacket.prototype, "runtimeId", 2);
5206
5419
  __decorateClass([
5207
- (0, import_raknet85.Serialize)(Vector3f)
5420
+ (0, import_raknet86.Serialize)(Vector3f)
5208
5421
  ], MovePlayerPacket.prototype, "position", 2);
5209
5422
  __decorateClass([
5210
- (0, import_raknet85.Serialize)(import_binarystream49.Float32, import_binarystream49.Endianness.Little)
5423
+ (0, import_raknet86.Serialize)(import_binarystream48.Float32, import_binarystream48.Endianness.Little)
5211
5424
  ], MovePlayerPacket.prototype, "pitch", 2);
5212
5425
  __decorateClass([
5213
- (0, import_raknet85.Serialize)(import_binarystream49.Float32, import_binarystream49.Endianness.Little)
5426
+ (0, import_raknet86.Serialize)(import_binarystream48.Float32, import_binarystream48.Endianness.Little)
5214
5427
  ], MovePlayerPacket.prototype, "yaw", 2);
5215
5428
  __decorateClass([
5216
- (0, import_raknet85.Serialize)(import_binarystream49.Float32, import_binarystream49.Endianness.Little)
5429
+ (0, import_raknet86.Serialize)(import_binarystream48.Float32, import_binarystream48.Endianness.Little)
5217
5430
  ], MovePlayerPacket.prototype, "headYaw", 2);
5218
5431
  __decorateClass([
5219
- (0, import_raknet85.Serialize)(import_binarystream49.Uint8)
5432
+ (0, import_raknet86.Serialize)(import_binarystream48.Uint8)
5220
5433
  ], MovePlayerPacket.prototype, "mode", 2);
5221
5434
  __decorateClass([
5222
- (0, import_raknet85.Serialize)(import_binarystream49.Bool)
5435
+ (0, import_raknet86.Serialize)(import_binarystream48.Bool)
5223
5436
  ], MovePlayerPacket.prototype, "onGround", 2);
5224
5437
  __decorateClass([
5225
- (0, import_raknet85.Serialize)(import_binarystream49.VarLong)
5438
+ (0, import_raknet86.Serialize)(import_binarystream48.VarLong)
5226
5439
  ], MovePlayerPacket.prototype, "riddenRuntimeId", 2);
5227
5440
  __decorateClass([
5228
- (0, import_raknet85.Serialize)(TeleportCause, import_binarystream49.Endianness.Little)
5441
+ (0, import_raknet86.Serialize)(TeleportCause, import_binarystream48.Endianness.Little)
5229
5442
  ], MovePlayerPacket.prototype, "cause", 2);
5230
5443
  __decorateClass([
5231
- (0, import_raknet85.Serialize)(import_binarystream49.VarLong)
5444
+ (0, import_raknet86.Serialize)(import_binarystream48.VarLong)
5232
5445
  ], MovePlayerPacket.prototype, "tick", 2);
5233
5446
  MovePlayerPacket = __decorateClass([
5234
- (0, import_raknet85.Proto)(19 /* MovePlayer */)
5447
+ (0, import_raknet86.Proto)(19 /* MovePlayer */)
5235
5448
  ], MovePlayerPacket);
5236
5449
 
5237
5450
  // src/proto/data/network-chunk-publisher-update.ts
5238
- var import_binarystream50 = require("@serenityjs/binarystream");
5239
- var import_raknet86 = require("@serenityjs/raknet");
5451
+ var import_binarystream49 = require("@serenityjs/binarystream");
5452
+ var import_raknet87 = require("@serenityjs/raknet");
5240
5453
  var NetworkChunkPublisherUpdatePacket = class extends DataPacket {
5241
5454
  coordinate;
5242
5455
  radius;
5243
5456
  savedChunks;
5244
5457
  };
5245
5458
  __decorateClass([
5246
- (0, import_raknet86.Serialize)(BlockCoordinates)
5459
+ (0, import_raknet87.Serialize)(BlockCoordinates)
5247
5460
  ], NetworkChunkPublisherUpdatePacket.prototype, "coordinate", 2);
5248
5461
  __decorateClass([
5249
- (0, import_raknet86.Serialize)(import_binarystream50.VarInt)
5462
+ (0, import_raknet87.Serialize)(import_binarystream49.VarInt)
5250
5463
  ], NetworkChunkPublisherUpdatePacket.prototype, "radius", 2);
5251
5464
  __decorateClass([
5252
- (0, import_raknet86.Serialize)(ChunkCoords)
5465
+ (0, import_raknet87.Serialize)(ChunkCoords)
5253
5466
  ], NetworkChunkPublisherUpdatePacket.prototype, "savedChunks", 2);
5254
5467
  NetworkChunkPublisherUpdatePacket = __decorateClass([
5255
- (0, import_raknet86.Proto)(121 /* NetworkChunkPublisherUpdate */)
5468
+ (0, import_raknet87.Proto)(121 /* NetworkChunkPublisherUpdate */)
5256
5469
  ], NetworkChunkPublisherUpdatePacket);
5257
5470
 
5258
5471
  // src/proto/data/network-settings.ts
5259
- var import_binarystream51 = require("@serenityjs/binarystream");
5260
- var import_raknet87 = require("@serenityjs/raknet");
5472
+ var import_binarystream50 = require("@serenityjs/binarystream");
5473
+ var import_raknet88 = require("@serenityjs/raknet");
5261
5474
  var NetworkSettingsPacket = class extends DataPacket {
5262
5475
  compressionThreshold;
5263
5476
  compressionMethod;
@@ -5266,27 +5479,27 @@ var NetworkSettingsPacket = class extends DataPacket {
5266
5479
  clientScalar;
5267
5480
  };
5268
5481
  __decorateClass([
5269
- (0, import_raknet87.Serialize)(import_binarystream51.Short, import_binarystream51.Endianness.Little)
5482
+ (0, import_raknet88.Serialize)(import_binarystream50.Short, import_binarystream50.Endianness.Little)
5270
5483
  ], NetworkSettingsPacket.prototype, "compressionThreshold", 2);
5271
5484
  __decorateClass([
5272
- (0, import_raknet87.Serialize)(import_binarystream51.Short, import_binarystream51.Endianness.Little)
5485
+ (0, import_raknet88.Serialize)(import_binarystream50.Short, import_binarystream50.Endianness.Little)
5273
5486
  ], NetworkSettingsPacket.prototype, "compressionMethod", 2);
5274
5487
  __decorateClass([
5275
- (0, import_raknet87.Serialize)(import_binarystream51.Bool)
5488
+ (0, import_raknet88.Serialize)(import_binarystream50.Bool)
5276
5489
  ], NetworkSettingsPacket.prototype, "clientThrottle", 2);
5277
5490
  __decorateClass([
5278
- (0, import_raknet87.Serialize)(import_binarystream51.Uint8)
5491
+ (0, import_raknet88.Serialize)(import_binarystream50.Uint8)
5279
5492
  ], NetworkSettingsPacket.prototype, "clientThreshold", 2);
5280
5493
  __decorateClass([
5281
- (0, import_raknet87.Serialize)(import_binarystream51.Float32, import_binarystream51.Endianness.Little)
5494
+ (0, import_raknet88.Serialize)(import_binarystream50.Float32, import_binarystream50.Endianness.Little)
5282
5495
  ], NetworkSettingsPacket.prototype, "clientScalar", 2);
5283
5496
  NetworkSettingsPacket = __decorateClass([
5284
- (0, import_raknet87.Proto)(143 /* NetworkSettings */)
5497
+ (0, import_raknet88.Proto)(143 /* NetworkSettings */)
5285
5498
  ], NetworkSettingsPacket);
5286
5499
 
5287
5500
  // src/proto/data/packet-violation-warning.ts
5288
- var import_binarystream52 = require("@serenityjs/binarystream");
5289
- var import_raknet88 = require("@serenityjs/raknet");
5501
+ var import_binarystream51 = require("@serenityjs/binarystream");
5502
+ var import_raknet89 = require("@serenityjs/raknet");
5290
5503
  var PacketViolationWarningPacket = class extends DataPacket {
5291
5504
  type;
5292
5505
  severity;
@@ -5294,37 +5507,37 @@ var PacketViolationWarningPacket = class extends DataPacket {
5294
5507
  context;
5295
5508
  };
5296
5509
  __decorateClass([
5297
- (0, import_raknet88.Serialize)(import_binarystream52.ZigZag)
5510
+ (0, import_raknet89.Serialize)(import_binarystream51.ZigZag)
5298
5511
  ], PacketViolationWarningPacket.prototype, "type", 2);
5299
5512
  __decorateClass([
5300
- (0, import_raknet88.Serialize)(import_binarystream52.ZigZag)
5513
+ (0, import_raknet89.Serialize)(import_binarystream51.ZigZag)
5301
5514
  ], PacketViolationWarningPacket.prototype, "severity", 2);
5302
5515
  __decorateClass([
5303
- (0, import_raknet88.Serialize)(import_binarystream52.ZigZag)
5516
+ (0, import_raknet89.Serialize)(import_binarystream51.ZigZag)
5304
5517
  ], PacketViolationWarningPacket.prototype, "packet", 2);
5305
5518
  __decorateClass([
5306
- (0, import_raknet88.Serialize)(import_binarystream52.VarString)
5519
+ (0, import_raknet89.Serialize)(import_binarystream51.VarString)
5307
5520
  ], PacketViolationWarningPacket.prototype, "context", 2);
5308
5521
  PacketViolationWarningPacket = __decorateClass([
5309
- (0, import_raknet88.Proto)(156 /* PacketViolationWarning */)
5522
+ (0, import_raknet89.Proto)(156 /* PacketViolationWarning */)
5310
5523
  ], PacketViolationWarningPacket);
5311
5524
 
5312
5525
  // src/proto/data/play-status.ts
5313
- var import_binarystream53 = require("@serenityjs/binarystream");
5314
- var import_raknet89 = require("@serenityjs/raknet");
5526
+ var import_binarystream52 = require("@serenityjs/binarystream");
5527
+ var import_raknet90 = require("@serenityjs/raknet");
5315
5528
  var PlayStatusPacket = class extends DataPacket {
5316
5529
  status;
5317
5530
  };
5318
5531
  __decorateClass([
5319
- (0, import_raknet89.Serialize)(import_binarystream53.Int32)
5532
+ (0, import_raknet90.Serialize)(import_binarystream52.Int32)
5320
5533
  ], PlayStatusPacket.prototype, "status", 2);
5321
5534
  PlayStatusPacket = __decorateClass([
5322
- (0, import_raknet89.Proto)(2 /* PlayStatus */)
5535
+ (0, import_raknet90.Proto)(2 /* PlayStatus */)
5323
5536
  ], PlayStatusPacket);
5324
5537
 
5325
5538
  // src/proto/data/player-action.ts
5326
- var import_binarystream54 = require("@serenityjs/binarystream");
5327
- var import_raknet90 = require("@serenityjs/raknet");
5539
+ var import_binarystream53 = require("@serenityjs/binarystream");
5540
+ var import_raknet91 = require("@serenityjs/raknet");
5328
5541
  var PlayerActionPacket = class extends DataPacket {
5329
5542
  entityRuntimeId;
5330
5543
  action;
@@ -5333,27 +5546,27 @@ var PlayerActionPacket = class extends DataPacket {
5333
5546
  face;
5334
5547
  };
5335
5548
  __decorateClass([
5336
- (0, import_raknet90.Serialize)(import_binarystream54.VarLong)
5549
+ (0, import_raknet91.Serialize)(import_binarystream53.VarLong)
5337
5550
  ], PlayerActionPacket.prototype, "entityRuntimeId", 2);
5338
5551
  __decorateClass([
5339
- (0, import_raknet90.Serialize)(import_binarystream54.ZigZag)
5552
+ (0, import_raknet91.Serialize)(import_binarystream53.ZigZag)
5340
5553
  ], PlayerActionPacket.prototype, "action", 2);
5341
5554
  __decorateClass([
5342
- (0, import_raknet90.Serialize)(BlockCoordinates)
5555
+ (0, import_raknet91.Serialize)(BlockCoordinates)
5343
5556
  ], PlayerActionPacket.prototype, "blockPosition", 2);
5344
5557
  __decorateClass([
5345
- (0, import_raknet90.Serialize)(BlockCoordinates)
5558
+ (0, import_raknet91.Serialize)(BlockCoordinates)
5346
5559
  ], PlayerActionPacket.prototype, "resultPosition", 2);
5347
5560
  __decorateClass([
5348
- (0, import_raknet90.Serialize)(import_binarystream54.ZigZag)
5561
+ (0, import_raknet91.Serialize)(import_binarystream53.ZigZag)
5349
5562
  ], PlayerActionPacket.prototype, "face", 2);
5350
5563
  PlayerActionPacket = __decorateClass([
5351
- (0, import_raknet90.Proto)(36 /* PlayerAction */)
5564
+ (0, import_raknet91.Proto)(36 /* PlayerAction */)
5352
5565
  ], PlayerActionPacket);
5353
5566
 
5354
5567
  // src/proto/data/player-auth-input.ts
5355
- var import_binarystream55 = require("@serenityjs/binarystream");
5356
- var import_raknet91 = require("@serenityjs/raknet");
5568
+ var import_binarystream54 = require("@serenityjs/binarystream");
5569
+ var import_raknet92 = require("@serenityjs/raknet");
5357
5570
  var PlayerAuthInputPacket = class extends DataPacket {
5358
5571
  pitch;
5359
5572
  yaw;
@@ -5364,131 +5577,131 @@ var PlayerAuthInputPacket = class extends DataPacket {
5364
5577
  inputMode;
5365
5578
  };
5366
5579
  __decorateClass([
5367
- (0, import_raknet91.Serialize)(import_binarystream55.Float32, import_binarystream55.Endianness.Little)
5580
+ (0, import_raknet92.Serialize)(import_binarystream54.Float32, import_binarystream54.Endianness.Little)
5368
5581
  ], PlayerAuthInputPacket.prototype, "pitch", 2);
5369
5582
  __decorateClass([
5370
- (0, import_raknet91.Serialize)(import_binarystream55.Float32, import_binarystream55.Endianness.Little)
5583
+ (0, import_raknet92.Serialize)(import_binarystream54.Float32, import_binarystream54.Endianness.Little)
5371
5584
  ], PlayerAuthInputPacket.prototype, "yaw", 2);
5372
5585
  __decorateClass([
5373
- (0, import_raknet91.Serialize)(Vector3f)
5586
+ (0, import_raknet92.Serialize)(Vector3f)
5374
5587
  ], PlayerAuthInputPacket.prototype, "position", 2);
5375
5588
  __decorateClass([
5376
- (0, import_raknet91.Serialize)(Vector2f)
5589
+ (0, import_raknet92.Serialize)(Vector2f)
5377
5590
  ], PlayerAuthInputPacket.prototype, "motion", 2);
5378
5591
  __decorateClass([
5379
- (0, import_raknet91.Serialize)(import_binarystream55.Float32, import_binarystream55.Endianness.Little)
5592
+ (0, import_raknet92.Serialize)(import_binarystream54.Float32, import_binarystream54.Endianness.Little)
5380
5593
  ], PlayerAuthInputPacket.prototype, "headYaw", 2);
5381
5594
  __decorateClass([
5382
- (0, import_raknet91.Serialize)(import_binarystream55.VarLong)
5595
+ (0, import_raknet92.Serialize)(import_binarystream54.VarLong)
5383
5596
  ], PlayerAuthInputPacket.prototype, "inputData", 2);
5384
5597
  __decorateClass([
5385
- (0, import_raknet91.Serialize)(import_binarystream55.VarInt)
5598
+ (0, import_raknet92.Serialize)(import_binarystream54.VarInt)
5386
5599
  ], PlayerAuthInputPacket.prototype, "inputMode", 2);
5387
5600
  PlayerAuthInputPacket = __decorateClass([
5388
- (0, import_raknet91.Proto)(144 /* PlayerAuthInput */)
5601
+ (0, import_raknet92.Proto)(144 /* PlayerAuthInput */)
5389
5602
  ], PlayerAuthInputPacket);
5390
5603
 
5391
5604
  // src/proto/data/player-hotbar.ts
5392
- var import_binarystream56 = require("@serenityjs/binarystream");
5393
- var import_raknet92 = require("@serenityjs/raknet");
5605
+ var import_binarystream55 = require("@serenityjs/binarystream");
5606
+ var import_raknet93 = require("@serenityjs/raknet");
5394
5607
  var PlayerHotbarPacket = class extends DataPacket {
5395
5608
  selectedSlot;
5396
5609
  windowId;
5397
5610
  selectSlot;
5398
5611
  };
5399
5612
  __decorateClass([
5400
- (0, import_raknet92.Serialize)(import_binarystream56.VarInt)
5613
+ (0, import_raknet93.Serialize)(import_binarystream55.VarInt)
5401
5614
  ], PlayerHotbarPacket.prototype, "selectedSlot", 2);
5402
5615
  __decorateClass([
5403
- (0, import_raknet92.Serialize)(import_binarystream56.Int8)
5616
+ (0, import_raknet93.Serialize)(import_binarystream55.Int8)
5404
5617
  ], PlayerHotbarPacket.prototype, "windowId", 2);
5405
5618
  __decorateClass([
5406
- (0, import_raknet92.Serialize)(import_binarystream56.Bool)
5619
+ (0, import_raknet93.Serialize)(import_binarystream55.Bool)
5407
5620
  ], PlayerHotbarPacket.prototype, "selectSlot", 2);
5408
5621
  PlayerHotbarPacket = __decorateClass([
5409
- (0, import_raknet92.Proto)(48 /* PlayerHotbar */)
5622
+ (0, import_raknet93.Proto)(48 /* PlayerHotbar */)
5410
5623
  ], PlayerHotbarPacket);
5411
5624
 
5412
5625
  // src/proto/data/player-list.ts
5413
- var import_binarystream57 = require("@serenityjs/binarystream");
5414
- var import_raknet93 = require("@serenityjs/raknet");
5626
+ var import_binarystream56 = require("@serenityjs/binarystream");
5627
+ var import_raknet94 = require("@serenityjs/raknet");
5415
5628
  var PlayerListPacket = class extends DataPacket {
5416
5629
  action;
5417
5630
  records;
5418
5631
  };
5419
5632
  __decorateClass([
5420
- (0, import_raknet93.Serialize)(import_binarystream57.Uint8)
5633
+ (0, import_raknet94.Serialize)(import_binarystream56.Uint8)
5421
5634
  ], PlayerListPacket.prototype, "action", 2);
5422
5635
  __decorateClass([
5423
- (0, import_raknet93.Serialize)(Records, import_binarystream57.Endianness.Little, "action")
5636
+ (0, import_raknet94.Serialize)(Records, import_binarystream56.Endianness.Little, "action")
5424
5637
  ], PlayerListPacket.prototype, "records", 2);
5425
5638
  PlayerListPacket = __decorateClass([
5426
- (0, import_raknet93.Proto)(63 /* PlayerList */)
5639
+ (0, import_raknet94.Proto)(63 /* PlayerList */)
5427
5640
  ], PlayerListPacket);
5428
5641
 
5429
5642
  // src/proto/data/remove-entity.ts
5430
- var import_binarystream58 = require("@serenityjs/binarystream");
5431
- var import_raknet94 = require("@serenityjs/raknet");
5643
+ var import_binarystream57 = require("@serenityjs/binarystream");
5644
+ var import_raknet95 = require("@serenityjs/raknet");
5432
5645
  var RemoveEntityPacket = class extends DataPacket {
5433
5646
  uniqueEntityId;
5434
5647
  };
5435
5648
  __decorateClass([
5436
- (0, import_raknet94.Serialize)(import_binarystream58.ZigZong)
5649
+ (0, import_raknet95.Serialize)(import_binarystream57.ZigZong)
5437
5650
  ], RemoveEntityPacket.prototype, "uniqueEntityId", 2);
5438
5651
  RemoveEntityPacket = __decorateClass([
5439
- (0, import_raknet94.Proto)(14 /* RemoveEntity */)
5652
+ (0, import_raknet95.Proto)(14 /* RemoveEntity */)
5440
5653
  ], RemoveEntityPacket);
5441
5654
 
5442
5655
  // src/proto/data/request-chunk-radius.ts
5443
- var import_binarystream59 = require("@serenityjs/binarystream");
5444
- var import_raknet95 = require("@serenityjs/raknet");
5656
+ var import_binarystream58 = require("@serenityjs/binarystream");
5657
+ var import_raknet96 = require("@serenityjs/raknet");
5445
5658
  var RequestChunkRadiusPacket = class extends DataPacket {
5446
5659
  radius;
5447
5660
  maxRadius;
5448
5661
  };
5449
5662
  __decorateClass([
5450
- (0, import_raknet95.Serialize)(import_binarystream59.ZigZag)
5663
+ (0, import_raknet96.Serialize)(import_binarystream58.ZigZag)
5451
5664
  ], RequestChunkRadiusPacket.prototype, "radius", 2);
5452
5665
  __decorateClass([
5453
- (0, import_raknet95.Serialize)(import_binarystream59.Uint8)
5666
+ (0, import_raknet96.Serialize)(import_binarystream58.Uint8)
5454
5667
  ], RequestChunkRadiusPacket.prototype, "maxRadius", 2);
5455
5668
  RequestChunkRadiusPacket = __decorateClass([
5456
- (0, import_raknet95.Proto)(69 /* RequestChunkRadius */)
5669
+ (0, import_raknet96.Proto)(69 /* RequestChunkRadius */)
5457
5670
  ], RequestChunkRadiusPacket);
5458
5671
 
5459
5672
  // src/proto/data/request-network-settings.ts
5460
- var import_binarystream60 = require("@serenityjs/binarystream");
5461
- var import_raknet96 = require("@serenityjs/raknet");
5673
+ var import_binarystream59 = require("@serenityjs/binarystream");
5674
+ var import_raknet97 = require("@serenityjs/raknet");
5462
5675
  var RequestNetworkSettingsPacket = class extends DataPacket {
5463
5676
  protocol;
5464
5677
  };
5465
5678
  __decorateClass([
5466
- (0, import_raknet96.Serialize)(import_binarystream60.Int32)
5679
+ (0, import_raknet97.Serialize)(import_binarystream59.Int32)
5467
5680
  ], RequestNetworkSettingsPacket.prototype, "protocol", 2);
5468
5681
  RequestNetworkSettingsPacket = __decorateClass([
5469
- (0, import_raknet96.Proto)(193 /* RequestNetworkSettings */)
5682
+ (0, import_raknet97.Proto)(193 /* RequestNetworkSettings */)
5470
5683
  ], RequestNetworkSettingsPacket);
5471
5684
 
5472
5685
  // src/proto/data/resource-pack-client-response.ts
5473
- var import_binarystream61 = require("@serenityjs/binarystream");
5474
- var import_raknet97 = require("@serenityjs/raknet");
5686
+ var import_binarystream60 = require("@serenityjs/binarystream");
5687
+ var import_raknet98 = require("@serenityjs/raknet");
5475
5688
  var ResourcePackClientResponsePacket = class extends DataPacket {
5476
5689
  response;
5477
5690
  packs;
5478
5691
  };
5479
5692
  __decorateClass([
5480
- (0, import_raknet97.Serialize)(import_binarystream61.Uint8)
5693
+ (0, import_raknet98.Serialize)(import_binarystream60.Uint8)
5481
5694
  ], ResourcePackClientResponsePacket.prototype, "response", 2);
5482
5695
  __decorateClass([
5483
- (0, import_raknet97.Serialize)(ResourcePackIds)
5696
+ (0, import_raknet98.Serialize)(ResourcePackIds)
5484
5697
  ], ResourcePackClientResponsePacket.prototype, "packs", 2);
5485
5698
  ResourcePackClientResponsePacket = __decorateClass([
5486
- (0, import_raknet97.Proto)(8 /* ResourcePackClientResponse */)
5699
+ (0, import_raknet98.Proto)(8 /* ResourcePackClientResponse */)
5487
5700
  ], ResourcePackClientResponsePacket);
5488
5701
 
5489
5702
  // src/proto/data/resource-pack-data-info.ts
5490
- var import_binarystream62 = require("@serenityjs/binarystream");
5491
- var import_raknet98 = require("@serenityjs/raknet");
5703
+ var import_binarystream61 = require("@serenityjs/binarystream");
5704
+ var import_raknet99 = require("@serenityjs/raknet");
5492
5705
  var ResourcePackDataInfoPacket = class extends DataPacket {
5493
5706
  packId;
5494
5707
  maxChunkSize;
@@ -5500,9 +5713,9 @@ var ResourcePackDataInfoPacket = class extends DataPacket {
5500
5713
  serialize() {
5501
5714
  this.writeVarInt(82 /* ResourcePackDataInfo */);
5502
5715
  this.writeVarString(this.packId);
5503
- this.writeUint32(this.maxChunkSize, import_binarystream62.Endianness.Little);
5504
- this.writeUint32(this.chunkCount, import_binarystream62.Endianness.Little);
5505
- this.writeUint64(this.fileSize, import_binarystream62.Endianness.Little);
5716
+ this.writeUint32(this.maxChunkSize, import_binarystream61.Endianness.Little);
5717
+ this.writeUint32(this.chunkCount, import_binarystream61.Endianness.Little);
5718
+ this.writeUint64(this.fileSize, import_binarystream61.Endianness.Little);
5506
5719
  this.writeVarInt(this.fileHash.byteLength);
5507
5720
  this.writeBuffer(this.fileHash);
5508
5721
  this.writeBool(this.isPremium);
@@ -5512,9 +5725,9 @@ var ResourcePackDataInfoPacket = class extends DataPacket {
5512
5725
  deserialize() {
5513
5726
  this.readVarInt();
5514
5727
  this.packId = this.readVarString();
5515
- this.maxChunkSize = this.readUint32(import_binarystream62.Endianness.Little);
5516
- this.chunkCount = this.readUint32(import_binarystream62.Endianness.Little);
5517
- this.fileSize = this.readUint64(import_binarystream62.Endianness.Little);
5728
+ this.maxChunkSize = this.readUint32(import_binarystream61.Endianness.Little);
5729
+ this.chunkCount = this.readUint32(import_binarystream61.Endianness.Little);
5730
+ this.fileSize = this.readUint64(import_binarystream61.Endianness.Little);
5518
5731
  const hashLength = this.readVarInt();
5519
5732
  this.fileHash = this.readBuffer(hashLength);
5520
5733
  this.isPremium = this.readBool();
@@ -5523,12 +5736,12 @@ var ResourcePackDataInfoPacket = class extends DataPacket {
5523
5736
  }
5524
5737
  };
5525
5738
  ResourcePackDataInfoPacket = __decorateClass([
5526
- (0, import_raknet98.Proto)(82 /* ResourcePackDataInfo */)
5739
+ (0, import_raknet99.Proto)(82 /* ResourcePackDataInfo */)
5527
5740
  ], ResourcePackDataInfoPacket);
5528
5741
 
5529
5742
  // src/proto/data/resource-pack-chunk-data.ts
5530
- var import_binarystream63 = require("@serenityjs/binarystream");
5531
- var import_raknet99 = require("@serenityjs/raknet");
5743
+ var import_binarystream62 = require("@serenityjs/binarystream");
5744
+ var import_raknet100 = require("@serenityjs/raknet");
5532
5745
  var ResourcePackChunkDataPacket = class extends DataPacket {
5533
5746
  packId;
5534
5747
  chunkId;
@@ -5537,8 +5750,8 @@ var ResourcePackChunkDataPacket = class extends DataPacket {
5537
5750
  serialize() {
5538
5751
  this.writeVarInt(83 /* ResourcePackChunkData */);
5539
5752
  this.writeVarString(this.packId);
5540
- this.writeUint32(this.chunkId, import_binarystream63.Endianness.Little);
5541
- this.writeUint64(this.byteOffset, import_binarystream63.Endianness.Little);
5753
+ this.writeUint32(this.chunkId, import_binarystream62.Endianness.Little);
5754
+ this.writeUint64(this.byteOffset, import_binarystream62.Endianness.Little);
5542
5755
  this.writeVarInt(this.chunkData.byteLength);
5543
5756
  this.writeBuffer(this.chunkData);
5544
5757
  return this.getBuffer();
@@ -5546,37 +5759,37 @@ var ResourcePackChunkDataPacket = class extends DataPacket {
5546
5759
  deserialize() {
5547
5760
  this.readVarInt();
5548
5761
  this.packId = this.readVarString();
5549
- this.chunkId = this.readUint32(import_binarystream63.Endianness.Little);
5550
- this.byteOffset = this.readUint64(import_binarystream63.Endianness.Little);
5762
+ this.chunkId = this.readUint32(import_binarystream62.Endianness.Little);
5763
+ this.byteOffset = this.readUint64(import_binarystream62.Endianness.Little);
5551
5764
  const length = this.readVarInt();
5552
5765
  this.chunkData = this.readBuffer(length);
5553
5766
  return this;
5554
5767
  }
5555
5768
  };
5556
5769
  ResourcePackChunkDataPacket = __decorateClass([
5557
- (0, import_raknet99.Proto)(83 /* ResourcePackChunkData */)
5770
+ (0, import_raknet100.Proto)(83 /* ResourcePackChunkData */)
5558
5771
  ], ResourcePackChunkDataPacket);
5559
5772
 
5560
5773
  // src/proto/data/resource-pack-chunk-request.ts
5561
- var import_binarystream64 = require("@serenityjs/binarystream");
5562
- var import_raknet100 = require("@serenityjs/raknet");
5774
+ var import_binarystream63 = require("@serenityjs/binarystream");
5775
+ var import_raknet101 = require("@serenityjs/raknet");
5563
5776
  var ResourcePackChunkRequestPacket = class extends DataPacket {
5564
5777
  packId;
5565
5778
  chunkId;
5566
5779
  };
5567
5780
  __decorateClass([
5568
- (0, import_raknet100.Serialize)(import_binarystream64.VarString)
5781
+ (0, import_raknet101.Serialize)(import_binarystream63.VarString)
5569
5782
  ], ResourcePackChunkRequestPacket.prototype, "packId", 2);
5570
5783
  __decorateClass([
5571
- (0, import_raknet100.Serialize)(import_binarystream64.Uint32, import_binarystream64.Endianness.Little)
5784
+ (0, import_raknet101.Serialize)(import_binarystream63.Uint32, import_binarystream63.Endianness.Little)
5572
5785
  ], ResourcePackChunkRequestPacket.prototype, "chunkId", 2);
5573
5786
  ResourcePackChunkRequestPacket = __decorateClass([
5574
- (0, import_raknet100.Proto)(84 /* ResourcePackChunkRequest */)
5787
+ (0, import_raknet101.Proto)(84 /* ResourcePackChunkRequest */)
5575
5788
  ], ResourcePackChunkRequestPacket);
5576
5789
 
5577
5790
  // src/proto/data/resource-pack-stack.ts
5578
- var import_binarystream65 = require("@serenityjs/binarystream");
5579
- var import_raknet101 = require("@serenityjs/raknet");
5791
+ var import_binarystream64 = require("@serenityjs/binarystream");
5792
+ var import_raknet102 = require("@serenityjs/raknet");
5580
5793
  var ResourcePackStackPacket = class extends DataPacket {
5581
5794
  mustAccept;
5582
5795
  behaviorPacks;
@@ -5586,30 +5799,30 @@ var ResourcePackStackPacket = class extends DataPacket {
5586
5799
  experimentsPreviouslyToggled;
5587
5800
  };
5588
5801
  __decorateClass([
5589
- (0, import_raknet101.Serialize)(import_binarystream65.Bool)
5802
+ (0, import_raknet102.Serialize)(import_binarystream64.Bool)
5590
5803
  ], ResourcePackStackPacket.prototype, "mustAccept", 2);
5591
5804
  __decorateClass([
5592
- (0, import_raknet101.Serialize)(ResourceIdVersions)
5805
+ (0, import_raknet102.Serialize)(ResourceIdVersions)
5593
5806
  ], ResourcePackStackPacket.prototype, "behaviorPacks", 2);
5594
5807
  __decorateClass([
5595
- (0, import_raknet101.Serialize)(ResourceIdVersions)
5808
+ (0, import_raknet102.Serialize)(ResourceIdVersions)
5596
5809
  ], ResourcePackStackPacket.prototype, "texturePacks", 2);
5597
5810
  __decorateClass([
5598
- (0, import_raknet101.Serialize)(import_binarystream65.VarString)
5811
+ (0, import_raknet102.Serialize)(import_binarystream64.VarString)
5599
5812
  ], ResourcePackStackPacket.prototype, "gameVersion", 2);
5600
5813
  __decorateClass([
5601
- (0, import_raknet101.Serialize)(Experiments)
5814
+ (0, import_raknet102.Serialize)(Experiments)
5602
5815
  ], ResourcePackStackPacket.prototype, "experiments", 2);
5603
5816
  __decorateClass([
5604
- (0, import_raknet101.Serialize)(import_binarystream65.Bool)
5817
+ (0, import_raknet102.Serialize)(import_binarystream64.Bool)
5605
5818
  ], ResourcePackStackPacket.prototype, "experimentsPreviouslyToggled", 2);
5606
5819
  ResourcePackStackPacket = __decorateClass([
5607
- (0, import_raknet101.Proto)(7 /* ResourcePackStack */)
5820
+ (0, import_raknet102.Proto)(7 /* ResourcePackStack */)
5608
5821
  ], ResourcePackStackPacket);
5609
5822
 
5610
5823
  // src/proto/data/resource-packs-info.ts
5611
- var import_binarystream66 = require("@serenityjs/binarystream");
5612
- var import_raknet102 = require("@serenityjs/raknet");
5824
+ var import_binarystream65 = require("@serenityjs/binarystream");
5825
+ var import_raknet103 = require("@serenityjs/raknet");
5613
5826
  var ResourcePacksInfoPacket = class extends DataPacket {
5614
5827
  mustAccept;
5615
5828
  hasAddons;
@@ -5620,105 +5833,105 @@ var ResourcePacksInfoPacket = class extends DataPacket {
5620
5833
  links;
5621
5834
  };
5622
5835
  __decorateClass([
5623
- (0, import_raknet102.Serialize)(import_binarystream66.Bool)
5836
+ (0, import_raknet103.Serialize)(import_binarystream65.Bool)
5624
5837
  ], ResourcePacksInfoPacket.prototype, "mustAccept", 2);
5625
5838
  __decorateClass([
5626
- (0, import_raknet102.Serialize)(import_binarystream66.Bool)
5839
+ (0, import_raknet103.Serialize)(import_binarystream65.Bool)
5627
5840
  ], ResourcePacksInfoPacket.prototype, "hasAddons", 2);
5628
5841
  __decorateClass([
5629
- (0, import_raknet102.Serialize)(import_binarystream66.Bool)
5842
+ (0, import_raknet103.Serialize)(import_binarystream65.Bool)
5630
5843
  ], ResourcePacksInfoPacket.prototype, "hasScripts", 2);
5631
5844
  __decorateClass([
5632
- (0, import_raknet102.Serialize)(import_binarystream66.Bool)
5845
+ (0, import_raknet103.Serialize)(import_binarystream65.Bool)
5633
5846
  ], ResourcePacksInfoPacket.prototype, "forceServerPacks", 2);
5634
5847
  __decorateClass([
5635
- (0, import_raknet102.Serialize)(BehaviorPackInfo)
5848
+ (0, import_raknet103.Serialize)(BehaviorPackInfo)
5636
5849
  ], ResourcePacksInfoPacket.prototype, "behaviorPacks", 2);
5637
5850
  __decorateClass([
5638
- (0, import_raknet102.Serialize)(TexturePackInfo)
5851
+ (0, import_raknet103.Serialize)(TexturePackInfo)
5639
5852
  ], ResourcePacksInfoPacket.prototype, "texturePacks", 2);
5640
5853
  __decorateClass([
5641
- (0, import_raknet102.Serialize)(PackLinks)
5854
+ (0, import_raknet103.Serialize)(PackLinks)
5642
5855
  ], ResourcePacksInfoPacket.prototype, "links", 2);
5643
5856
  ResourcePacksInfoPacket = __decorateClass([
5644
- (0, import_raknet102.Proto)(6 /* ResourcePacksInfo */)
5857
+ (0, import_raknet103.Proto)(6 /* ResourcePacksInfo */)
5645
5858
  ], ResourcePacksInfoPacket);
5646
5859
 
5647
5860
  // src/proto/data/respawn.ts
5648
- var import_binarystream67 = require("@serenityjs/binarystream");
5649
- var import_raknet103 = require("@serenityjs/raknet");
5861
+ var import_binarystream66 = require("@serenityjs/binarystream");
5862
+ var import_raknet104 = require("@serenityjs/raknet");
5650
5863
  var RespawnPacket = class extends DataPacket {
5651
5864
  position;
5652
5865
  state;
5653
5866
  runtimeEntityId;
5654
5867
  };
5655
5868
  __decorateClass([
5656
- (0, import_raknet103.Serialize)(Vector3f)
5869
+ (0, import_raknet104.Serialize)(Vector3f)
5657
5870
  ], RespawnPacket.prototype, "position", 2);
5658
5871
  __decorateClass([
5659
- (0, import_raknet103.Serialize)(import_binarystream67.Uint8)
5872
+ (0, import_raknet104.Serialize)(import_binarystream66.Uint8)
5660
5873
  ], RespawnPacket.prototype, "state", 2);
5661
5874
  __decorateClass([
5662
- (0, import_raknet103.Serialize)(import_binarystream67.VarLong)
5875
+ (0, import_raknet104.Serialize)(import_binarystream66.VarLong)
5663
5876
  ], RespawnPacket.prototype, "runtimeEntityId", 2);
5664
5877
  RespawnPacket = __decorateClass([
5665
- (0, import_raknet103.Proto)(45 /* Respawn */)
5878
+ (0, import_raknet104.Proto)(45 /* Respawn */)
5666
5879
  ], RespawnPacket);
5667
5880
 
5668
5881
  // src/proto/data/script-message.ts
5669
- var import_binarystream68 = require("@serenityjs/binarystream");
5670
- var import_raknet104 = require("@serenityjs/raknet");
5882
+ var import_binarystream67 = require("@serenityjs/binarystream");
5883
+ var import_raknet105 = require("@serenityjs/raknet");
5671
5884
  var ScriptMessagePacket = class extends DataPacket {
5672
5885
  messageId;
5673
5886
  data;
5674
5887
  };
5675
5888
  __decorateClass([
5676
- (0, import_raknet104.Serialize)(import_binarystream68.VarString)
5889
+ (0, import_raknet105.Serialize)(import_binarystream67.VarString)
5677
5890
  ], ScriptMessagePacket.prototype, "messageId", 2);
5678
5891
  __decorateClass([
5679
- (0, import_raknet104.Serialize)(import_binarystream68.VarString)
5892
+ (0, import_raknet105.Serialize)(import_binarystream67.VarString)
5680
5893
  ], ScriptMessagePacket.prototype, "data", 2);
5681
5894
  ScriptMessagePacket = __decorateClass([
5682
- (0, import_raknet104.Proto)(177 /* ScriptMessage */)
5895
+ (0, import_raknet105.Proto)(177 /* ScriptMessage */)
5683
5896
  ], ScriptMessagePacket);
5684
5897
 
5685
5898
  // src/proto/data/set-actor-motion.ts
5686
- var import_binarystream69 = require("@serenityjs/binarystream");
5687
- var import_raknet105 = require("@serenityjs/raknet");
5899
+ var import_binarystream68 = require("@serenityjs/binarystream");
5900
+ var import_raknet106 = require("@serenityjs/raknet");
5688
5901
  var SetActorMotionPacket = class extends DataPacket {
5689
5902
  runtimeId;
5690
5903
  motion;
5691
5904
  tick;
5692
5905
  };
5693
5906
  __decorateClass([
5694
- (0, import_raknet105.Serialize)(import_binarystream69.VarLong)
5907
+ (0, import_raknet106.Serialize)(import_binarystream68.VarLong)
5695
5908
  ], SetActorMotionPacket.prototype, "runtimeId", 2);
5696
5909
  __decorateClass([
5697
- (0, import_raknet105.Serialize)(Vector3f)
5910
+ (0, import_raknet106.Serialize)(Vector3f)
5698
5911
  ], SetActorMotionPacket.prototype, "motion", 2);
5699
5912
  __decorateClass([
5700
- (0, import_raknet105.Serialize)(import_binarystream69.VarLong)
5913
+ (0, import_raknet106.Serialize)(import_binarystream68.VarLong)
5701
5914
  ], SetActorMotionPacket.prototype, "tick", 2);
5702
5915
  SetActorMotionPacket = __decorateClass([
5703
- (0, import_raknet105.Proto)(40 /* SetActorMotion */)
5916
+ (0, import_raknet106.Proto)(40 /* SetActorMotion */)
5704
5917
  ], SetActorMotionPacket);
5705
5918
 
5706
5919
  // src/proto/data/set-commands-enabled.ts
5707
- var import_binarystream70 = require("@serenityjs/binarystream");
5708
- var import_raknet106 = require("@serenityjs/raknet");
5920
+ var import_binarystream69 = require("@serenityjs/binarystream");
5921
+ var import_raknet107 = require("@serenityjs/raknet");
5709
5922
  var SetCommandsEnabledPacket = class extends DataPacket {
5710
5923
  enabled;
5711
5924
  };
5712
5925
  __decorateClass([
5713
- (0, import_raknet106.Serialize)(import_binarystream70.Bool)
5926
+ (0, import_raknet107.Serialize)(import_binarystream69.Bool)
5714
5927
  ], SetCommandsEnabledPacket.prototype, "enabled", 2);
5715
5928
  SetCommandsEnabledPacket = __decorateClass([
5716
- (0, import_raknet106.Proto)(59 /* SetCommandsEnabled */)
5929
+ (0, import_raknet107.Proto)(59 /* SetCommandsEnabled */)
5717
5930
  ], SetCommandsEnabledPacket);
5718
5931
 
5719
5932
  // src/proto/data/set-entity-data.ts
5720
- var import_binarystream71 = require("@serenityjs/binarystream");
5721
- var import_raknet107 = require("@serenityjs/raknet");
5933
+ var import_binarystream70 = require("@serenityjs/binarystream");
5934
+ var import_raknet108 = require("@serenityjs/raknet");
5722
5935
  var SetEntityDataPacket = class extends DataPacket {
5723
5936
  runtimeEntityId;
5724
5937
  metadata;
@@ -5726,50 +5939,50 @@ var SetEntityDataPacket = class extends DataPacket {
5726
5939
  tick;
5727
5940
  };
5728
5941
  __decorateClass([
5729
- (0, import_raknet107.Serialize)(import_binarystream71.VarLong)
5942
+ (0, import_raknet108.Serialize)(import_binarystream70.VarLong)
5730
5943
  ], SetEntityDataPacket.prototype, "runtimeEntityId", 2);
5731
5944
  __decorateClass([
5732
- (0, import_raknet107.Serialize)(MetadataDictionary)
5945
+ (0, import_raknet108.Serialize)(MetadataDictionary)
5733
5946
  ], SetEntityDataPacket.prototype, "metadata", 2);
5734
5947
  __decorateClass([
5735
- (0, import_raknet107.Serialize)(EntityProperties)
5948
+ (0, import_raknet108.Serialize)(EntityProperties)
5736
5949
  ], SetEntityDataPacket.prototype, "properties", 2);
5737
5950
  __decorateClass([
5738
- (0, import_raknet107.Serialize)(import_binarystream71.VarLong)
5951
+ (0, import_raknet108.Serialize)(import_binarystream70.VarLong)
5739
5952
  ], SetEntityDataPacket.prototype, "tick", 2);
5740
5953
  SetEntityDataPacket = __decorateClass([
5741
- (0, import_raknet107.Proto)(39 /* SetEntityData */)
5954
+ (0, import_raknet108.Proto)(39 /* SetEntityData */)
5742
5955
  ], SetEntityDataPacket);
5743
5956
 
5744
5957
  // src/proto/data/set-local-player-as-initialized.ts
5745
- var import_binarystream72 = require("@serenityjs/binarystream");
5746
- var import_raknet108 = require("@serenityjs/raknet");
5958
+ var import_binarystream71 = require("@serenityjs/binarystream");
5959
+ var import_raknet109 = require("@serenityjs/raknet");
5747
5960
  var SetLocalPlayerAsInitializedPacket = class extends DataPacket {
5748
5961
  runtimeEntityId;
5749
5962
  };
5750
5963
  __decorateClass([
5751
- (0, import_raknet108.Serialize)(import_binarystream72.VarLong)
5964
+ (0, import_raknet109.Serialize)(import_binarystream71.VarLong)
5752
5965
  ], SetLocalPlayerAsInitializedPacket.prototype, "runtimeEntityId", 2);
5753
5966
  SetLocalPlayerAsInitializedPacket = __decorateClass([
5754
- (0, import_raknet108.Proto)(113 /* SetLocalPlayerAsInitialized */)
5967
+ (0, import_raknet109.Proto)(113 /* SetLocalPlayerAsInitialized */)
5755
5968
  ], SetLocalPlayerAsInitializedPacket);
5756
5969
 
5757
5970
  // src/proto/data/set-player-game-type.ts
5758
- var import_binarystream73 = require("@serenityjs/binarystream");
5759
- var import_raknet109 = require("@serenityjs/raknet");
5971
+ var import_binarystream72 = require("@serenityjs/binarystream");
5972
+ var import_raknet110 = require("@serenityjs/raknet");
5760
5973
  var SetPlayerGameTypePacket = class extends DataPacket {
5761
5974
  gamemode;
5762
5975
  };
5763
5976
  __decorateClass([
5764
- (0, import_raknet109.Serialize)(import_binarystream73.ZigZag)
5977
+ (0, import_raknet110.Serialize)(import_binarystream72.ZigZag)
5765
5978
  ], SetPlayerGameTypePacket.prototype, "gamemode", 2);
5766
5979
  SetPlayerGameTypePacket = __decorateClass([
5767
- (0, import_raknet109.Proto)(62 /* SetPlayerGameType */)
5980
+ (0, import_raknet110.Proto)(62 /* SetPlayerGameType */)
5768
5981
  ], SetPlayerGameTypePacket);
5769
5982
 
5770
5983
  // src/proto/data/set-title.ts
5771
- var import_binarystream74 = require("@serenityjs/binarystream");
5772
- var import_raknet110 = require("@serenityjs/raknet");
5984
+ var import_binarystream73 = require("@serenityjs/binarystream");
5985
+ var import_raknet111 = require("@serenityjs/raknet");
5773
5986
  var SetTitlePacket = class extends DataPacket {
5774
5987
  type;
5775
5988
  text;
@@ -5780,33 +5993,33 @@ var SetTitlePacket = class extends DataPacket {
5780
5993
  platformOnlineId;
5781
5994
  };
5782
5995
  __decorateClass([
5783
- (0, import_raknet110.Serialize)(import_binarystream74.ZigZag)
5996
+ (0, import_raknet111.Serialize)(import_binarystream73.ZigZag)
5784
5997
  ], SetTitlePacket.prototype, "type", 2);
5785
5998
  __decorateClass([
5786
- (0, import_raknet110.Serialize)(import_binarystream74.VarString)
5999
+ (0, import_raknet111.Serialize)(import_binarystream73.VarString)
5787
6000
  ], SetTitlePacket.prototype, "text", 2);
5788
6001
  __decorateClass([
5789
- (0, import_raknet110.Serialize)(import_binarystream74.ZigZag)
6002
+ (0, import_raknet111.Serialize)(import_binarystream73.ZigZag)
5790
6003
  ], SetTitlePacket.prototype, "fadeInTime", 2);
5791
6004
  __decorateClass([
5792
- (0, import_raknet110.Serialize)(import_binarystream74.ZigZag)
6005
+ (0, import_raknet111.Serialize)(import_binarystream73.ZigZag)
5793
6006
  ], SetTitlePacket.prototype, "stayTime", 2);
5794
6007
  __decorateClass([
5795
- (0, import_raknet110.Serialize)(import_binarystream74.ZigZag)
6008
+ (0, import_raknet111.Serialize)(import_binarystream73.ZigZag)
5796
6009
  ], SetTitlePacket.prototype, "fadeOutTime", 2);
5797
6010
  __decorateClass([
5798
- (0, import_raknet110.Serialize)(import_binarystream74.VarString)
6011
+ (0, import_raknet111.Serialize)(import_binarystream73.VarString)
5799
6012
  ], SetTitlePacket.prototype, "xuid", 2);
5800
6013
  __decorateClass([
5801
- (0, import_raknet110.Serialize)(import_binarystream74.VarString)
6014
+ (0, import_raknet111.Serialize)(import_binarystream73.VarString)
5802
6015
  ], SetTitlePacket.prototype, "platformOnlineId", 2);
5803
6016
  SetTitlePacket = __decorateClass([
5804
- (0, import_raknet110.Proto)(88 /* SetTitle */)
6017
+ (0, import_raknet111.Proto)(88 /* SetTitle */)
5805
6018
  ], SetTitlePacket);
5806
6019
 
5807
6020
  // src/proto/data/start-game.ts
5808
- var import_binarystream75 = require("@serenityjs/binarystream");
5809
- var import_raknet111 = require("@serenityjs/raknet");
6021
+ var import_binarystream74 = require("@serenityjs/binarystream");
6022
+ var import_raknet112 = require("@serenityjs/raknet");
5810
6023
  var StartGamePacket = class extends DataPacket {
5811
6024
  entityId;
5812
6025
  runtimeEntityId;
@@ -5889,249 +6102,249 @@ var StartGamePacket = class extends DataPacket {
5889
6102
  serverControlledSounds;
5890
6103
  };
5891
6104
  __decorateClass([
5892
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZong)
6105
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZong)
5893
6106
  ], StartGamePacket.prototype, "entityId", 2);
5894
6107
  __decorateClass([
5895
- (0, import_raknet111.Serialize)(import_binarystream75.VarLong)
6108
+ (0, import_raknet112.Serialize)(import_binarystream74.VarLong)
5896
6109
  ], StartGamePacket.prototype, "runtimeEntityId", 2);
5897
6110
  __decorateClass([
5898
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6111
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5899
6112
  ], StartGamePacket.prototype, "playerGamemode", 2);
5900
6113
  __decorateClass([
5901
- (0, import_raknet111.Serialize)(Vector3f)
6114
+ (0, import_raknet112.Serialize)(Vector3f)
5902
6115
  ], StartGamePacket.prototype, "playerPosition", 2);
5903
6116
  __decorateClass([
5904
- (0, import_raknet111.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
6117
+ (0, import_raknet112.Serialize)(import_binarystream74.Float32, import_binarystream74.Endianness.Little)
5905
6118
  ], StartGamePacket.prototype, "pitch", 2);
5906
6119
  __decorateClass([
5907
- (0, import_raknet111.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
6120
+ (0, import_raknet112.Serialize)(import_binarystream74.Float32, import_binarystream74.Endianness.Little)
5908
6121
  ], StartGamePacket.prototype, "yaw", 2);
5909
6122
  __decorateClass([
5910
- (0, import_raknet111.Serialize)(import_binarystream75.Uint64, import_binarystream75.Endianness.Little)
6123
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint64, import_binarystream74.Endianness.Little)
5911
6124
  ], StartGamePacket.prototype, "seed", 2);
5912
6125
  __decorateClass([
5913
- (0, import_raknet111.Serialize)(import_binarystream75.Int16, import_binarystream75.Endianness.Little)
6126
+ (0, import_raknet112.Serialize)(import_binarystream74.Int16, import_binarystream74.Endianness.Little)
5914
6127
  ], StartGamePacket.prototype, "biomeType", 2);
5915
6128
  __decorateClass([
5916
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6129
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
5917
6130
  ], StartGamePacket.prototype, "biomeName", 2);
5918
6131
  __decorateClass([
5919
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6132
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5920
6133
  ], StartGamePacket.prototype, "dimension", 2);
5921
6134
  __decorateClass([
5922
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6135
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5923
6136
  ], StartGamePacket.prototype, "generator", 2);
5924
6137
  __decorateClass([
5925
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6138
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5926
6139
  ], StartGamePacket.prototype, "worldGamemode", 2);
5927
6140
  __decorateClass([
5928
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6141
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5929
6142
  ], StartGamePacket.prototype, "difficulty", 2);
5930
6143
  __decorateClass([
5931
- (0, import_raknet111.Serialize)(BlockCoordinates)
6144
+ (0, import_raknet112.Serialize)(BlockCoordinates)
5932
6145
  ], StartGamePacket.prototype, "spawnPosition", 2);
5933
6146
  __decorateClass([
5934
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6147
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5935
6148
  ], StartGamePacket.prototype, "achievementsDisabled", 2);
5936
6149
  __decorateClass([
5937
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6150
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5938
6151
  ], StartGamePacket.prototype, "editorWorldType", 2);
5939
6152
  __decorateClass([
5940
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6153
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5941
6154
  ], StartGamePacket.prototype, "createdInEdior", 2);
5942
6155
  __decorateClass([
5943
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6156
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5944
6157
  ], StartGamePacket.prototype, "exportedFromEdior", 2);
5945
6158
  __decorateClass([
5946
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6159
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5947
6160
  ], StartGamePacket.prototype, "dayCycleStopTime", 2);
5948
6161
  __decorateClass([
5949
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6162
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
5950
6163
  ], StartGamePacket.prototype, "eduOffer", 2);
5951
6164
  __decorateClass([
5952
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6165
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5953
6166
  ], StartGamePacket.prototype, "eduFeatures", 2);
5954
6167
  __decorateClass([
5955
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6168
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
5956
6169
  ], StartGamePacket.prototype, "eduProductUuid", 2);
5957
6170
  __decorateClass([
5958
- (0, import_raknet111.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
6171
+ (0, import_raknet112.Serialize)(import_binarystream74.Float32, import_binarystream74.Endianness.Little)
5959
6172
  ], StartGamePacket.prototype, "rainLevel", 2);
5960
6173
  __decorateClass([
5961
- (0, import_raknet111.Serialize)(import_binarystream75.Float32, import_binarystream75.Endianness.Little)
6174
+ (0, import_raknet112.Serialize)(import_binarystream74.Float32, import_binarystream74.Endianness.Little)
5962
6175
  ], StartGamePacket.prototype, "lightningLevel", 2);
5963
6176
  __decorateClass([
5964
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6177
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5965
6178
  ], StartGamePacket.prototype, "confirmedPlatformLockedContent", 2);
5966
6179
  __decorateClass([
5967
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6180
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5968
6181
  ], StartGamePacket.prototype, "multiplayerGame", 2);
5969
6182
  __decorateClass([
5970
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6183
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5971
6184
  ], StartGamePacket.prototype, "broadcastToLan", 2);
5972
6185
  __decorateClass([
5973
- (0, import_raknet111.Serialize)(import_binarystream75.VarInt)
6186
+ (0, import_raknet112.Serialize)(import_binarystream74.VarInt)
5974
6187
  ], StartGamePacket.prototype, "xblBroadcastMode", 2);
5975
6188
  __decorateClass([
5976
- (0, import_raknet111.Serialize)(import_binarystream75.VarInt)
6189
+ (0, import_raknet112.Serialize)(import_binarystream74.VarInt)
5977
6190
  ], StartGamePacket.prototype, "platformBroadcastMode", 2);
5978
6191
  __decorateClass([
5979
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6192
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5980
6193
  ], StartGamePacket.prototype, "commandsEnabled", 2);
5981
6194
  __decorateClass([
5982
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6195
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5983
6196
  ], StartGamePacket.prototype, "texturePacksRequired", 2);
5984
6197
  __decorateClass([
5985
- (0, import_raknet111.Serialize)(GameRules)
6198
+ (0, import_raknet112.Serialize)(GameRules)
5986
6199
  ], StartGamePacket.prototype, "gamerules", 2);
5987
6200
  __decorateClass([
5988
- (0, import_raknet111.Serialize)(Experiments)
6201
+ (0, import_raknet112.Serialize)(Experiments)
5989
6202
  ], StartGamePacket.prototype, "experiments", 2);
5990
6203
  __decorateClass([
5991
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6204
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5992
6205
  ], StartGamePacket.prototype, "experimentsPreviouslyToggled", 2);
5993
6206
  __decorateClass([
5994
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6207
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5995
6208
  ], StartGamePacket.prototype, "bonusChest", 2);
5996
6209
  __decorateClass([
5997
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6210
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
5998
6211
  ], StartGamePacket.prototype, "mapEnabled", 2);
5999
6212
  __decorateClass([
6000
- (0, import_raknet111.Serialize)(import_binarystream75.Uint8)
6213
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint8)
6001
6214
  ], StartGamePacket.prototype, "permissionLevel", 2);
6002
6215
  __decorateClass([
6003
- (0, import_raknet111.Serialize)(import_binarystream75.Int32, import_binarystream75.Endianness.Little)
6216
+ (0, import_raknet112.Serialize)(import_binarystream74.Int32, import_binarystream74.Endianness.Little)
6004
6217
  ], StartGamePacket.prototype, "serverChunkTickRange", 2);
6005
6218
  __decorateClass([
6006
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6219
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6007
6220
  ], StartGamePacket.prototype, "hasLockedBehaviorPack", 2);
6008
6221
  __decorateClass([
6009
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6222
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6010
6223
  ], StartGamePacket.prototype, "hasLockedResourcePack", 2);
6011
6224
  __decorateClass([
6012
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6225
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6013
6226
  ], StartGamePacket.prototype, "isFromLockedWorldTemplate", 2);
6014
6227
  __decorateClass([
6015
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6228
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6016
6229
  ], StartGamePacket.prototype, "useMsaGamertagsOnly", 2);
6017
6230
  __decorateClass([
6018
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6231
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6019
6232
  ], StartGamePacket.prototype, "isFromWorldTemplate", 2);
6020
6233
  __decorateClass([
6021
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6234
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6022
6235
  ], StartGamePacket.prototype, "isWorldTemplateOptionLocked", 2);
6023
6236
  __decorateClass([
6024
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6237
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6025
6238
  ], StartGamePacket.prototype, "onlySpawnV1Villagers", 2);
6026
6239
  __decorateClass([
6027
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6240
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6028
6241
  ], StartGamePacket.prototype, "personaDisabled", 2);
6029
6242
  __decorateClass([
6030
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6243
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6031
6244
  ], StartGamePacket.prototype, "customSkinsDisabled", 2);
6032
6245
  __decorateClass([
6033
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6246
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6034
6247
  ], StartGamePacket.prototype, "emoteChatMuted", 2);
6035
6248
  __decorateClass([
6036
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6249
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6037
6250
  ], StartGamePacket.prototype, "gameVersion", 2);
6038
6251
  __decorateClass([
6039
- (0, import_raknet111.Serialize)(import_binarystream75.Int32, import_binarystream75.Endianness.Little)
6252
+ (0, import_raknet112.Serialize)(import_binarystream74.Int32, import_binarystream74.Endianness.Little)
6040
6253
  ], StartGamePacket.prototype, "limitedWorldWidth", 2);
6041
6254
  __decorateClass([
6042
- (0, import_raknet111.Serialize)(import_binarystream75.Int32, import_binarystream75.Endianness.Little)
6255
+ (0, import_raknet112.Serialize)(import_binarystream74.Int32, import_binarystream74.Endianness.Little)
6043
6256
  ], StartGamePacket.prototype, "limitedWorldLength", 2);
6044
6257
  __decorateClass([
6045
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6258
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6046
6259
  ], StartGamePacket.prototype, "isNewNether", 2);
6047
6260
  __decorateClass([
6048
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6261
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6049
6262
  ], StartGamePacket.prototype, "eduResourceUriButtonName", 2);
6050
6263
  __decorateClass([
6051
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6264
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6052
6265
  ], StartGamePacket.prototype, "eduResourceUriLink", 2);
6053
6266
  __decorateClass([
6054
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6267
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6055
6268
  ], StartGamePacket.prototype, "experimentalGameplayOverride", 2);
6056
6269
  __decorateClass([
6057
- (0, import_raknet111.Serialize)(import_binarystream75.Uint8)
6270
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint8)
6058
6271
  ], StartGamePacket.prototype, "chatRestrictionLevel", 2);
6059
6272
  __decorateClass([
6060
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6273
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6061
6274
  ], StartGamePacket.prototype, "disablePlayerInteractions", 2);
6062
6275
  __decorateClass([
6063
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6276
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6064
6277
  ], StartGamePacket.prototype, "levelId", 2);
6065
6278
  __decorateClass([
6066
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6279
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6067
6280
  ], StartGamePacket.prototype, "worldName", 2);
6068
6281
  __decorateClass([
6069
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6282
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6070
6283
  ], StartGamePacket.prototype, "premiumWorldTemplateId", 2);
6071
6284
  __decorateClass([
6072
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6285
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6073
6286
  ], StartGamePacket.prototype, "isTrial", 2);
6074
6287
  __decorateClass([
6075
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6288
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
6076
6289
  ], StartGamePacket.prototype, "movementAuthority", 2);
6077
6290
  __decorateClass([
6078
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6291
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
6079
6292
  ], StartGamePacket.prototype, "rewindHistorySize", 2);
6080
6293
  __decorateClass([
6081
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6294
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6082
6295
  ], StartGamePacket.prototype, "serverAuthoritativeBlockBreaking", 2);
6083
6296
  __decorateClass([
6084
- (0, import_raknet111.Serialize)(import_binarystream75.Int64, import_binarystream75.Endianness.Little)
6297
+ (0, import_raknet112.Serialize)(import_binarystream74.Int64, import_binarystream74.Endianness.Little)
6085
6298
  ], StartGamePacket.prototype, "currentTick", 2);
6086
6299
  __decorateClass([
6087
- (0, import_raknet111.Serialize)(import_binarystream75.ZigZag)
6300
+ (0, import_raknet112.Serialize)(import_binarystream74.ZigZag)
6088
6301
  ], StartGamePacket.prototype, "enchantmentSeed", 2);
6089
6302
  __decorateClass([
6090
- (0, import_raknet111.Serialize)(BlockProperties)
6303
+ (0, import_raknet112.Serialize)(BlockProperties)
6091
6304
  ], StartGamePacket.prototype, "blockProperties", 2);
6092
6305
  __decorateClass([
6093
- (0, import_raknet111.Serialize)(ItemData)
6306
+ (0, import_raknet112.Serialize)(ItemData)
6094
6307
  ], StartGamePacket.prototype, "items", 2);
6095
6308
  __decorateClass([
6096
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6309
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6097
6310
  ], StartGamePacket.prototype, "multiplayerCorrelationId", 2);
6098
6311
  __decorateClass([
6099
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6312
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6100
6313
  ], StartGamePacket.prototype, "serverAuthoritativeInventory", 2);
6101
6314
  __decorateClass([
6102
- (0, import_raknet111.Serialize)(import_binarystream75.VarString)
6315
+ (0, import_raknet112.Serialize)(import_binarystream74.VarString)
6103
6316
  ], StartGamePacket.prototype, "engine", 2);
6104
6317
  __decorateClass([
6105
- (0, import_raknet111.Serialize)(import_binarystream75.Uint8)
6318
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint8)
6106
6319
  ], StartGamePacket.prototype, "propertyData1", 2);
6107
6320
  __decorateClass([
6108
- (0, import_raknet111.Serialize)(import_binarystream75.Uint8)
6321
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint8)
6109
6322
  ], StartGamePacket.prototype, "propertyData2", 2);
6110
6323
  __decorateClass([
6111
- (0, import_raknet111.Serialize)(import_binarystream75.Uint8)
6324
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint8)
6112
6325
  ], StartGamePacket.prototype, "propertyData3", 2);
6113
6326
  __decorateClass([
6114
- (0, import_raknet111.Serialize)(import_binarystream75.Uint64, import_binarystream75.Endianness.Little)
6327
+ (0, import_raknet112.Serialize)(import_binarystream74.Uint64, import_binarystream74.Endianness.Little)
6115
6328
  ], StartGamePacket.prototype, "blockPaletteChecksum", 2);
6116
6329
  __decorateClass([
6117
- (0, import_raknet111.Serialize)(import_binarystream75.Uuid)
6330
+ (0, import_raknet112.Serialize)(import_binarystream74.Uuid)
6118
6331
  ], StartGamePacket.prototype, "worldTemplateId", 2);
6119
6332
  __decorateClass([
6120
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6333
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6121
6334
  ], StartGamePacket.prototype, "clientSideGeneration", 2);
6122
6335
  __decorateClass([
6123
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6336
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6124
6337
  ], StartGamePacket.prototype, "blockNetworkIdsAreHashes", 2);
6125
6338
  __decorateClass([
6126
- (0, import_raknet111.Serialize)(import_binarystream75.Bool)
6339
+ (0, import_raknet112.Serialize)(import_binarystream74.Bool)
6127
6340
  ], StartGamePacket.prototype, "serverControlledSounds", 2);
6128
6341
  StartGamePacket = __decorateClass([
6129
- (0, import_raknet111.Proto)(11 /* StartGame */)
6342
+ (0, import_raknet112.Proto)(11 /* StartGame */)
6130
6343
  ], StartGamePacket);
6131
6344
 
6132
6345
  // src/proto/data/text.ts
6133
- var import_binarystream76 = require("@serenityjs/binarystream");
6134
- var import_raknet112 = require("@serenityjs/raknet");
6346
+ var import_binarystream75 = require("@serenityjs/binarystream");
6347
+ var import_raknet113 = require("@serenityjs/raknet");
6135
6348
  var TextPacket = class extends DataPacket {
6136
6349
  type;
6137
6350
  needsTranslation;
@@ -6142,50 +6355,50 @@ var TextPacket = class extends DataPacket {
6142
6355
  platformChatId;
6143
6356
  };
6144
6357
  __decorateClass([
6145
- (0, import_raknet112.Serialize)(import_binarystream76.Uint8)
6358
+ (0, import_raknet113.Serialize)(import_binarystream75.Uint8)
6146
6359
  ], TextPacket.prototype, "type", 2);
6147
6360
  __decorateClass([
6148
- (0, import_raknet112.Serialize)(import_binarystream76.Bool)
6361
+ (0, import_raknet113.Serialize)(import_binarystream75.Bool)
6149
6362
  ], TextPacket.prototype, "needsTranslation", 2);
6150
6363
  __decorateClass([
6151
- (0, import_raknet112.Serialize)(TextSource, import_binarystream76.Endianness.Little, "type")
6364
+ (0, import_raknet113.Serialize)(TextSource, import_binarystream75.Endianness.Little, "type")
6152
6365
  ], TextPacket.prototype, "source", 2);
6153
6366
  __decorateClass([
6154
- (0, import_raknet112.Serialize)(import_binarystream76.VarString)
6367
+ (0, import_raknet113.Serialize)(import_binarystream75.VarString)
6155
6368
  ], TextPacket.prototype, "message", 2);
6156
6369
  __decorateClass([
6157
- (0, import_raknet112.Serialize)(TextParameters, import_binarystream76.Endianness.Little, "type")
6370
+ (0, import_raknet113.Serialize)(TextParameters, import_binarystream75.Endianness.Little, "type")
6158
6371
  ], TextPacket.prototype, "parameters", 2);
6159
6372
  __decorateClass([
6160
- (0, import_raknet112.Serialize)(import_binarystream76.VarString)
6373
+ (0, import_raknet113.Serialize)(import_binarystream75.VarString)
6161
6374
  ], TextPacket.prototype, "xuid", 2);
6162
6375
  __decorateClass([
6163
- (0, import_raknet112.Serialize)(import_binarystream76.VarString)
6376
+ (0, import_raknet113.Serialize)(import_binarystream75.VarString)
6164
6377
  ], TextPacket.prototype, "platformChatId", 2);
6165
6378
  TextPacket = __decorateClass([
6166
- (0, import_raknet112.Proto)(9 /* Text */)
6379
+ (0, import_raknet113.Proto)(9 /* Text */)
6167
6380
  ], TextPacket);
6168
6381
 
6169
6382
  // src/proto/data/toast-request.ts
6170
- var import_binarystream77 = require("@serenityjs/binarystream");
6171
- var import_raknet113 = require("@serenityjs/raknet");
6383
+ var import_binarystream76 = require("@serenityjs/binarystream");
6384
+ var import_raknet114 = require("@serenityjs/raknet");
6172
6385
  var ToastRequestPacket = class extends DataPacket {
6173
6386
  title;
6174
6387
  message;
6175
6388
  };
6176
6389
  __decorateClass([
6177
- (0, import_raknet113.Serialize)(import_binarystream77.VarString)
6390
+ (0, import_raknet114.Serialize)(import_binarystream76.VarString)
6178
6391
  ], ToastRequestPacket.prototype, "title", 2);
6179
6392
  __decorateClass([
6180
- (0, import_raknet113.Serialize)(import_binarystream77.VarString)
6393
+ (0, import_raknet114.Serialize)(import_binarystream76.VarString)
6181
6394
  ], ToastRequestPacket.prototype, "message", 2);
6182
6395
  ToastRequestPacket = __decorateClass([
6183
- (0, import_raknet113.Proto)(186 /* ToastRequest */)
6396
+ (0, import_raknet114.Proto)(186 /* ToastRequest */)
6184
6397
  ], ToastRequestPacket);
6185
6398
 
6186
6399
  // src/proto/data/update-abilities.ts
6187
- var import_binarystream78 = require("@serenityjs/binarystream");
6188
- var import_raknet114 = require("@serenityjs/raknet");
6400
+ var import_binarystream77 = require("@serenityjs/binarystream");
6401
+ var import_raknet115 = require("@serenityjs/raknet");
6189
6402
  var UpdateAbilitiesPacket = class extends DataPacket {
6190
6403
  entityUniqueId;
6191
6404
  permissionLevel;
@@ -6193,24 +6406,24 @@ var UpdateAbilitiesPacket = class extends DataPacket {
6193
6406
  abilities;
6194
6407
  };
6195
6408
  __decorateClass([
6196
- (0, import_raknet114.Serialize)(import_binarystream78.Int64, import_binarystream78.Endianness.Little)
6409
+ (0, import_raknet115.Serialize)(import_binarystream77.Int64, import_binarystream77.Endianness.Little)
6197
6410
  ], UpdateAbilitiesPacket.prototype, "entityUniqueId", 2);
6198
6411
  __decorateClass([
6199
- (0, import_raknet114.Serialize)(import_binarystream78.Uint8)
6412
+ (0, import_raknet115.Serialize)(import_binarystream77.Uint8)
6200
6413
  ], UpdateAbilitiesPacket.prototype, "permissionLevel", 2);
6201
6414
  __decorateClass([
6202
- (0, import_raknet114.Serialize)(import_binarystream78.Uint8)
6415
+ (0, import_raknet115.Serialize)(import_binarystream77.Uint8)
6203
6416
  ], UpdateAbilitiesPacket.prototype, "commandPersmissionLevel", 2);
6204
6417
  __decorateClass([
6205
- (0, import_raknet114.Serialize)(AbilityLayers)
6418
+ (0, import_raknet115.Serialize)(AbilityLayers)
6206
6419
  ], UpdateAbilitiesPacket.prototype, "abilities", 2);
6207
6420
  UpdateAbilitiesPacket = __decorateClass([
6208
- (0, import_raknet114.Proto)(187 /* UpdateAbilities */)
6421
+ (0, import_raknet115.Proto)(187 /* UpdateAbilities */)
6209
6422
  ], UpdateAbilitiesPacket);
6210
6423
 
6211
6424
  // src/proto/data/update-adventure-settings.ts
6212
- var import_binarystream79 = require("@serenityjs/binarystream");
6213
- var import_raknet115 = require("@serenityjs/raknet");
6425
+ var import_binarystream78 = require("@serenityjs/binarystream");
6426
+ var import_raknet116 = require("@serenityjs/raknet");
6214
6427
  var UpdateAdventureSettingsPacket = class extends DataPacket {
6215
6428
  noPvm;
6216
6429
  noPvp;
@@ -6219,68 +6432,68 @@ var UpdateAdventureSettingsPacket = class extends DataPacket {
6219
6432
  autoJump;
6220
6433
  };
6221
6434
  __decorateClass([
6222
- (0, import_raknet115.Serialize)(import_binarystream79.Bool)
6435
+ (0, import_raknet116.Serialize)(import_binarystream78.Bool)
6223
6436
  ], UpdateAdventureSettingsPacket.prototype, "noPvm", 2);
6224
6437
  __decorateClass([
6225
- (0, import_raknet115.Serialize)(import_binarystream79.Bool)
6438
+ (0, import_raknet116.Serialize)(import_binarystream78.Bool)
6226
6439
  ], UpdateAdventureSettingsPacket.prototype, "noPvp", 2);
6227
6440
  __decorateClass([
6228
- (0, import_raknet115.Serialize)(import_binarystream79.Bool)
6441
+ (0, import_raknet116.Serialize)(import_binarystream78.Bool)
6229
6442
  ], UpdateAdventureSettingsPacket.prototype, "immutableWorld", 2);
6230
6443
  __decorateClass([
6231
- (0, import_raknet115.Serialize)(import_binarystream79.Bool)
6444
+ (0, import_raknet116.Serialize)(import_binarystream78.Bool)
6232
6445
  ], UpdateAdventureSettingsPacket.prototype, "showNameTags", 2);
6233
6446
  __decorateClass([
6234
- (0, import_raknet115.Serialize)(import_binarystream79.Bool)
6447
+ (0, import_raknet116.Serialize)(import_binarystream78.Bool)
6235
6448
  ], UpdateAdventureSettingsPacket.prototype, "autoJump", 2);
6236
6449
  UpdateAdventureSettingsPacket = __decorateClass([
6237
- (0, import_raknet115.Proto)(188 /* UpdateAdventureSettings */)
6450
+ (0, import_raknet116.Proto)(188 /* UpdateAdventureSettings */)
6238
6451
  ], UpdateAdventureSettingsPacket);
6239
6452
 
6240
6453
  // src/proto/data/update-attributes.ts
6241
- var import_binarystream80 = require("@serenityjs/binarystream");
6242
- var import_raknet116 = require("@serenityjs/raknet");
6454
+ var import_binarystream79 = require("@serenityjs/binarystream");
6455
+ var import_raknet117 = require("@serenityjs/raknet");
6243
6456
  var UpdateAttributesPacket = class extends DataPacket {
6244
6457
  runtimeEntityId;
6245
6458
  attributes;
6246
6459
  tick;
6247
6460
  };
6248
6461
  __decorateClass([
6249
- (0, import_raknet116.Serialize)(import_binarystream80.VarLong)
6462
+ (0, import_raknet117.Serialize)(import_binarystream79.VarLong)
6250
6463
  ], UpdateAttributesPacket.prototype, "runtimeEntityId", 2);
6251
6464
  __decorateClass([
6252
- (0, import_raknet116.Serialize)(PlayerAttributes)
6465
+ (0, import_raknet117.Serialize)(PlayerAttributes)
6253
6466
  ], UpdateAttributesPacket.prototype, "attributes", 2);
6254
6467
  __decorateClass([
6255
- (0, import_raknet116.Serialize)(import_binarystream80.VarLong)
6468
+ (0, import_raknet117.Serialize)(import_binarystream79.VarLong)
6256
6469
  ], UpdateAttributesPacket.prototype, "tick", 2);
6257
6470
  UpdateAttributesPacket = __decorateClass([
6258
- (0, import_raknet116.Proto)(29 /* UpdateAttributes */)
6471
+ (0, import_raknet117.Proto)(29 /* UpdateAttributes */)
6259
6472
  ], UpdateAttributesPacket);
6260
6473
 
6261
6474
  // src/proto/data/update-block.ts
6262
- var import_binarystream81 = require("@serenityjs/binarystream");
6263
- var import_raknet117 = require("@serenityjs/raknet");
6475
+ var import_binarystream80 = require("@serenityjs/binarystream");
6476
+ var import_raknet118 = require("@serenityjs/raknet");
6264
6477
  var UpdateBlockPacket = class extends DataPacket {
6265
6478
  position;
6266
- blockRuntimeId;
6479
+ networkBlockId;
6267
6480
  flags;
6268
6481
  layer;
6269
6482
  };
6270
6483
  __decorateClass([
6271
- (0, import_raknet117.Serialize)(BlockCoordinates)
6484
+ (0, import_raknet118.Serialize)(BlockCoordinates)
6272
6485
  ], UpdateBlockPacket.prototype, "position", 2);
6273
6486
  __decorateClass([
6274
- (0, import_raknet117.Serialize)(import_binarystream81.VarInt)
6275
- ], UpdateBlockPacket.prototype, "blockRuntimeId", 2);
6487
+ (0, import_raknet118.Serialize)(import_binarystream80.VarInt)
6488
+ ], UpdateBlockPacket.prototype, "networkBlockId", 2);
6276
6489
  __decorateClass([
6277
- (0, import_raknet117.Serialize)(import_binarystream81.VarInt)
6490
+ (0, import_raknet118.Serialize)(import_binarystream80.VarInt)
6278
6491
  ], UpdateBlockPacket.prototype, "flags", 2);
6279
6492
  __decorateClass([
6280
- (0, import_raknet117.Serialize)(import_binarystream81.VarInt)
6493
+ (0, import_raknet118.Serialize)(import_binarystream80.VarInt)
6281
6494
  ], UpdateBlockPacket.prototype, "layer", 2);
6282
6495
  UpdateBlockPacket = __decorateClass([
6283
- (0, import_raknet117.Proto)(21 /* UpdateBlock */)
6496
+ (0, import_raknet118.Proto)(21 /* UpdateBlock */)
6284
6497
  ], UpdateBlockPacket);
6285
6498
 
6286
6499
  // src/proto/data/packets.ts
@@ -6426,10 +6639,10 @@ function VarintArray(type) {
6426
6639
  }
6427
6640
 
6428
6641
  // src/proto/framer.ts
6429
- var import_binarystream82 = require("@serenityjs/binarystream");
6642
+ var import_binarystream81 = require("@serenityjs/binarystream");
6430
6643
  var Framer = class {
6431
6644
  static unframe(buffer) {
6432
- const stream = new import_binarystream82.BinaryStream(buffer);
6645
+ const stream = new import_binarystream81.BinaryStream(buffer);
6433
6646
  const frames = [];
6434
6647
  do {
6435
6648
  const length = stream.readVarInt();
@@ -6439,7 +6652,7 @@ var Framer = class {
6439
6652
  return frames;
6440
6653
  }
6441
6654
  static frame(...buffers) {
6442
- const stream = new import_binarystream82.BinaryStream();
6655
+ const stream = new import_binarystream81.BinaryStream();
6443
6656
  for (const buffer of buffers) {
6444
6657
  stream.writeVarInt(buffer.length);
6445
6658
  stream.writeBuffer(buffer);
@@ -6449,9 +6662,9 @@ var Framer = class {
6449
6662
  };
6450
6663
 
6451
6664
  // src/proto/packet-id.ts
6452
- var import_binarystream83 = require("@serenityjs/binarystream");
6665
+ var import_binarystream82 = require("@serenityjs/binarystream");
6453
6666
  function getPacketId(buffer) {
6454
- const stream = import_binarystream83.BinaryStream.fromBuffer(buffer);
6667
+ const stream = import_binarystream82.BinaryStream.fromBuffer(buffer);
6455
6668
  return stream.readVarInt();
6456
6669
  }
6457
6670
 
@@ -6477,6 +6690,7 @@ var MINECRAFT_TICK_SPEED = 50;
6477
6690
  BehaviorPackInfo,
6478
6691
  BiomeDefinitionListPacket,
6479
6692
  BlockCoordinates,
6693
+ BlockFace,
6480
6694
  BlockPickRequestPacket,
6481
6695
  BlockProperties,
6482
6696
  ChangeDimensionPacket,
@@ -6490,6 +6704,7 @@ var MINECRAFT_TICK_SPEED = 50;
6490
6704
  CommandPermissionLevel,
6491
6705
  CommandRequestPacket,
6492
6706
  Commands,
6707
+ ComplexInventoryTransaction,
6493
6708
  ComponentItem,
6494
6709
  CompressionMethod,
6495
6710
  ContainerClosePacket,
@@ -6519,13 +6734,18 @@ var MINECRAFT_TICK_SPEED = 50;
6519
6734
  InteractActions,
6520
6735
  InteractPacket,
6521
6736
  InteractPosition,
6737
+ InventoryAction,
6522
6738
  InventoryContentPacket,
6523
6739
  InventorySlotPacket,
6740
+ InventorySource,
6741
+ InventorySourceType,
6742
+ InventoryTransaction,
6524
6743
  InventoryTransactionPacket,
6525
6744
  ItemComponentPacket,
6526
6745
  ItemData,
6527
6746
  ItemInstanceUserData,
6528
- ItemReleaseAction,
6747
+ ItemReleaseInventoryTransaction,
6748
+ ItemReleaseInventoryTransactionType,
6529
6749
  ItemStackActionType,
6530
6750
  ItemStackRequestPacket,
6531
6751
  ItemStackRequests,
@@ -6533,6 +6753,11 @@ var MINECRAFT_TICK_SPEED = 50;
6533
6753
  ItemStackResponses,
6534
6754
  ItemStackStatus,
6535
6755
  ItemStacks,
6756
+ ItemUseInventoryTransaction,
6757
+ ItemUseInventoryTransactionType,
6758
+ ItemUseOnEntityInventoryTransaction,
6759
+ ItemUseOnEntityInventoryTransactionType,
6760
+ LegacyTransaction,
6536
6761
  LevelChunkPacket,
6537
6762
  LevelEvent,
6538
6763
  LevelEventPacket,
@@ -6609,22 +6834,13 @@ var MINECRAFT_TICK_SPEED = 50;
6609
6834
  TexturePackInfo,
6610
6835
  TitleTypes,
6611
6836
  ToastRequestPacket,
6612
- TransactionActions,
6613
- TransactionData,
6614
- TransactionItemRelease,
6615
- TransactionLegacy,
6616
6837
  TransactionSourceType,
6617
- TransactionType,
6618
- TransactionUseItem,
6619
- TransactionUseItemOnEntity,
6620
6838
  UpdateAbilitiesPacket,
6621
6839
  UpdateAdventureSettingsPacket,
6622
6840
  UpdateAttributesPacket,
6623
6841
  UpdateBlockFlagsType,
6624
6842
  UpdateBlockLayerType,
6625
6843
  UpdateBlockPacket,
6626
- UseItemAction,
6627
- UseItemOnEntityAction,
6628
6844
  VarStringArray,
6629
6845
  VarintArray,
6630
6846
  Vector2f,