@serenityjs/protocol 0.3.4-beta-20240613001837 → 0.3.4-beta-20240613185708

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
@@ -38,6 +38,7 @@ declare enum Packet {
38
38
  PlayerHotbar = 48,// 48
39
39
  InventoryContent = 49,// 49
40
40
  InventorySlot = 50,// 50
41
+ BlockActorData = 56,// 56
41
42
  LevelChunk = 58,// 58
42
43
  SetCommandsEnabled = 59,// 59
43
44
  ChangeDimension = 61,// 61
@@ -3277,7 +3278,8 @@ declare class CommandRequestPacket extends DataPacket {
3277
3278
  }
3278
3279
 
3279
3280
  declare class ContainerClosePacket extends DataPacket {
3280
- containerId: ContainerId;
3281
+ identifier: ContainerId;
3282
+ type: ContainerType;
3281
3283
  serverInitiated: boolean;
3282
3284
  }
3283
3285
 
@@ -3632,6 +3634,9 @@ declare class StartGamePacket extends DataPacket {
3632
3634
  experimentalGameplayOverride: boolean;
3633
3635
  chatRestrictionLevel: number;
3634
3636
  disablePlayerInteractions: boolean;
3637
+ serverIdentfier: string;
3638
+ worldIdentifier: string;
3639
+ scenarioIdentifier: string;
3635
3640
  levelId: string;
3636
3641
  worldName: string;
3637
3642
  premiumWorldTemplateId: string;
@@ -3664,6 +3669,7 @@ declare class TextPacket extends DataPacket {
3664
3669
  parameters: Array<string> | null;
3665
3670
  xuid: string;
3666
3671
  platformChatId: string;
3672
+ filtered: string;
3667
3673
  }
3668
3674
 
3669
3675
  declare class ToastRequestPacket extends DataPacket {
@@ -3798,6 +3804,11 @@ declare class PlayerSkinPacket extends DataPacket {
3798
3804
  isVerified: boolean;
3799
3805
  }
3800
3806
 
3807
+ declare class BlockActorDataPacket extends DataPacket {
3808
+ position: BlockCoordinates;
3809
+ nbt: CompoundTag<unknown>;
3810
+ }
3811
+
3801
3812
  declare const Packets: {
3802
3813
  1: typeof LoginPacket;
3803
3814
  2: typeof PlayStatusPacket;
@@ -3833,6 +3844,7 @@ declare const Packets: {
3833
3844
  48: typeof PlayerHotbarPacket;
3834
3845
  49: typeof InventoryContentPacket;
3835
3846
  50: typeof InventorySlotPacket;
3847
+ 56: typeof BlockActorDataPacket;
3836
3848
  58: typeof LevelChunkPacket;
3837
3849
  59: typeof SetCommandsEnabledPacket;
3838
3850
  61: typeof ChangeDimensionPacket;
@@ -3895,8 +3907,8 @@ declare class Framer {
3895
3907
  */
3896
3908
  declare function getPacketId(buffer: Buffer): Packet;
3897
3909
 
3898
- declare const PROTOCOL_VERSION = 671;
3899
- declare const MINECRAFT_VERSION = "1.20.80";
3910
+ declare const PROTOCOL_VERSION = 685;
3911
+ declare const MINECRAFT_VERSION = "1.21.0";
3900
3912
  declare const MINECRAFT_TICK_SPEED = 50;
3901
3913
 
3902
- export { AbilityLayerFlag, AbilityLayerType, AbilityLayers, AbilitySet, ActionIds, ActorEventIds, ActorEventPacket, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AvailableCommandsPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockCoordinates, BlockFace, BlockPickRequestPacket, BlockProperties, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerId, ContainerName, ContainerOpenPacket, ContainerType, CreativeContentPacket, CreativeItems, DataPacket, DeviceOS, Difficulty, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, EntityAttributes, EntityProperties, EnumConstraints, EnumValues, Enums, Experiments, Framer, GameRuleType, GameRules, Gamemode, HUDElement, HUDElementId, HUDVisibility, InteractActions, InteractPacket, InteractPosition, InventoryAction, InventoryContentPacket, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, type ItemStackAction, ItemStackActionType, type ItemStackContainer, ItemStackRequestPacket, ItemStackRequests, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MetadataDictionary, MetadataFlags, MetadataKey, MetadataType, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, ObjectiveSortOrder, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAttributes, PlayerAuthInputData, PlayerAuthInputPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PostFixes, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, Rotation, ScoreActionType, ScoreEntry, ScoreEntryType, ScoreboardIdentity, ScoreboardIdentityAction, ScriptMessagePacket, SerializedSkin, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetEntityDataPacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetScorePacket, SetScoreboardIdentityPacket, SetTimePacket, SetTitlePacket, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, StackRequestSlotInfo, StartGamePacket, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, VariableStringArray as VarStringArray, VarintArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
3914
+ export { AbilityLayerFlag, AbilityLayerType, AbilityLayers, AbilitySet, ActionIds, ActorEventIds, ActorEventPacket, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AvailableCommandsPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockActorDataPacket, BlockCoordinates, BlockFace, BlockPickRequestPacket, BlockProperties, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerId, ContainerName, ContainerOpenPacket, ContainerType, CreativeContentPacket, CreativeItems, DataPacket, DeviceOS, Difficulty, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, EntityAttributes, EntityProperties, EnumConstraints, EnumValues, Enums, Experiments, Framer, GameRuleType, GameRules, Gamemode, HUDElement, HUDElementId, HUDVisibility, InteractActions, InteractPacket, InteractPosition, InventoryAction, InventoryContentPacket, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, type ItemStackAction, ItemStackActionType, type ItemStackContainer, ItemStackRequestPacket, ItemStackRequests, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MetadataDictionary, MetadataFlags, MetadataKey, MetadataType, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, ObjectiveSortOrder, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAttributes, PlayerAuthInputData, PlayerAuthInputPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PostFixes, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, Rotation, ScoreActionType, ScoreEntry, ScoreEntryType, ScoreboardIdentity, ScoreboardIdentityAction, ScriptMessagePacket, SerializedSkin, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetEntityDataPacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetScorePacket, SetScoreboardIdentityPacket, SetTimePacket, SetTitlePacket, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, StackRequestSlotInfo, StartGamePacket, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, VariableStringArray as VarStringArray, VarintArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
package/dist/index.js CHANGED
@@ -47,6 +47,7 @@ __export(src_exports, {
47
47
  AvailableCommandsPacket: () => AvailableCommandsPacket,
48
48
  BehaviorPackInfo: () => BehaviorPackInfo,
49
49
  BiomeDefinitionListPacket: () => BiomeDefinitionListPacket,
50
+ BlockActorDataPacket: () => BlockActorDataPacket,
50
51
  BlockCoordinates: () => BlockCoordinates,
51
52
  BlockFace: () => BlockFace,
52
53
  BlockPickRequestPacket: () => BlockPickRequestPacket,
@@ -286,6 +287,7 @@ var Packet = /* @__PURE__ */ ((Packet2) => {
286
287
  Packet2[Packet2["PlayerHotbar"] = 48] = "PlayerHotbar";
287
288
  Packet2[Packet2["InventoryContent"] = 49] = "InventoryContent";
288
289
  Packet2[Packet2["InventorySlot"] = 50] = "InventorySlot";
290
+ Packet2[Packet2["BlockActorData"] = 56] = "BlockActorData";
289
291
  Packet2[Packet2["LevelChunk"] = 58] = "LevelChunk";
290
292
  Packet2[Packet2["SetCommandsEnabled"] = 59] = "SetCommandsEnabled";
291
293
  Packet2[Packet2["ChangeDimension"] = 61] = "ChangeDimension";
@@ -724,47 +726,47 @@ var ContainerName = /* @__PURE__ */ ((ContainerName2) => {
724
726
  })(ContainerName || {});
725
727
 
726
728
  // src/enums/container-type.ts
727
- var ContainerType = /* @__PURE__ */ ((ContainerType3) => {
728
- ContainerType3[ContainerType3["None"] = -9] = "None";
729
- ContainerType3[ContainerType3["Inventory"] = -1] = "Inventory";
730
- ContainerType3[ContainerType3["Container"] = 0] = "Container";
731
- ContainerType3[ContainerType3["Workbench"] = 1] = "Workbench";
732
- ContainerType3[ContainerType3["Furnace"] = 2] = "Furnace";
733
- ContainerType3[ContainerType3["Enchantment"] = 3] = "Enchantment";
734
- ContainerType3[ContainerType3["BrewingStand"] = 4] = "BrewingStand";
735
- ContainerType3[ContainerType3["Anvil"] = 5] = "Anvil";
736
- ContainerType3[ContainerType3["Dispenser"] = 6] = "Dispenser";
737
- ContainerType3[ContainerType3["Dropper"] = 7] = "Dropper";
738
- ContainerType3[ContainerType3["Hopper"] = 8] = "Hopper";
739
- ContainerType3[ContainerType3["Cauldron"] = 9] = "Cauldron";
740
- ContainerType3[ContainerType3["MinecartChest"] = 10] = "MinecartChest";
741
- ContainerType3[ContainerType3["MinecartHopper"] = 11] = "MinecartHopper";
742
- ContainerType3[ContainerType3["Horse"] = 12] = "Horse";
743
- ContainerType3[ContainerType3["Beacon"] = 13] = "Beacon";
744
- ContainerType3[ContainerType3["StructureEditor"] = 14] = "StructureEditor";
745
- ContainerType3[ContainerType3["Trading"] = 15] = "Trading";
746
- ContainerType3[ContainerType3["CommandBlock"] = 16] = "CommandBlock";
747
- ContainerType3[ContainerType3["Jukebox"] = 17] = "Jukebox";
748
- ContainerType3[ContainerType3["Armor"] = 18] = "Armor";
749
- ContainerType3[ContainerType3["Hand"] = 19] = "Hand";
750
- ContainerType3[ContainerType3["CompoundCreator"] = 20] = "CompoundCreator";
751
- ContainerType3[ContainerType3["ElementConstructor"] = 21] = "ElementConstructor";
752
- ContainerType3[ContainerType3["MaterialReducer"] = 22] = "MaterialReducer";
753
- ContainerType3[ContainerType3["LabTable"] = 23] = "LabTable";
754
- ContainerType3[ContainerType3["Loom"] = 24] = "Loom";
755
- ContainerType3[ContainerType3["Lectern"] = 25] = "Lectern";
756
- ContainerType3[ContainerType3["Grindstone"] = 26] = "Grindstone";
757
- ContainerType3[ContainerType3["BlastFurnace"] = 27] = "BlastFurnace";
758
- ContainerType3[ContainerType3["Smoker"] = 28] = "Smoker";
759
- ContainerType3[ContainerType3["Stonecutter"] = 29] = "Stonecutter";
760
- ContainerType3[ContainerType3["Cartography"] = 30] = "Cartography";
761
- ContainerType3[ContainerType3["Hud"] = 31] = "Hud";
762
- ContainerType3[ContainerType3["JigsawEditor"] = 32] = "JigsawEditor";
763
- ContainerType3[ContainerType3["SmithingTable"] = 33] = "SmithingTable";
764
- ContainerType3[ContainerType3["ChestBoat"] = 34] = "ChestBoat";
765
- ContainerType3[ContainerType3["DecoratedPot"] = 35] = "DecoratedPot";
766
- ContainerType3[ContainerType3["Crafter"] = 36] = "Crafter";
767
- return ContainerType3;
729
+ var ContainerType = /* @__PURE__ */ ((ContainerType4) => {
730
+ ContainerType4[ContainerType4["None"] = -9] = "None";
731
+ ContainerType4[ContainerType4["Inventory"] = -1] = "Inventory";
732
+ ContainerType4[ContainerType4["Container"] = 0] = "Container";
733
+ ContainerType4[ContainerType4["Workbench"] = 1] = "Workbench";
734
+ ContainerType4[ContainerType4["Furnace"] = 2] = "Furnace";
735
+ ContainerType4[ContainerType4["Enchantment"] = 3] = "Enchantment";
736
+ ContainerType4[ContainerType4["BrewingStand"] = 4] = "BrewingStand";
737
+ ContainerType4[ContainerType4["Anvil"] = 5] = "Anvil";
738
+ ContainerType4[ContainerType4["Dispenser"] = 6] = "Dispenser";
739
+ ContainerType4[ContainerType4["Dropper"] = 7] = "Dropper";
740
+ ContainerType4[ContainerType4["Hopper"] = 8] = "Hopper";
741
+ ContainerType4[ContainerType4["Cauldron"] = 9] = "Cauldron";
742
+ ContainerType4[ContainerType4["MinecartChest"] = 10] = "MinecartChest";
743
+ ContainerType4[ContainerType4["MinecartHopper"] = 11] = "MinecartHopper";
744
+ ContainerType4[ContainerType4["Horse"] = 12] = "Horse";
745
+ ContainerType4[ContainerType4["Beacon"] = 13] = "Beacon";
746
+ ContainerType4[ContainerType4["StructureEditor"] = 14] = "StructureEditor";
747
+ ContainerType4[ContainerType4["Trading"] = 15] = "Trading";
748
+ ContainerType4[ContainerType4["CommandBlock"] = 16] = "CommandBlock";
749
+ ContainerType4[ContainerType4["Jukebox"] = 17] = "Jukebox";
750
+ ContainerType4[ContainerType4["Armor"] = 18] = "Armor";
751
+ ContainerType4[ContainerType4["Hand"] = 19] = "Hand";
752
+ ContainerType4[ContainerType4["CompoundCreator"] = 20] = "CompoundCreator";
753
+ ContainerType4[ContainerType4["ElementConstructor"] = 21] = "ElementConstructor";
754
+ ContainerType4[ContainerType4["MaterialReducer"] = 22] = "MaterialReducer";
755
+ ContainerType4[ContainerType4["LabTable"] = 23] = "LabTable";
756
+ ContainerType4[ContainerType4["Loom"] = 24] = "Loom";
757
+ ContainerType4[ContainerType4["Lectern"] = 25] = "Lectern";
758
+ ContainerType4[ContainerType4["Grindstone"] = 26] = "Grindstone";
759
+ ContainerType4[ContainerType4["BlastFurnace"] = 27] = "BlastFurnace";
760
+ ContainerType4[ContainerType4["Smoker"] = 28] = "Smoker";
761
+ ContainerType4[ContainerType4["Stonecutter"] = 29] = "Stonecutter";
762
+ ContainerType4[ContainerType4["Cartography"] = 30] = "Cartography";
763
+ ContainerType4[ContainerType4["Hud"] = 31] = "Hud";
764
+ ContainerType4[ContainerType4["JigsawEditor"] = 32] = "JigsawEditor";
765
+ ContainerType4[ContainerType4["SmithingTable"] = 33] = "SmithingTable";
766
+ ContainerType4[ContainerType4["ChestBoat"] = 34] = "ChestBoat";
767
+ ContainerType4[ContainerType4["DecoratedPot"] = 35] = "DecoratedPot";
768
+ ContainerType4[ContainerType4["Crafter"] = 36] = "Crafter";
769
+ return ContainerType4;
768
770
  })(ContainerType || {});
769
771
 
770
772
  // src/enums/action-ids.ts
@@ -6308,12 +6310,16 @@ CommandRequestPacket = __decorateClass([
6308
6310
  var import_binarystream43 = require("@serenityjs/binarystream");
6309
6311
  var import_raknet82 = require("@serenityjs/raknet");
6310
6312
  var ContainerClosePacket = class extends DataPacket {
6311
- containerId;
6313
+ identifier;
6314
+ type;
6312
6315
  serverInitiated;
6313
6316
  };
6314
6317
  __decorateClass([
6315
6318
  (0, import_raknet82.Serialize)(import_binarystream43.Int8)
6316
- ], ContainerClosePacket.prototype, "containerId", 2);
6319
+ ], ContainerClosePacket.prototype, "identifier", 2);
6320
+ __decorateClass([
6321
+ (0, import_raknet82.Serialize)(import_binarystream43.Int8)
6322
+ ], ContainerClosePacket.prototype, "type", 2);
6317
6323
  __decorateClass([
6318
6324
  (0, import_raknet82.Serialize)(import_binarystream43.Bool)
6319
6325
  ], ContainerClosePacket.prototype, "serverInitiated", 2);
@@ -7421,6 +7427,9 @@ var StartGamePacket = class extends DataPacket {
7421
7427
  experimentalGameplayOverride;
7422
7428
  chatRestrictionLevel;
7423
7429
  disablePlayerInteractions;
7430
+ serverIdentfier;
7431
+ worldIdentifier;
7432
+ scenarioIdentifier;
7424
7433
  levelId;
7425
7434
  worldName;
7426
7435
  premiumWorldTemplateId;
@@ -7618,6 +7627,15 @@ __decorateClass([
7618
7627
  __decorateClass([
7619
7628
  (0, import_raknet127.Serialize)(import_binarystream83.Bool)
7620
7629
  ], StartGamePacket.prototype, "disablePlayerInteractions", 2);
7630
+ __decorateClass([
7631
+ (0, import_raknet127.Serialize)(import_binarystream83.VarString)
7632
+ ], StartGamePacket.prototype, "serverIdentfier", 2);
7633
+ __decorateClass([
7634
+ (0, import_raknet127.Serialize)(import_binarystream83.VarString)
7635
+ ], StartGamePacket.prototype, "worldIdentifier", 2);
7636
+ __decorateClass([
7637
+ (0, import_raknet127.Serialize)(import_binarystream83.VarString)
7638
+ ], StartGamePacket.prototype, "scenarioIdentifier", 2);
7621
7639
  __decorateClass([
7622
7640
  (0, import_raknet127.Serialize)(import_binarystream83.VarString)
7623
7641
  ], StartGamePacket.prototype, "levelId", 2);
@@ -7699,6 +7717,7 @@ var TextPacket = class extends DataPacket {
7699
7717
  parameters;
7700
7718
  xuid;
7701
7719
  platformChatId;
7720
+ filtered;
7702
7721
  };
7703
7722
  __decorateClass([
7704
7723
  (0, import_raknet128.Serialize)(import_binarystream84.Uint8)
@@ -7721,6 +7740,9 @@ __decorateClass([
7721
7740
  __decorateClass([
7722
7741
  (0, import_raknet128.Serialize)(import_binarystream84.VarString)
7723
7742
  ], TextPacket.prototype, "platformChatId", 2);
7743
+ __decorateClass([
7744
+ (0, import_raknet128.Serialize)(import_binarystream84.VarString)
7745
+ ], TextPacket.prototype, "filtered", 2);
7724
7746
  TextPacket = __decorateClass([
7725
7747
  (0, import_raknet128.Proto)(9 /* Text */)
7726
7748
  ], TextPacket);
@@ -8190,6 +8212,23 @@ PlayerSkinPacket = __decorateClass([
8190
8212
  (0, import_raknet149.Proto)(93 /* PlayerSkin */)
8191
8213
  ], PlayerSkinPacket);
8192
8214
 
8215
+ // src/proto/data/block-actor-data.ts
8216
+ var import_raknet150 = require("@serenityjs/raknet");
8217
+ var import_nbt4 = require("@serenityjs/nbt");
8218
+ var BlockActorDataPacket = class extends DataPacket {
8219
+ position;
8220
+ nbt;
8221
+ };
8222
+ __decorateClass([
8223
+ (0, import_raknet150.Serialize)(BlockCoordinates)
8224
+ ], BlockActorDataPacket.prototype, "position", 2);
8225
+ __decorateClass([
8226
+ (0, import_raknet150.Serialize)(import_nbt4.CompoundTag, true)
8227
+ ], BlockActorDataPacket.prototype, "nbt", 2);
8228
+ BlockActorDataPacket = __decorateClass([
8229
+ (0, import_raknet150.Proto)(56 /* BlockActorData */)
8230
+ ], BlockActorDataPacket);
8231
+
8193
8232
  // src/proto/data/packets.ts
8194
8233
  var Packets = {
8195
8234
  [1 /* Login */]: LoginPacket,
@@ -8260,6 +8299,8 @@ var Packets = {
8260
8299
  // 49
8261
8300
  [50 /* InventorySlot */]: InventorySlotPacket,
8262
8301
  // 50
8302
+ [56 /* BlockActorData */]: BlockActorDataPacket,
8303
+ // 56
8263
8304
  [58 /* LevelChunk */]: LevelChunkPacket,
8264
8305
  // 58
8265
8306
  [59 /* SetCommandsEnabled */]: SetCommandsEnabledPacket,
@@ -8395,8 +8436,8 @@ function getPacketId(buffer) {
8395
8436
  }
8396
8437
 
8397
8438
  // src/constants/index.ts
8398
- var PROTOCOL_VERSION = 671;
8399
- var MINECRAFT_VERSION = "1.20.80";
8439
+ var PROTOCOL_VERSION = 685;
8440
+ var MINECRAFT_VERSION = "1.21.0";
8400
8441
  var MINECRAFT_TICK_SPEED = 50;
8401
8442
  // Annotate the CommonJS export names for ESM import in node:
8402
8443
  0 && (module.exports = {
@@ -8419,6 +8460,7 @@ var MINECRAFT_TICK_SPEED = 50;
8419
8460
  AvailableCommandsPacket,
8420
8461
  BehaviorPackInfo,
8421
8462
  BiomeDefinitionListPacket,
8463
+ BlockActorDataPacket,
8422
8464
  BlockCoordinates,
8423
8465
  BlockFace,
8424
8466
  BlockPickRequestPacket,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenityjs/protocol",
3
- "version": "0.3.4-beta-20240613001837",
3
+ "version": "0.3.4-beta-20240613185708",
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.3.4-beta-20240613001837",
22
- "@serenityjs/jest-presets": "0.3.4-beta-20240613001837",
23
- "@serenityjs/typescript-config": "0.3.4-beta-20240613001837",
21
+ "@serenityjs/eslint-config": "0.3.4-beta-20240613185708",
22
+ "@serenityjs/jest-presets": "0.3.4-beta-20240613185708",
23
+ "@serenityjs/typescript-config": "0.3.4-beta-20240613185708",
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.5.2",
32
- "@serenityjs/nbt": "0.3.4-beta-20240613001837",
33
- "@serenityjs/raknet": "0.3.4-beta-20240613001837"
32
+ "@serenityjs/nbt": "0.3.4-beta-20240613185708",
33
+ "@serenityjs/raknet": "0.3.4-beta-20240613185708"
34
34
  }
35
35
  }