@serenityjs/protocol 0.5.1-beta-20240915214413 → 0.5.1-beta-20240915233340

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
@@ -114,7 +114,8 @@ declare enum Packet {
114
114
  SetHud = 308,// 308
115
115
  AwardAchievement = 309,// 309
116
116
  ClientboundCloseForm = 310,// 310
117
- ServerboundLoadingScreenPacket = 312
117
+ ServerboundLoadingScreenPacket = 312,// 312
118
+ ServerboundDiagnosticPacket = 315
118
119
  }
119
120
 
120
121
  declare enum DisconnectReason {
@@ -671,26 +672,26 @@ declare enum ItemStackStatus {
671
672
  }
672
673
 
673
674
  declare enum AbilitySetId {
674
- AttackMobs = "minecraft:ability.attack_mobs",
675
- AttackPlayers = "minecraft:ability.attack_players",
676
- Build = "minecraft:ability.build",
677
- Count = "minecraft:ability.count",
678
- DoorsAndSwitches = "minecraft:ability.doors_and_switches",
679
- FlySpeed = "minecraft:ability.fly_speed",
680
- Flying = "minecraft:ability.flying",
681
- InstantBuild = "minecraft:ability.instant_build",
682
- Invulnerable = "minecraft:ability.invulnerable",
683
- Lightning = "minecraft:ability.lightning",
684
- MayFly = "minecraft:ability.may_fly",
685
- Mine = "minecraft:ability.mine",
686
- Muted = "minecraft:ability.muted",
687
- NoClip = "minecraft:ability.no_clip",
688
- OpenContainers = "minecraft:ability.open_containers",
689
- OperatorCommands = "minecraft:ability.operator_commands",
690
- PrivilegedBuilder = "minecraft:ability.privileged_builder",
691
- Teleport = "minecraft:ability.teleport",
692
- WalkSpeed = "minecraft:ability.walk_speed",
693
- WorldBuilder = "minecraft:ability.world_builder"
675
+ AttackMobs = "attack_mobs",
676
+ AttackPlayers = "attack_players",
677
+ Build = "build",
678
+ Count = "count",
679
+ DoorsAndSwitches = "doors_and_switches",
680
+ FlySpeed = "fly_speed",
681
+ Flying = "flying",
682
+ InstantBuild = "instant_build",
683
+ Invulnerable = "invulnerable",
684
+ Lightning = "lightning",
685
+ MayFly = "may_fly",
686
+ Mine = "mine",
687
+ Muted = "muted",
688
+ NoClip = "no_clip",
689
+ OpenContainers = "open_containers",
690
+ OperatorCommands = "operator_commands",
691
+ PrivilegedBuilder = "privileged_builder",
692
+ Teleport = "teleport",
693
+ WalkSpeed = "walk_speed",
694
+ WorldBuilder = "world_builder"
694
695
  }
695
696
 
696
697
  declare enum AnimateId {
@@ -5937,6 +5938,18 @@ declare class OnScreenTextureAnimationPacket extends DataPacket {
5937
5938
  effectId: EffectType;
5938
5939
  }
5939
5940
 
5941
+ declare class ServerboundDiagnosticsPacket extends DataPacket {
5942
+ fps: number;
5943
+ serverSimTickTime: number;
5944
+ clientSimTickTime: number;
5945
+ beginFrameTime: number;
5946
+ inputTime: number;
5947
+ renderTime: number;
5948
+ endFrameTime: number;
5949
+ remainderTimePercent: number;
5950
+ unaccountedTimePercent: number;
5951
+ }
5952
+
5940
5953
  declare const Packets: {
5941
5954
  1: typeof LoginPacket;
5942
5955
  2: typeof PlayStatusPacket;
@@ -6049,6 +6062,7 @@ declare const Packets: {
6049
6062
  309: typeof AwardAchievementPacket;
6050
6063
  310: typeof ClientboundCloseFormPacket;
6051
6064
  312: typeof ServerboundLoadingScreenPacketPacket;
6065
+ 315: typeof ServerboundDiagnosticsPacket;
6052
6066
  };
6053
6067
 
6054
6068
  declare class Framer {
@@ -6068,4 +6082,4 @@ declare const PROTOCOL_VERSION = 712;
6068
6082
  declare const MINECRAFT_VERSION = "1.21.20";
6069
6083
  declare const MINECRAFT_TICK_SPEED = 50;
6070
6084
 
6071
- export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActionIds, ActorDamageCause, ActorData, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockAction, BlockActorDataPacket, BlockCoordinates, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, 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, 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, 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 };
6085
+ 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, BlockCoordinates, BlockEventPacket, BlockEventType, BlockFace, BlockPickRequestPacket, 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, 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
@@ -289,6 +289,7 @@ __export(src_exports, {
289
289
  ScriptMessagePacket: () => ScriptMessagePacket,
290
290
  SerializedSkin: () => SerializedSkin,
291
291
  ServerToClientHandshakePacket: () => ServerToClientHandshakePacket,
292
+ ServerboundDiagnosticsPacket: () => ServerboundDiagnosticsPacket,
292
293
  ServerboundLoadingScreenPacketPacket: () => ServerboundLoadingScreenPacketPacket,
293
294
  ServerboundLoadingScreenType: () => ServerboundLoadingScreenType,
294
295
  SetActorDataPacket: () => SetActorDataPacket,
@@ -461,6 +462,7 @@ var Packet;
461
462
  Packet2[Packet2["AwardAchievement"] = 309] = "AwardAchievement";
462
463
  Packet2[Packet2["ClientboundCloseForm"] = 310] = "ClientboundCloseForm";
463
464
  Packet2[Packet2["ServerboundLoadingScreenPacket"] = 312] = "ServerboundLoadingScreenPacket";
465
+ Packet2[Packet2["ServerboundDiagnosticPacket"] = 315] = "ServerboundDiagnosticPacket";
464
466
  })(Packet || (Packet = {}));
465
467
 
466
468
  // src/enums/disconnect-reason.ts
@@ -1089,26 +1091,26 @@ var ItemStackStatus;
1089
1091
  // src/enums/ability-set.ts
1090
1092
  var AbilitySetId;
1091
1093
  (function(AbilitySetId2) {
1092
- AbilitySetId2["AttackMobs"] = "minecraft:ability.attack_mobs";
1093
- AbilitySetId2["AttackPlayers"] = "minecraft:ability.attack_players";
1094
- AbilitySetId2["Build"] = "minecraft:ability.build";
1095
- AbilitySetId2["Count"] = "minecraft:ability.count";
1096
- AbilitySetId2["DoorsAndSwitches"] = "minecraft:ability.doors_and_switches";
1097
- AbilitySetId2["FlySpeed"] = "minecraft:ability.fly_speed";
1098
- AbilitySetId2["Flying"] = "minecraft:ability.flying";
1099
- AbilitySetId2["InstantBuild"] = "minecraft:ability.instant_build";
1100
- AbilitySetId2["Invulnerable"] = "minecraft:ability.invulnerable";
1101
- AbilitySetId2["Lightning"] = "minecraft:ability.lightning";
1102
- AbilitySetId2["MayFly"] = "minecraft:ability.may_fly";
1103
- AbilitySetId2["Mine"] = "minecraft:ability.mine";
1104
- AbilitySetId2["Muted"] = "minecraft:ability.muted";
1105
- AbilitySetId2["NoClip"] = "minecraft:ability.no_clip";
1106
- AbilitySetId2["OpenContainers"] = "minecraft:ability.open_containers";
1107
- AbilitySetId2["OperatorCommands"] = "minecraft:ability.operator_commands";
1108
- AbilitySetId2["PrivilegedBuilder"] = "minecraft:ability.privileged_builder";
1109
- AbilitySetId2["Teleport"] = "minecraft:ability.teleport";
1110
- AbilitySetId2["WalkSpeed"] = "minecraft:ability.walk_speed";
1111
- AbilitySetId2["WorldBuilder"] = "minecraft:ability.world_builder";
1094
+ AbilitySetId2["AttackMobs"] = "attack_mobs";
1095
+ AbilitySetId2["AttackPlayers"] = "attack_players";
1096
+ AbilitySetId2["Build"] = "build";
1097
+ AbilitySetId2["Count"] = "count";
1098
+ AbilitySetId2["DoorsAndSwitches"] = "doors_and_switches";
1099
+ AbilitySetId2["FlySpeed"] = "fly_speed";
1100
+ AbilitySetId2["Flying"] = "flying";
1101
+ AbilitySetId2["InstantBuild"] = "instant_build";
1102
+ AbilitySetId2["Invulnerable"] = "invulnerable";
1103
+ AbilitySetId2["Lightning"] = "lightning";
1104
+ AbilitySetId2["MayFly"] = "may_fly";
1105
+ AbilitySetId2["Mine"] = "mine";
1106
+ AbilitySetId2["Muted"] = "muted";
1107
+ AbilitySetId2["NoClip"] = "no_clip";
1108
+ AbilitySetId2["OpenContainers"] = "open_containers";
1109
+ AbilitySetId2["OperatorCommands"] = "operator_commands";
1110
+ AbilitySetId2["PrivilegedBuilder"] = "privileged_builder";
1111
+ AbilitySetId2["Teleport"] = "teleport";
1112
+ AbilitySetId2["WalkSpeed"] = "walk_speed";
1113
+ AbilitySetId2["WorldBuilder"] = "world_builder";
1112
1114
  })(AbilitySetId || (AbilitySetId = {}));
1113
1115
 
1114
1116
  // src/enums/animate-id.ts
@@ -14490,6 +14492,74 @@ OnScreenTextureAnimationPacket = _ts_decorate111([
14490
14492
  (0, import_raknet234.Proto)(Packet.OnScreenTextureAnimation)
14491
14493
  ], OnScreenTextureAnimationPacket);
14492
14494
 
14495
+ // src/proto/data/serverbound-diagnostics.ts
14496
+ var import_raknet235 = require("@serenityjs/raknet");
14497
+ var import_binarystream142 = require("@serenityjs/binarystream");
14498
+ function _ts_decorate112(decorators, target, key, desc) {
14499
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14500
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14501
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14502
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
14503
+ }
14504
+ __name(_ts_decorate112, "_ts_decorate");
14505
+ function _ts_metadata105(k, v) {
14506
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
14507
+ }
14508
+ __name(_ts_metadata105, "_ts_metadata");
14509
+ var ServerboundDiagnosticsPacket = class ServerboundDiagnosticsPacket2 extends DataPacket {
14510
+ static {
14511
+ __name(this, "ServerboundDiagnosticsPacket");
14512
+ }
14513
+ fps;
14514
+ serverSimTickTime;
14515
+ clientSimTickTime;
14516
+ beginFrameTime;
14517
+ inputTime;
14518
+ renderTime;
14519
+ endFrameTime;
14520
+ remainderTimePercent;
14521
+ unaccountedTimePercent;
14522
+ };
14523
+ _ts_decorate112([
14524
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14525
+ _ts_metadata105("design:type", Number)
14526
+ ], ServerboundDiagnosticsPacket.prototype, "fps", void 0);
14527
+ _ts_decorate112([
14528
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14529
+ _ts_metadata105("design:type", Number)
14530
+ ], ServerboundDiagnosticsPacket.prototype, "serverSimTickTime", void 0);
14531
+ _ts_decorate112([
14532
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14533
+ _ts_metadata105("design:type", Number)
14534
+ ], ServerboundDiagnosticsPacket.prototype, "clientSimTickTime", void 0);
14535
+ _ts_decorate112([
14536
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14537
+ _ts_metadata105("design:type", Number)
14538
+ ], ServerboundDiagnosticsPacket.prototype, "beginFrameTime", void 0);
14539
+ _ts_decorate112([
14540
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14541
+ _ts_metadata105("design:type", Number)
14542
+ ], ServerboundDiagnosticsPacket.prototype, "inputTime", void 0);
14543
+ _ts_decorate112([
14544
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14545
+ _ts_metadata105("design:type", Number)
14546
+ ], ServerboundDiagnosticsPacket.prototype, "renderTime", void 0);
14547
+ _ts_decorate112([
14548
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14549
+ _ts_metadata105("design:type", Number)
14550
+ ], ServerboundDiagnosticsPacket.prototype, "endFrameTime", void 0);
14551
+ _ts_decorate112([
14552
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14553
+ _ts_metadata105("design:type", Number)
14554
+ ], ServerboundDiagnosticsPacket.prototype, "remainderTimePercent", void 0);
14555
+ _ts_decorate112([
14556
+ (0, import_raknet235.Serialize)(import_binarystream142.Float32, import_binarystream142.Endianness.Little),
14557
+ _ts_metadata105("design:type", Number)
14558
+ ], ServerboundDiagnosticsPacket.prototype, "unaccountedTimePercent", void 0);
14559
+ ServerboundDiagnosticsPacket = _ts_decorate112([
14560
+ (0, import_raknet235.Proto)(Packet.ServerboundDiagnosticPacket)
14561
+ ], ServerboundDiagnosticsPacket);
14562
+
14493
14563
  // src/proto/data/packets.ts
14494
14564
  var Packets = {
14495
14565
  [Packet.Login]: LoginPacket,
@@ -14602,18 +14672,19 @@ var Packets = {
14602
14672
  [Packet.SetHud]: SetHudPacket,
14603
14673
  [Packet.AwardAchievement]: AwardAchievementPacket,
14604
14674
  [Packet.ClientboundCloseForm]: ClientboundCloseFormPacket,
14605
- [Packet.ServerboundLoadingScreenPacket]: ServerboundLoadingScreenPacketPacket
14606
- // 312
14675
+ [Packet.ServerboundLoadingScreenPacket]: ServerboundLoadingScreenPacketPacket,
14676
+ [Packet.ServerboundDiagnosticPacket]: ServerboundDiagnosticsPacket
14677
+ // 315
14607
14678
  };
14608
14679
 
14609
14680
  // src/proto/framer.ts
14610
- var import_binarystream142 = require("@serenityjs/binarystream");
14681
+ var import_binarystream143 = require("@serenityjs/binarystream");
14611
14682
  var Framer = class Framer2 {
14612
14683
  static {
14613
14684
  __name(this, "Framer");
14614
14685
  }
14615
14686
  static unframe(buffer) {
14616
- const stream = new import_binarystream142.BinaryStream(buffer);
14687
+ const stream = new import_binarystream143.BinaryStream(buffer);
14617
14688
  const frames = [];
14618
14689
  do {
14619
14690
  const length = stream.readVarInt();
@@ -14623,7 +14694,7 @@ var Framer = class Framer2 {
14623
14694
  return frames;
14624
14695
  }
14625
14696
  static frame(...buffers) {
14626
- const stream = new import_binarystream142.BinaryStream();
14697
+ const stream = new import_binarystream143.BinaryStream();
14627
14698
  for (const buffer of buffers) {
14628
14699
  stream.writeVarInt(buffer.length);
14629
14700
  stream.writeBuffer(buffer);
@@ -14633,9 +14704,9 @@ var Framer = class Framer2 {
14633
14704
  };
14634
14705
 
14635
14706
  // src/proto/packet-id.ts
14636
- var import_binarystream143 = require("@serenityjs/binarystream");
14707
+ var import_binarystream144 = require("@serenityjs/binarystream");
14637
14708
  function getPacketId(buffer) {
14638
- const stream = import_binarystream143.BinaryStream.fromBuffer(buffer);
14709
+ const stream = import_binarystream144.BinaryStream.fromBuffer(buffer);
14639
14710
  return stream.readVarInt();
14640
14711
  }
14641
14712
  __name(getPacketId, "getPacketId");
@@ -14914,6 +14985,7 @@ var MINECRAFT_TICK_SPEED = 50;
14914
14985
  ScriptMessagePacket,
14915
14986
  SerializedSkin,
14916
14987
  ServerToClientHandshakePacket,
14988
+ ServerboundDiagnosticsPacket,
14917
14989
  ServerboundLoadingScreenPacketPacket,
14918
14990
  ServerboundLoadingScreenType,
14919
14991
  SetActorDataPacket,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenityjs/protocol",
3
- "version": "0.5.1-beta-20240915214413",
3
+ "version": "0.5.1-beta-20240915233340",
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-20240915214413",
22
- "@serenityjs/jest-presets": "0.5.1-beta-20240915214413",
23
- "@serenityjs/typescript-config": "0.5.1-beta-20240915214413",
21
+ "@serenityjs/eslint-config": "0.5.1-beta-20240915233340",
22
+ "@serenityjs/jest-presets": "0.5.1-beta-20240915233340",
23
+ "@serenityjs/typescript-config": "0.5.1-beta-20240915233340",
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-20240915214413",
33
- "@serenityjs/raknet": "0.5.1-beta-20240915214413"
32
+ "@serenityjs/nbt": "0.5.1-beta-20240915233340",
33
+ "@serenityjs/raknet": "0.5.1-beta-20240915233340"
34
34
  }
35
35
  }