@serenityjs/protocol 0.5.1-beta-20240917181729 → 0.5.1-beta-20240918010653

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3016,42 +3016,50 @@ declare class AttributeModifier extends DataType {
3016
3016
  }
3017
3017
 
3018
3018
  declare class Attribute extends DataType {
3019
+ /**
3020
+ * The minimum value of the attribute.
3021
+ */
3022
+ min: number;
3023
+ /**
3024
+ * The maximum value of the attribute
3025
+ */
3026
+ max: number;
3019
3027
  /**
3020
3028
  * The current value of the attribute.
3021
3029
  */
3022
3030
  current: number;
3023
3031
  /**
3024
- * The default value of the attribute.
3032
+ * The default minimum value of the attribute.
3025
3033
  */
3026
- default: number;
3034
+ defaultMin: number;
3027
3035
  /**
3028
- * The maximum value of the attribute.
3036
+ * The default maximum value of the attribute.
3029
3037
  */
3030
- max: number;
3038
+ defaultMax: number;
3031
3039
  /**
3032
- * The minimum value of the attribute.
3040
+ * The default value of the attribute.
3033
3041
  */
3034
- min: number;
3042
+ default: number;
3043
+ /**
3044
+ * The name of the attribute.
3045
+ */
3046
+ name: AttributeName;
3035
3047
  /**
3036
3048
  * The modifiers of the attribute.
3037
3049
  */
3038
3050
  modifiers: Array<AttributeModifier>;
3039
3051
  /**
3040
- * The name of the attribute.
3052
+ * Creates a new instance of Attribute.
3053
+ * @param min - The minimum value of the attribute.
3054
+ * @param max - The maximum value of the attribute.
3055
+ * @param current - The current value of the attribute.
3056
+ * @param defaultMin - The default maximum value of the attribute.
3057
+ * @param defaultMax - The default minimum value of the attribute.
3058
+ * @param default - The default value of the attribute.
3059
+ * @param name - The name of the attribute.
3060
+ * @param modifiers - The modifiers of the attribute.
3041
3061
  */
3042
- name: AttributeName;
3043
- /**
3044
- * Creates a new attribute.
3045
- *
3046
- * @param current The current value of the attribute.
3047
- * @param default_ The default value of the attribute.
3048
- * @param max The maximum value of the attribute.
3049
- * @param min The minimum value of the attribute.
3050
- * @param modifiers The modifiers of the attribute.
3051
- * @param name The name of the attribute.
3052
- * @returns A new attribute.
3053
- */
3054
- constructor(current: number, default_: number, max: number, min: number, modifiers: Array<AttributeModifier>, name: AttributeName);
3062
+ constructor(min: number, max: number, current: number, defaultMin: number, defaultMax: number, default_: number, name: AttributeName, modifiers: Array<AttributeModifier>);
3055
3063
  static read(stream: BinaryStream): Array<Attribute>;
3056
3064
  static write(stream: BinaryStream, value: Array<Attribute>): void;
3057
3065
  }
@@ -3147,13 +3155,13 @@ declare class FullContainerName extends DataType {
3147
3155
  /**
3148
3156
  * The identifier of the container, if it is dynamic.
3149
3157
  */
3150
- readonly dynamicIdentifier: number;
3158
+ readonly dynamicIdentifier?: number;
3151
3159
  /**
3152
3160
  * Creates a new instance of FullContainerName.
3153
3161
  * @param identifier - The identifier of the container.
3154
3162
  * @param dynamicIdentifier - The identifier of the container, if it is dynamic.
3155
3163
  */
3156
- constructor(identifier: ContainerName, dynamicIdentifier: number);
3164
+ constructor(identifier: ContainerName, dynamicIdentifier?: number);
3157
3165
  static read(stream: BinaryStream): FullContainerName;
3158
3166
  static write(stream: BinaryStream, value: FullContainerName): void;
3159
3167
  }
