@serenityjs/protocol 0.4.2-beta-20240810040238 → 0.4.2-beta-20240810064204
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 +51 -23
- package/dist/index.js +1147 -1112
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -311,14 +311,14 @@ declare enum CommandParameterType {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
declare enum AbilityLayerType {
|
|
314
|
-
|
|
314
|
+
CustomCache = 0,
|
|
315
315
|
Base = 1,
|
|
316
316
|
Spectator = 2,
|
|
317
317
|
Commands = 3,
|
|
318
318
|
Editor = 4
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
declare enum
|
|
321
|
+
declare enum AbilityIndex {
|
|
322
322
|
Build = 0,
|
|
323
323
|
Mine = 1,
|
|
324
324
|
DoorsAndSwitches = 2,
|
|
@@ -654,7 +654,7 @@ declare enum ItemStackStatus {
|
|
|
654
654
|
Error = 1
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
declare enum
|
|
657
|
+
declare enum AbilitySetId {
|
|
658
658
|
AttackMobs = "minecraft:ability.attack_mobs",
|
|
659
659
|
AttackPlayers = "minecraft:ability.attack_players",
|
|
660
660
|
Build = "minecraft:ability.build",
|
|
@@ -2715,24 +2715,52 @@ declare class PlayerListRecord extends DataType {
|
|
|
2715
2715
|
static write(stream: BinaryStream, records: Array<PlayerListRecord>, _endian: Endianness, action: PlayerListAction): void;
|
|
2716
2716
|
}
|
|
2717
2717
|
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2718
|
+
declare class AbilitySet extends DataType {
|
|
2719
|
+
/**
|
|
2720
|
+
* The ability index of the flag.
|
|
2721
|
+
*/
|
|
2722
|
+
readonly ability: AbilityIndex;
|
|
2723
|
+
/**
|
|
2724
|
+
* The value of the flag.
|
|
2725
|
+
*/
|
|
2726
|
+
readonly value: boolean;
|
|
2727
|
+
/**
|
|
2728
|
+
* Creates a new ability flag.
|
|
2729
|
+
* @param ability The ability index of the flag.
|
|
2730
|
+
* @param value The value of the flag
|
|
2731
|
+
*/
|
|
2732
|
+
constructor(ability: AbilityIndex, value: boolean);
|
|
2733
|
+
static read(stream: BinaryStream): Array<AbilitySet>;
|
|
2734
|
+
static write(stream: BinaryStream, flags: Array<AbilitySet>): void;
|
|
2725
2735
|
}
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
+
|
|
2737
|
+
declare class AbilityLayer extends DataType {
|
|
2738
|
+
/**
|
|
2739
|
+
* The type of the layer.
|
|
2740
|
+
*/
|
|
2741
|
+
readonly type: AbilityLayerType;
|
|
2742
|
+
/**
|
|
2743
|
+
* The abilities of the layer.
|
|
2744
|
+
*/
|
|
2745
|
+
readonly abilities: Array<AbilitySet>;
|
|
2746
|
+
/**
|
|
2747
|
+
* The fly speed of the layer.
|
|
2748
|
+
*/
|
|
2749
|
+
readonly flySpeed: number;
|
|
2750
|
+
/**
|
|
2751
|
+
* The walk speed of the layer.
|
|
2752
|
+
*/
|
|
2753
|
+
readonly walkSpeed: number;
|
|
2754
|
+
/**
|
|
2755
|
+
* Creates a new ability layer.
|
|
2756
|
+
* @param type The type of the layer.
|
|
2757
|
+
* @param abilities The abilities of the layer.
|
|
2758
|
+
* @param flySpeed The fly speed of the layer.
|
|
2759
|
+
* @param walkSpeed The walk speed of the layer.
|
|
2760
|
+
*/
|
|
2761
|
+
constructor(type: AbilityLayerType, abilities: Array<AbilitySet>, flySpeed: number, walkSpeed: number);
|
|
2762
|
+
static read(stream: BinaryStream): Array<AbilityLayer>;
|
|
2763
|
+
static write(stream: BinaryStream, value: Array<AbilityLayer>): void;
|
|
2736
2764
|
}
|
|
2737
2765
|
|
|
2738
2766
|
declare class TextSource extends DataType {
|
|
@@ -4367,7 +4395,7 @@ declare class AddPlayerPacket extends DataPacket {
|
|
|
4367
4395
|
uniqueEntityId: bigint;
|
|
4368
4396
|
premissionLevel: PermissionLevel;
|
|
4369
4397
|
commandPermission: CommandPermissionLevel;
|
|
4370
|
-
abilities: Array<
|
|
4398
|
+
abilities: Array<AbilityLayer>;
|
|
4371
4399
|
links: Array<Links>;
|
|
4372
4400
|
deviceId: string;
|
|
4373
4401
|
deviceOS: DeviceOS;
|
|
@@ -4849,7 +4877,7 @@ declare class UpdateAbilitiesPacket extends DataPacket {
|
|
|
4849
4877
|
entityUniqueId: bigint;
|
|
4850
4878
|
permissionLevel: PermissionLevel;
|
|
4851
4879
|
commandPersmissionLevel: CommandPermissionLevel;
|
|
4852
|
-
abilities: Array<
|
|
4880
|
+
abilities: Array<AbilityLayer>;
|
|
4853
4881
|
}
|
|
4854
4882
|
|
|
4855
4883
|
declare class UpdateAdventureSettingsPacket extends DataPacket {
|
|
@@ -5207,4 +5235,4 @@ declare const PROTOCOL_VERSION = 686;
|
|
|
5207
5235
|
declare const MINECRAFT_VERSION = "1.21.2";
|
|
5208
5236
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
5209
5237
|
|
|
5210
|
-
export {
|
|
5238
|
+
export { AbilityIndex, AbilityLayer, AbilityLayerType, AbilitySet, AbilitySetId, ActionIds, ActorDamageCause, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockActorDataPacket, BlockCoordinates, 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, 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, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, EntityAttributes, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Framer, GameRuleType, GameRules, Gamemode, HUDElement, HUDElementId, HUDVisibility, type IdentityData, InteractActions, InteractPacket, InteractPosition, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, type ItemStackAction, ItemStackActionType, type ItemStackContainer, ItemStackRequestPacket, ItemStackRequests, 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, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAuthInputData, PlayerAuthInputPacket, 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, 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, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, StackRequestSlotInfo, StartGamePacket, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, VariableStringArray as VarStringArray, VarintArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
|