@serenityjs/protocol 0.5.2-beta-20240922050841 → 0.5.2-beta-20240922061320

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
@@ -39,6 +39,7 @@ declare enum Packet {
39
39
  HurtArmor = 38,// 38
40
40
  SetActorData = 39,// 39
41
41
  SetActorMotion = 40,// 40
42
+ SetActorLink = 41,// 41
42
43
  Animate = 44,// 44
43
44
  Respawn = 45,// 45
44
45
  ContainerOpen = 46,// 46
@@ -2149,6 +2150,12 @@ declare enum InputLockFlags {
2149
2150
  Movement = 4
2150
2151
  }
2151
2152
 
2153
+ declare enum ActorLinkType {
2154
+ Remove = 0,
2155
+ Rider = 1,
2156
+ Passenger = 2
2157
+ }
2158
+
2152
2159
  declare class LoginTokens extends DataType {
2153
2160
  client: string;
2154
2161
  identity: string;
@@ -5101,6 +5108,18 @@ declare class BlockAction extends DataType {
5101
5108
  static read(stream: BinaryStream): BlockAction;
5102
5109
  }
5103
5110
 
5111
+ declare class ActorLink extends DataType {
5112
+ riddenEntityUnique: bigint;
5113
+ riderEntityUnique: bigint;
5114
+ type: ActorLinkType;
5115
+ immediate: boolean;
5116
+ riderInitiated: boolean;
5117
+ vehicleAngularVelocity: number;
5118
+ constructor(riddenEntityUnique: bigint, riderEntityUnique: bigint, type: ActorLinkType, immediate: boolean, riderInitiated: boolean, vehicleAngularVelocity: number);
5119
+ static write(stream: BinaryStream, value: ActorLink): void;
5120
+ static read(stream: BinaryStream): ActorLink;
5121
+ }
5122
+
5104
5123
  /**
5105
5124
  * Represents a Minecraft Bedrock Edition data packet
5106
5125
  */
@@ -5972,6 +5991,10 @@ declare class PlaySoundPacket extends DataPacket {
5972
5991
  pitch: number;
5973
5992
  }
5974
5993
 
5994
+ declare class SetActorLinkPacket extends DataPacket {
5995
+ link: ActorLink;
5996
+ }
5997
+
5975
5998
  declare const Packets: {
5976
5999
  1: typeof LoginPacket;
5977
6000
  2: typeof PlayStatusPacket;
@@ -6008,6 +6031,7 @@ declare const Packets: {
6008
6031
  38: typeof HurtArmorPacket;
6009
6032
  39: typeof SetActorDataPacket;
6010
6033
  40: typeof SetActorMotionPacket;
6034
+ 41: typeof SetActorLinkPacket;
6011
6035
  44: typeof AnimatePacket;
6012
6036
  45: typeof RespawnPacket;
6013
6037
  46: typeof ContainerOpenPacket;
@@ -6105,4 +6129,4 @@ declare const PROTOCOL_VERSION = 729;
6105
6129
  declare const MINECRAFT_VERSION = "1.21.30";
6106
6130
  declare const MINECRAFT_TICK_SPEED = 50;
6107
6131
 
6108
- 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 };
6132
+ export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActionIds, ActorDamageCause, ActorData, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, ActorLink, ActorLinkType, 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, SetActorLinkPacket, 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 };