@@ -5233,13 +5241,15 @@ declare class InteractPacket extends DataPacket {
5233
5241
  declare class InventoryContentPacket extends DataPacket {
5234
5242
  containerId: ContainerId;
5235
5243
  items: Array<NetworkItemStackDescriptor>;
5236
- dynamicContainerId: number;
5244
+ fullContainerName: FullContainerName;
5245
+ dynamicContainerSize: number;
5237
5246
  }
5238
5247
 
5239
5248
  declare class InventorySlotPacket extends DataPacket {
5240
5249
  containerId: ContainerId;
5241
5250
  slot: number;
5242
- dynamicContainerId: number;
5251
+ fullContainerName: FullContainerName;
5252
+ dynamicContainerSize: number;
5243
5253
  item: NetworkItemStackDescriptor;
5244
5254
  }
5245
5255
 
@@ -5461,9 +5471,7 @@ declare class ResourcePacksInfoPacket extends DataPacket {
5461
5471
  mustAccept: boolean;
5462
5472
  hasAddons: boolean;
5463
5473
  hasScripts: boolean;
5464
- forceServerPacks: boolean;
5465
- behaviorPacks: Array<BehaviorPackInfo>;
5466
- texturePacks: Array<TexturePackInfo>;
5474
+ packs: Array<TexturePackInfo>;
5467
5475
  links: Array<PackLinks>;
5468
5476
  }
5469
5477
 
@@ -5692,6 +5700,7 @@ declare class SetScoreboardIdentityPacket extends DataPacket {
5692
5700
  declare class TransferPacket extends DataPacket {
5693
5701
  address: string;
5694
5702
  port: number;
5703
+ reloadWorld: boolean;
5695
5704
  }
5696
5705
 
5697
5706
  declare class SetHudPacket extends DataPacket {
@@ -5747,9 +5756,10 @@ declare class EmoteListPacket extends DataPacket {
5747
5756
  }
5748
5757
 
5749
5758
  declare class EmotePacket extends DataPacket {
5750
- entityRuntimeId: bigint;
5759
+ actorRuntimeId: bigint;
5751
5760
  emoteId: string;
5752
- xboxUserId: string;
5761
+ tickLength: number;
5762
+ xuid: string;
5753
5763
  platformChatId: string;
5754
5764
  flags: EmoteFlags;
5755
5765
  }
@@ -6087,8 +6097,8 @@ declare class Framer {
6087
6097
  */
6088
6098
  declare function getPacketId(buffer: Buffer): Packet;
6089
6099
 
6090
- declare const PROTOCOL_VERSION = 712;
6091
- declare const MINECRAFT_VERSION = "1.21.20";
6100
+ declare const PROTOCOL_VERSION = 729;
6101
+ declare const MINECRAFT_VERSION = "1.21.30";
6092
6102
  declare const MINECRAFT_TICK_SPEED = 50;
6093
6103
 
6094
6104
  export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActionIds, ActorDamageCause, ActorData, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, BlockPosition, BlockProperties, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, type ClientData, ClientPredictedVehicle, ClientToServerHandshakePacket, ClientboundCloseFormPacket, Color, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DeviceOS, Difficulty, DimensionDataPacket, DimensionDefinition, DimensionDefinitionGroup, DimensionType, DisconnectMessage, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, EnchantOption, Enchantment, EntityAttributes, EntityPickRequestPacket, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Framer, FullContainerName, GameRuleType, GameRules, Gamemode, GeneratorType, HUDElement, HUDElementId, HUDVisibility, HurtArmorPacket, type IPosition, type IdentityData, InputDataFlags, InputLockFlags, InputMode, InputTransaction, InteractActions, InteractPacket, InteractPosition, InteractionMode, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, ItemStackActionTakePlace, type ItemStackContainer, ItemStackRequest, ItemStackRequestAction, ItemStackRequestActionBeanconPayment, ItemStackRequestActionCraftCreative, ItemStackRequestActionCraftGrindstoneRequest, ItemStackRequestActionCraftLoomRequest, ItemStackRequestActionCraftRecipe, ItemStackRequestActionCraftRecipeAuto, ItemStackRequestActionCreate, ItemStackRequestActionDestroyConsume, ItemStackRequestActionDrop, ItemStackRequestActionMineBlock, ItemStackRequestActionOptional, ItemStackRequestActionResultsDeprecated, ItemStackRequestActionSwap, ItemStackRequestActionType, ItemStackRequestPacket, ItemStackRequestSlotInfo, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MaterialReducerDataEntry, MobArmorEquipmentPacket, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OnScreenTextureAnimationPacket, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayMode, PlaySoundPacket, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAuthInputData, PlayerAuthInputPacket, PlayerEnchantOptionsPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, RiderJumpPacket, Rotation, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerToClientHandshakePacket, ServerboundDiagnosticsPacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, ShowCreditsPacket, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, StartGamePacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, TriggerType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
package/dist/index.js CHANGED
@@ -4375,48 +4375,58 @@ var Attribute = class Attribute2 extends import_raknet27.DataType {
4375
4375
  __name(this, "Attribute");
4376
4376
  }
4377
4377
  /**
4378
+ * The minimum value of the attribute.
4379
+ */
4380
+ min;
4381
+ /**
4382
+ * The maximum value of the attribute
4383
+ */
4384
+ max;
4385
+ /**
4378
4386
  * The current value of the attribute.
4379
4387
  */
4380
4388
  current;
4381
4389
  /**
4382
- * The default value of the attribute.
4390
+ * The default minimum value of the attribute.
4383
4391
  */
4384
- default;
4392
+ defaultMin;
4385
4393
  /**
4386
- * The maximum value of the attribute.
4394
+ * The default maximum value of the attribute.
4387
4395
  */
4388
- max;
4396
+ defaultMax;
4389
4397
  /**
4390
- * The minimum value of the attribute.
4398
+ * The default value of the attribute.
4391
4399
  */
4392
- min;
4400
+ default;
4401
+ /**
4402
+ * The name of the attribute.
4403
+ */
4404
+ name;
4393
4405
  /**
4394
4406
  * The modifiers of the attribute.
4395
4407
  */
4396
4408
  modifiers;
4397
4409
  /**
4398
- * The name of the attribute.
4410
+ * Creates a new instance of Attribute.
4411
+ * @param min - The minimum value of the attribute.
4412
+ * @param max - The maximum value of the attribute.
4413
+ * @param current - The current value of the attribute.
4414
+ * @param defaultMin - The default maximum value of the attribute.
4415
+ * @param defaultMax - The default minimum value of the attribute.
4416
+ * @param default - The default value of the attribute.
4417
+ * @param name - The name of the attribute.
4418
+ * @param modifiers - The modifiers of the attribute.
4399
4419
  */
4400
- name;
4401
- /**
4402
- * Creates a new attribute.
4403
- *
4404
- * @param current The current value of the attribute.
4405
- * @param default_ The default value of the attribute.
4406
- * @param max The maximum value of the attribute.
4407
- * @param min The minimum value of the attribute.
4408
- * @param modifiers The modifiers of the attribute.
4409
- * @param name The name of the attribute.
4410
- * @returns A new attribute.
4411
- */
4412
- constructor(current, default_, max, min, modifiers, name) {
4420
+ constructor(min, max, current, defaultMin, defaultMax, default_, name, modifiers) {
4413
4421
  super();
4422
+ this.min = min;
4423
+ this.max = max;
4414
4424
  this.current = current;
4425
+ this.defaultMin = defaultMin;
4426
+ this.defaultMax = defaultMax;
4415
4427
  this.default = default_;
4416
- this.max = max;
4417
- this.min = min;
4418
- this.modifiers = modifiers;
4419
4428
  this.name = name;
4429
+ this.modifiers = modifiers;
4420
4430
  }
4421
4431
  static read(stream) {
4422
4432
  const attributes = [];
@@ -4425,6 +4435,8 @@ var Attribute = class Attribute2 extends import_raknet27.DataType {
4425
4435
  const min = stream.readFloat32(import_binarystream18.Endianness.Little);
4426
4436
  const max = stream.readFloat32(import_binarystream18.Endianness.Little);
4427
4437
  const current = stream.readFloat32(import_binarystream18.Endianness.Little);
4438
+ const defaultMin = stream.readFloat32(import_binarystream18.Endianness.Little);
4439
+ const defaultMax = stream.readFloat32(import_binarystream18.Endianness.Little);
4428
4440
  const default_ = stream.readFloat32(import_binarystream18.Endianness.Little);
4429
4441
  const name = stream.readVarString();
4430
4442
  const modifiers = [];
@@ -4432,7 +4444,7 @@ var Attribute = class Attribute2 extends import_raknet27.DataType {
4432
4444
  for (let index2 = 0; index2 < modifierAmount; index2++) {
4433
4445
  modifiers.push(AttributeModifier.read(stream));
4434
4446
  }
4435
- attributes.push(new Attribute2(current, default_, max, min, modifiers, name));
4447
+ attributes.push(new this(min, max, current, defaultMax, defaultMin, default_, name, modifiers));
4436
4448
  }
4437
4449
  return attributes;
4438
4450
  }
@@ -4442,6 +4454,8 @@ var Attribute = class Attribute2 extends import_raknet27.DataType {
4442
4454
  stream.writeFloat32(attribute.min, import_binarystream18.Endianness.Little);
4443
4455
  stream.writeFloat32(attribute.max, import_binarystream18.Endianness.Little);
4444
4456
  stream.writeFloat32(attribute.current, import_binarystream18.Endianness.Little);
4457
+ stream.writeFloat32(attribute.defaultMin, import_binarystream18.Endianness.Little);
4458
+ stream.writeFloat32(attribute.defaultMax, import_binarystream18.Endianness.Little);
4445
4459
  stream.writeFloat32(attribute.default, import_binarystream18.Endianness.Little);
4446
4460
  stream.writeVarString(attribute.name);
4447
4461
  stream.writeVarInt(attribute.modifiers.length);
@@ -4686,12 +4700,18 @@ var FullContainerName = class FullContainerName2 extends import_raknet33.DataTyp
4686
4700
  }
4687
4701
  static read(stream) {
4688
4702
  const identifier = stream.readUint8();
4689
- const dynamicIdentifier = stream.readUint32(import_binarystream21.Endianness.Little);
4703
+ const isDynamic = stream.readBool();
4704
+ const dynamicIdentifier = isDynamic ? stream.readUint32(import_binarystream21.Endianness.Little) : void 0;
4690
4705
  return new FullContainerName2(identifier, dynamicIdentifier);
4691
4706
  }
4692
4707
  static write(stream, value) {
4693
4708
  stream.writeUint8(value.identifier);
4694
- stream.writeUint32(value.dynamicIdentifier, import_binarystream21.Endianness.Little);
4709
+ if (value.dynamicIdentifier) {
4710
+ stream.writeBool(true);
4711
+ stream.writeUint32(value.dynamicIdentifier, import_binarystream21.Endianness.Little);
4712
+ } else {
4713
+ stream.writeBool(false);
4714
+ }
4695
4715
  }
4696
4716
  };
4697
4717
 
@@ -10352,7 +10372,8 @@ var InventoryContentPacket = class InventoryContentPacket2 extends DataPacket {
10352
10372
  }
10353
10373
  containerId;
10354
10374
  items;
10355
- dynamicContainerId;
10375
+ fullContainerName;
10376
+ dynamicContainerSize;
10356
10377
  };
10357
10378
  _ts_decorate17([
10358
10379
  (0, import_raknet140.Serialize)(import_binarystream59.VarInt),
@@ -10362,10 +10383,14 @@ _ts_decorate17([
10362
10383
  (0, import_raknet140.Serialize)(ItemStacks),
10363
10384
  _ts_metadata16("design:type", typeof Array === "undefined" ? Object : Array)
10364
10385
  ], InventoryContentPacket.prototype, "items", void 0);
10386
+ _ts_decorate17([
10387
+ (0, import_raknet140.Serialize)(FullContainerName),
10388
+ _ts_metadata16("design:type", typeof FullContainerName === "undefined" ? Object : FullContainerName)
10389
+ ], InventoryContentPacket.prototype, "fullContainerName", void 0);
10365
10390
  _ts_decorate17([
10366
10391
  (0, import_raknet140.Serialize)(import_binarystream59.VarInt),
10367
10392
  _ts_metadata16("design:type", Number)
10368
- ], InventoryContentPacket.prototype, "dynamicContainerId", void 0);
10393
+ ], InventoryContentPacket.prototype, "dynamicContainerSize", void 0);
10369
10394
  InventoryContentPacket = _ts_decorate17([
10370
10395
  (0, import_raknet140.Proto)(Packet.InventoryContent)
10371
10396
  ], InventoryContentPacket);
@@ -10390,7 +10415,8 @@ var InventorySlotPacket = class InventorySlotPacket2 extends DataPacket {
10390
10415
  }
10391
10416
  containerId;
10392
10417
  slot;
10393
- dynamicContainerId;
10418
+ fullContainerName;
10419
+ dynamicContainerSize;
10394
10420
  item;
10395
10421
  };
10396
10422
  _ts_decorate18([
@@ -10401,10 +10427,14 @@ _ts_decorate18([
10401
10427
  (0, import_raknet141.Serialize)(import_binarystream60.VarInt),
10402
10428
  _ts_metadata17("design:type", Number)
10403
10429
  ], InventorySlotPacket.prototype, "slot", void 0);
10430
+ _ts_decorate18([
10431
+ (0, import_raknet141.Serialize)(FullContainerName),
10432
+ _ts_metadata17("design:type", typeof FullContainerName === "undefined" ? Object : FullContainerName)
10433
+ ], InventorySlotPacket.prototype, "fullContainerName", void 0);
10404
10434
  _ts_decorate18([
10405
10435
  (0, import_raknet141.Serialize)(import_binarystream60.VarInt),
10406
10436
  _ts_metadata17("design:type", Number)
10407
- ], InventorySlotPacket.prototype, "dynamicContainerId", void 0);
10437
+ ], InventorySlotPacket.prototype, "dynamicContainerSize", void 0);
10408
10438
  _ts_decorate18([
10409
10439
  (0, import_raknet141.Serialize)(NetworkItemStackDescriptor),
10410
10440
  _ts_metadata17("design:type", typeof NetworkItemStackDescriptor === "undefined" ? Object : NetworkItemStackDescriptor)
@@ -11678,9 +11708,7 @@ var ResourcePacksInfoPacket = class ResourcePacksInfoPacket2 extends DataPacket
11678
11708
  mustAccept;
11679
11709
  hasAddons;
11680
11710
  hasScripts;
11681
- forceServerPacks;
11682
- behaviorPacks;
11683
- texturePacks;
11711
+ packs;
11684
11712
  links;
11685
11713
  };
11686
11714
  _ts_decorate48([
@@ -11695,18 +11723,10 @@ _ts_decorate48([
11695
11723
  (0, import_raknet171.Serialize)(import_binarystream86.Bool),
11696
11724
  _ts_metadata43("design:type", Boolean)
11697
11725
  ], ResourcePacksInfoPacket.prototype, "hasScripts", void 0);
11698
- _ts_decorate48([
11699
- (0, import_raknet171.Serialize)(import_binarystream86.Bool),
11700
- _ts_metadata43("design:type", Boolean)
11701
- ], ResourcePacksInfoPacket.prototype, "forceServerPacks", void 0);
11702
- _ts_decorate48([
11703
- (0, import_raknet171.Serialize)(BehaviorPackInfo),
11704
- _ts_metadata43("design:type", typeof Array === "undefined" ? Object : Array)
11705
- ], ResourcePacksInfoPacket.prototype, "behaviorPacks", void 0);
11706
11726
  _ts_decorate48([
11707
11727
  (0, import_raknet171.Serialize)(TexturePackInfo),
11708
11728
  _ts_metadata43("design:type", typeof Array === "undefined" ? Object : Array)
11709
- ], ResourcePacksInfoPacket.prototype, "texturePacks", void 0);
11729
+ ], ResourcePacksInfoPacket.prototype, "packs", void 0);
11710
11730
  _ts_decorate48([
11711
11731
  (0, import_raknet171.Serialize)(PackLinks),
11712
11732
  _ts_metadata43("design:type", typeof Array === "undefined" ? Object : Array)
@@ -12933,6 +12953,7 @@ var TransferPacket = class TransferPacket2 extends DataPacket {
12933
12953
  }
12934
12954
  address;
12935
12955
  port;
12956
+ reloadWorld;
12936
12957
  };
12937
12958
  _ts_decorate69([
12938
12959
  (0, import_raknet192.Serialize)(import_binarystream107.VarString),
@@ -12942,6 +12963,10 @@ _ts_decorate69([
12942
12963
  (0, import_raknet192.Serialize)(import_binarystream107.Uint16, import_binarystream107.Endianness.Little),
12943
12964
  _ts_metadata64("design:type", Number)
12944
12965
  ], TransferPacket.prototype, "port", void 0);
12966
+ _ts_decorate69([
12967
+ (0, import_raknet192.Serialize)(import_binarystream107.Bool),
12968
+ _ts_metadata64("design:type", Boolean)
12969
+ ], TransferPacket.prototype, "reloadWorld", void 0);
12945
12970
  TransferPacket = _ts_decorate69([
12946
12971
  (0, import_raknet192.Proto)(Packet.Transfer)
12947
12972
  ], TransferPacket);
@@ -13288,24 +13313,29 @@ var EmotePacket = class EmotePacket2 extends DataPacket {
13288
13313
  static {
13289
13314
  __name(this, "EmotePacket");
13290
13315
  }
13291
- entityRuntimeId;
13316
+ actorRuntimeId;
13292
13317
  emoteId;
13293
- xboxUserId;
13318
+ tickLength;
13319
+ xuid;
13294
13320
  platformChatId;
13295
13321
  flags;
13296
13322
  };
13297
13323
  _ts_decorate78([
13298
13324
  (0, import_raknet201.Serialize)(import_binarystream116.ZigZong),
13299
13325
  _ts_metadata73("design:type", typeof BigInt === "undefined" ? Object : BigInt)
13300
- ], EmotePacket.prototype, "entityRuntimeId", void 0);
13326
+ ], EmotePacket.prototype, "actorRuntimeId", void 0);
13301
13327
  _ts_decorate78([
13302
13328
  (0, import_raknet201.Serialize)(import_binarystream116.VarString),
13303
13329
  _ts_metadata73("design:type", String)
13304
13330
  ], EmotePacket.prototype, "emoteId", void 0);
13331
+ _ts_decorate78([
13332
+ (0, import_raknet201.Serialize)(import_binarystream116.VarInt),
13333
+ _ts_metadata73("design:type", Number)
13334
+ ], EmotePacket.prototype, "tickLength", void 0);
13305
13335
  _ts_decorate78([
13306
13336
  (0, import_raknet201.Serialize)(import_binarystream116.VarString),
13307
13337
  _ts_metadata73("design:type", String)
13308
- ], EmotePacket.prototype, "xboxUserId", void 0);
13338
+ ], EmotePacket.prototype, "xuid", void 0);
13309
13339
  _ts_decorate78([
13310
13340
  (0, import_raknet201.Serialize)(import_binarystream116.VarString),
13311
13341
  _ts_metadata73("design:type", String)
@@ -14758,8 +14788,8 @@ function getPacketId(buffer) {
14758
14788
  __name(getPacketId, "getPacketId");
14759
14789
 
14760
14790
  // src/constants/index.ts
14761
- var PROTOCOL_VERSION = 712;
14762
- var MINECRAFT_VERSION = "1.21.20";
14791
+ var PROTOCOL_VERSION = 729;
14792
+ var MINECRAFT_VERSION = "1.21.30";
14763
14793
  var MINECRAFT_TICK_SPEED = 50;
14764
14794
  // Annotate the CommonJS export names for ESM import in node:
14765
14795
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenityjs/protocol",
3
- "version": "0.5.1-beta-20240917181729",
3
+ "version": "0.5.1-beta-20240918010653",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "repository": "https://github.com/SerenityJS/serenity",
@@ -18,9 +18,9 @@
18
18
  "preset": "@serenityjs/jest-presets/jest/node"
19
19
  },
20
20
  "devDependencies": {
21
- "@serenityjs/eslint-config": "0.5.1-beta-20240917181729",
22
- "@serenityjs/jest-presets": "0.5.1-beta-20240917181729",
23
- "@serenityjs/typescript-config": "0.5.1-beta-20240917181729",
21
+ "@serenityjs/eslint-config": "0.5.1-beta-20240918010653",
22
+ "@serenityjs/jest-presets": "0.5.1-beta-20240918010653",
23
+ "@serenityjs/typescript-config": "0.5.1-beta-20240918010653",
24
24
  "@types/jest": "^29.5.12",
25
25
  "@types/node": "^20.11.24",
26
26
  "jest": "^29.7.0",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@serenityjs/binarystream": "^2.6.6",
32
- "@serenityjs/nbt": "0.5.1-beta-20240917181729",
33
- "@serenityjs/raknet": "0.5.1-beta-20240917181729"
32
+ "@serenityjs/nbt": "0.5.1-beta-20240918010653",
33
+ "@serenityjs/raknet": "0.5.1-beta-20240918010653"
34
34
  }
35
35
  }