@serenityjs/protocol 0.5.2 → 0.6.0-beta-20241002232459
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 +47 -37
- package/dist/index.js +753 -742
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -372,16 +372,16 @@ declare enum TextPacketType {
|
|
|
372
372
|
JsonAnnouncement = 11
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
declare enum
|
|
375
|
+
declare enum TitleType {
|
|
376
376
|
Clear = 0,
|
|
377
377
|
Reset = 1,
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
378
|
+
Title = 2,
|
|
379
|
+
Subtitle = 3,
|
|
380
|
+
Actionbar = 4,
|
|
381
|
+
Times = 5,
|
|
382
|
+
TitleTextObject = 6,
|
|
383
|
+
SubtitleTextObject = 7,
|
|
384
|
+
ActionbarTextObject = 8
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
declare enum InteractActions {
|
|
@@ -1352,25 +1352,27 @@ declare enum ScoreboardIdentityAction {
|
|
|
1352
1352
|
Clear = 1
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
|
-
declare enum
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1355
|
+
declare enum HudElement {
|
|
1356
|
+
PaperDoll = 0,
|
|
1357
|
+
Armor = 1,
|
|
1358
|
+
ToolTips = 2,
|
|
1359
|
+
TouchControls = 3,
|
|
1360
|
+
Crosshair = 4,
|
|
1361
|
+
HotBar = 5,
|
|
1362
|
+
Health = 6,
|
|
1363
|
+
ProgressBar = 7,
|
|
1364
|
+
Hunger = 8,
|
|
1365
|
+
AirBubbles = 9,
|
|
1366
|
+
HorseHealth = 10,
|
|
1367
|
+
StatusEffects = 11,
|
|
1368
|
+
ItemText = 12,
|
|
1369
|
+
Count = 13
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
declare enum HudVisibility {
|
|
1373
|
+
Hide = 0,
|
|
1374
|
+
Reset = 1,
|
|
1375
|
+
Count = 2
|
|
1374
1376
|
}
|
|
1375
1377
|
|
|
1376
1378
|
declare enum Enchantment {
|
|
@@ -2423,7 +2425,7 @@ declare class Vector3f extends DataType implements IPosition {
|
|
|
2423
2425
|
distance(other: Vector3f): number;
|
|
2424
2426
|
/**
|
|
2425
2427
|
* Computes the absolute value of each coordinate of the 3D vector.
|
|
2426
|
-
* @
|
|
2428
|
+
* @returns the absolute value of this 3D vector.
|
|
2427
2429
|
*/
|
|
2428
2430
|
absolute(): Vector3f;
|
|
2429
2431
|
/**
|
|
@@ -3879,11 +3881,18 @@ declare class ScoreboardIdentity extends DataType {
|
|
|
3879
3881
|
static write(stream: BinaryStream, value: Array<ScoreboardIdentity>): void;
|
|
3880
3882
|
}
|
|
3881
3883
|
|
|
3882
|
-
declare class
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3884
|
+
declare class HudElementData extends DataType {
|
|
3885
|
+
/**
|
|
3886
|
+
* The element of the hud.
|
|
3887
|
+
*/
|
|
3888
|
+
readonly element: HudElement;
|
|
3889
|
+
/**
|
|
3890
|
+
* Creates a new hud element data.
|
|
3891
|
+
* @param element The element of the hud.
|
|
3892
|
+
*/
|
|
3893
|
+
constructor(element: HudElement);
|
|
3894
|
+
static read(stream: BinaryStream): Array<HudElementData>;
|
|
3895
|
+
static write(stream: BinaryStream, value: Array<HudElementData>): void;
|
|
3887
3896
|
}
|
|
3888
3897
|
|
|
3889
3898
|
declare class BossEventAdd extends DataType {
|
|
@@ -5568,13 +5577,14 @@ declare class SetPlayerGameTypePacket extends DataPacket {
|
|
|
5568
5577
|
}
|
|
5569
5578
|
|
|
5570
5579
|
declare class SetTitlePacket extends DataPacket {
|
|
5571
|
-
type:
|
|
5580
|
+
type: TitleType;
|
|
5572
5581
|
text: string;
|
|
5573
5582
|
fadeInTime: number;
|
|
5574
5583
|
stayTime: number;
|
|
5575
5584
|
fadeOutTime: number;
|
|
5576
5585
|
xuid: string;
|
|
5577
5586
|
platformOnlineId: string;
|
|
5587
|
+
filteredText: string;
|
|
5578
5588
|
}
|
|
5579
5589
|
|
|
5580
5590
|
declare class StartGamePacket extends DataPacket {
|
|
@@ -5740,8 +5750,8 @@ declare class TransferPacket extends DataPacket {
|
|
|
5740
5750
|
}
|
|
5741
5751
|
|
|
5742
5752
|
declare class SetHudPacket extends DataPacket {
|
|
5743
|
-
|
|
5744
|
-
visibility:
|
|
5753
|
+
elements: Array<HudElementData>;
|
|
5754
|
+
visibility: HudVisibility;
|
|
5745
5755
|
}
|
|
5746
5756
|
|
|
5747
5757
|
declare class TakeItemActorPacket extends DataPacket {
|
|
@@ -6149,4 +6159,4 @@ declare const PROTOCOL_VERSION = 729;
|
|
|
6149
6159
|
declare const MINECRAFT_VERSION = "1.21.30";
|
|
6150
6160
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
6151
6161
|
|
|
6152
|
-
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,
|
|
6162
|
+
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, HudElementData, 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, StopSoundPacket, StructureBlockUpdatePacket, StructureEditorData, StructureSettings, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleType, ToastRequestPacket, TransactionSourceType, TransferPacket, TriggerType, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, UpdateClientInputLocksPacket, VariableStringArray as VarStringArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
|