@serenityjs/protocol 0.4.0-beta-20240714051237 → 0.4.0-beta-20240715031808
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 +350 -246
- package/dist/index.js +688 -600
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare enum Packet {
|
|
|
31
31
|
Interact = 33,// 33
|
|
32
32
|
BlockPickRequest = 34,// 34
|
|
33
33
|
PlayerAction = 36,// 36
|
|
34
|
-
|
|
34
|
+
SetActorData = 39,// 39
|
|
35
35
|
SetActorMotion = 40,// 40
|
|
36
36
|
Animate = 44,// 44
|
|
37
37
|
Respawn = 45,// 45
|
|
@@ -541,219 +541,6 @@ declare enum AttributeName {
|
|
|
541
541
|
ZombieSpawnReinforcements = "minecraft:zombie.spawn_reinforcements"
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
declare enum MetadataKey {
|
|
545
|
-
Flags = 0,
|
|
546
|
-
Health = 1,
|
|
547
|
-
Variant = 2,
|
|
548
|
-
Color = 3,
|
|
549
|
-
Nametag = 4,
|
|
550
|
-
OwnerEID = 5,
|
|
551
|
-
TargetEID = 6,
|
|
552
|
-
Air = 7,
|
|
553
|
-
PotionColor = 8,
|
|
554
|
-
PotionAmbient = 9,
|
|
555
|
-
JumpDuration = 10,
|
|
556
|
-
HurtTime = 11,
|
|
557
|
-
HurtDirection = 12,
|
|
558
|
-
PaddleTimeLeft = 13,
|
|
559
|
-
PaddleTimeRight = 14,
|
|
560
|
-
ExperienceValue = 15,
|
|
561
|
-
MinecartDisplayBlock = 16,
|
|
562
|
-
MinecartDisplayOffset = 17,
|
|
563
|
-
MinecartHasDisplay = 18,
|
|
564
|
-
OldSwell = 20,
|
|
565
|
-
SwellDirection = 21,
|
|
566
|
-
ChargeAmount = 22,
|
|
567
|
-
EndermanHeldRuntimeID = 23,
|
|
568
|
-
EntityAge = 24,
|
|
569
|
-
PlayerFlags = 26,
|
|
570
|
-
PlayerIndex = 27,
|
|
571
|
-
PlayerBedPositionBlockCoords = 28,
|
|
572
|
-
FireballPowerX = 29,
|
|
573
|
-
FireballPowerY = 30,
|
|
574
|
-
FireballPowerZ = 31,
|
|
575
|
-
AuxPower = 32,
|
|
576
|
-
FishX = 33,
|
|
577
|
-
FishZ = 34,
|
|
578
|
-
FishAngle = 35,
|
|
579
|
-
PotionAuxValue = 36,
|
|
580
|
-
LeadHolderEID = 37,
|
|
581
|
-
Scale = 38,
|
|
582
|
-
InteractiveTag = 39,
|
|
583
|
-
NPCSkinID = 40,
|
|
584
|
-
URLTag = 41,
|
|
585
|
-
MaxAirDataMaxAir = 42,
|
|
586
|
-
MarkVariant = 43,
|
|
587
|
-
ContainerType = 44,
|
|
588
|
-
ContainerBaseSize = 45,
|
|
589
|
-
ContainerExtraSlotsPerStrength = 46,
|
|
590
|
-
BlockTarget = 47,
|
|
591
|
-
WitherInvulnerableTicks = 48,
|
|
592
|
-
WitherTarget1 = 49,
|
|
593
|
-
WitherTarget2 = 50,
|
|
594
|
-
WitherTarget3 = 51,
|
|
595
|
-
AerialAttack = 52,
|
|
596
|
-
BoundingBoxWidth = 53,
|
|
597
|
-
BoundingBoxHeight = 54,
|
|
598
|
-
FuseLength = 55,
|
|
599
|
-
RiderSeatPositionVector3F = 56,
|
|
600
|
-
RiderRotationLocked = 57,
|
|
601
|
-
RiderMaxRotation = 58,
|
|
602
|
-
RiderMinRotation = 59,
|
|
603
|
-
RiderRotationOffset = 60,
|
|
604
|
-
AreaEffectCloudRadius = 61,
|
|
605
|
-
AreaEffectCloudWaiting = 62,
|
|
606
|
-
AreaEffectCloudParticleID = 63,
|
|
607
|
-
ShulkerPeekID = 64,
|
|
608
|
-
ShulkerAttachFace = 65,
|
|
609
|
-
ShulkerAttached = 66,
|
|
610
|
-
ShulkerAttachPos = 67,
|
|
611
|
-
TradingPlayerEID = 68,
|
|
612
|
-
TradingCareer = 69,
|
|
613
|
-
HasCommandBlock = 70,
|
|
614
|
-
CommandBlockCommand = 71,
|
|
615
|
-
CommandBlockLastOutput = 72,
|
|
616
|
-
CommandBlockTrackOutput = 73,
|
|
617
|
-
ControllingRiderSeatNumber = 74,
|
|
618
|
-
Strength = 75,
|
|
619
|
-
MaxStrength = 76,
|
|
620
|
-
SpellCastingColor = 77,
|
|
621
|
-
LimitedLife = 78,
|
|
622
|
-
ArmorStandPoseIndex = 79,
|
|
623
|
-
EnderCrystalTimeOffset = 80,
|
|
624
|
-
AlwaysShowNametag = 81,
|
|
625
|
-
Color2 = 82,
|
|
626
|
-
NameAuthor = 83,
|
|
627
|
-
ScoreTag = 84,
|
|
628
|
-
BalloonAttachedEntity = 85,
|
|
629
|
-
PufferfishSize = 86,
|
|
630
|
-
BubbleTime = 87,
|
|
631
|
-
Agent = 88,
|
|
632
|
-
SittingAmount = 89,
|
|
633
|
-
SittingAmountPrevious = 90,
|
|
634
|
-
EatingCounter = 91,
|
|
635
|
-
FlagsExtended = 92,
|
|
636
|
-
LayingAmount = 93,
|
|
637
|
-
LayingAmountPrevious = 94,
|
|
638
|
-
Duration = 95,
|
|
639
|
-
SpawnTime = 96,
|
|
640
|
-
ChangeRate = 97,
|
|
641
|
-
ChangeOnPickup = 98,
|
|
642
|
-
PickupCount = 99,
|
|
643
|
-
InteractText = 100,
|
|
644
|
-
TradeTier = 101,
|
|
645
|
-
MaxTradeTier = 102,
|
|
646
|
-
TradeExperience = 103,
|
|
647
|
-
SkinID = 104,
|
|
648
|
-
SpawningFrames = 105,
|
|
649
|
-
CommandBlockTickDelay = 106,
|
|
650
|
-
CommandBlockExecuteOnFirstTick = 107,
|
|
651
|
-
AmbientSoundInterval = 108,
|
|
652
|
-
AmbientSoundIntervalRange = 109,
|
|
653
|
-
AmbientSoundEventName = 110,
|
|
654
|
-
FallDamageMultiplier = 111,
|
|
655
|
-
NameRawText = 112,
|
|
656
|
-
CanRideTarget = 113,
|
|
657
|
-
LowTierCuredDiscount = 114,
|
|
658
|
-
HighTierCuredDiscount = 115,
|
|
659
|
-
NearbyCuredDiscount = 116,
|
|
660
|
-
NearbyCuredDiscountTimestamp = 117,
|
|
661
|
-
Hitbox = 118,
|
|
662
|
-
IsBuoyant = 119,
|
|
663
|
-
BaseRuntimeID = 120,
|
|
664
|
-
FreezingEffectStrength = 121,
|
|
665
|
-
BuoyancyData = 122,
|
|
666
|
-
GoatHornCount = 123,
|
|
667
|
-
UpdateProperties = 124,
|
|
668
|
-
MovementSoundDistanceOffset = 125,
|
|
669
|
-
HeartbeatIntervalTicks = 126,
|
|
670
|
-
HeartbeatSoundEvent = 127,
|
|
671
|
-
PlayerLastDeathPosition = 128,
|
|
672
|
-
PlayerLastDeathDimension = 129,
|
|
673
|
-
PlayerHasDied = 130,
|
|
674
|
-
CollisionBox = 131
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
declare enum MetadataType {
|
|
678
|
-
Byte = 0,
|
|
679
|
-
Short = 1,
|
|
680
|
-
Int = 2,
|
|
681
|
-
Float = 3,
|
|
682
|
-
String = 4,
|
|
683
|
-
Compound = 5,
|
|
684
|
-
Vec3int = 6,
|
|
685
|
-
Long = 7,
|
|
686
|
-
Vec3f = 8
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
declare enum MetadataFlags {
|
|
690
|
-
OnFire = 0,
|
|
691
|
-
Sneaking = 1,
|
|
692
|
-
Riding = 2,
|
|
693
|
-
Sprinting = 3,
|
|
694
|
-
Action = 4,
|
|
695
|
-
Invisible = 5,
|
|
696
|
-
Tempted = 6,
|
|
697
|
-
InLove = 7,
|
|
698
|
-
Saddled = 8,
|
|
699
|
-
Powered = 9,
|
|
700
|
-
Ignited = 10,
|
|
701
|
-
Baby = 11,
|
|
702
|
-
Converting = 12,
|
|
703
|
-
Critical = 13,
|
|
704
|
-
CanShowNametag = 14,
|
|
705
|
-
AlwaysShowNametag = 15,
|
|
706
|
-
NoAI = 16,
|
|
707
|
-
Silent = 17,
|
|
708
|
-
WallClimbing = 18,
|
|
709
|
-
CanClimb = 19,
|
|
710
|
-
Swimmer = 20,
|
|
711
|
-
CanFly = 21,
|
|
712
|
-
Walker = 22,
|
|
713
|
-
Resting = 23,
|
|
714
|
-
Sitting = 24,
|
|
715
|
-
Angry = 25,
|
|
716
|
-
Interested = 26,
|
|
717
|
-
Charged = 27,
|
|
718
|
-
Tamed = 28,
|
|
719
|
-
Orphaned = 29,
|
|
720
|
-
Leashed = 30,
|
|
721
|
-
Sheared = 31,
|
|
722
|
-
Gliding = 32,
|
|
723
|
-
Elder = 33,
|
|
724
|
-
Moving = 34,
|
|
725
|
-
Breathing = 35,
|
|
726
|
-
Chested = 36,
|
|
727
|
-
Stackable = 37,
|
|
728
|
-
ShowBase = 38,
|
|
729
|
-
Rearing = 39,
|
|
730
|
-
Vibrating = 40,
|
|
731
|
-
Idling = 41,
|
|
732
|
-
EvokerSpell = 42,
|
|
733
|
-
ChargeAttack = 43,
|
|
734
|
-
WASDControlled = 44,
|
|
735
|
-
CanPowerJump = 45,
|
|
736
|
-
CanDash = 46,
|
|
737
|
-
Linger = 47,
|
|
738
|
-
HasCollision = 48,
|
|
739
|
-
AffectedByGravity = 49,
|
|
740
|
-
FireImmune = 50,
|
|
741
|
-
Dancing = 51,
|
|
742
|
-
Enchanted = 52,
|
|
743
|
-
ShowTridentRope = 53,// Trident show an animated rope when enchanted with loyalty after they are thrown and return to their owner. To be combined with data_owner_eid.
|
|
744
|
-
ContainerPrivate = 54,// Inventory is private, doesn't drop contents when killed if true.
|
|
745
|
-
Transforming = 55,
|
|
746
|
-
SpinAttack = 56,
|
|
747
|
-
Swimming = 57,
|
|
748
|
-
Bribed = 58,// Dolphins have this set when they go to find treasure for the player.
|
|
749
|
-
Pregnant = 59,
|
|
750
|
-
LayingEgg = 60,
|
|
751
|
-
RiderCanPick = 61,// ???
|
|
752
|
-
TransitionSitting = 62,
|
|
753
|
-
Eating = 63,
|
|
754
|
-
LayingDown = 64
|
|
755
|
-
}
|
|
756
|
-
|
|
757
544
|
declare enum ComplexInventoryTransaction {
|
|
758
545
|
NormalTransaction = 0,
|
|
759
546
|
InventoryMismatch = 1,
|
|
@@ -1818,6 +1605,278 @@ declare enum InventoryRightTab {
|
|
|
1818
1605
|
ARMOR = 3
|
|
1819
1606
|
}
|
|
1820
1607
|
|
|
1608
|
+
declare enum ActorDataId {
|
|
1609
|
+
Reserved0 = 0,
|
|
1610
|
+
StructuralIntegrity = 1,
|
|
1611
|
+
Variant = 2,
|
|
1612
|
+
ColorIndex = 3,
|
|
1613
|
+
Name = 4,
|
|
1614
|
+
Owner = 5,
|
|
1615
|
+
Target = 6,
|
|
1616
|
+
AirSupply = 7,
|
|
1617
|
+
EffectColor = 8,
|
|
1618
|
+
Reserved009 = 9,
|
|
1619
|
+
Reserved010 = 10,
|
|
1620
|
+
Hurt = 11,
|
|
1621
|
+
HurtDirection = 12,
|
|
1622
|
+
RowTimeLeft = 13,
|
|
1623
|
+
RowTimeRight = 14,
|
|
1624
|
+
Value = 15,
|
|
1625
|
+
DisplayTileRuntimeId = 16,
|
|
1626
|
+
DisplayOffset = 17,
|
|
1627
|
+
CustomDisplay = 18,
|
|
1628
|
+
Swell = 19,
|
|
1629
|
+
OldSwell = 20,
|
|
1630
|
+
SwellDirection = 21,
|
|
1631
|
+
ChargeAmount = 22,
|
|
1632
|
+
CarryBlockRuntimeId = 23,
|
|
1633
|
+
ClientEvent = 24,
|
|
1634
|
+
UsingItem = 25,
|
|
1635
|
+
PlayerFlags = 26,
|
|
1636
|
+
PlayerIndex = 27,
|
|
1637
|
+
BedPosition = 28,
|
|
1638
|
+
XPower = 29,
|
|
1639
|
+
YPower = 30,
|
|
1640
|
+
ZPower = 31,
|
|
1641
|
+
AuxPower = 32,
|
|
1642
|
+
Fishx = 33,
|
|
1643
|
+
Fishz = 34,
|
|
1644
|
+
Fishangle = 35,
|
|
1645
|
+
AuxValueData = 36,
|
|
1646
|
+
LeashHolder = 37,
|
|
1647
|
+
Reserved038 = 38,
|
|
1648
|
+
HasNpc = 39,
|
|
1649
|
+
NpcData = 40,
|
|
1650
|
+
Actions = 41,
|
|
1651
|
+
AirSupplyMax = 42,
|
|
1652
|
+
MarkVariant = 43,
|
|
1653
|
+
ContainerType = 44,
|
|
1654
|
+
ContainerSize = 45,
|
|
1655
|
+
ContainerStrengthModifier = 46,
|
|
1656
|
+
BlockTarget = 47,
|
|
1657
|
+
Inv = 48,
|
|
1658
|
+
TargetA = 49,
|
|
1659
|
+
TargetB = 50,
|
|
1660
|
+
TargetC = 51,
|
|
1661
|
+
AerialAttack = 52,
|
|
1662
|
+
Reserved053 = 53,
|
|
1663
|
+
Reserved054 = 54,
|
|
1664
|
+
FuseTime = 55,
|
|
1665
|
+
Reserved056 = 56,
|
|
1666
|
+
SeatLockPassengerRotation = 57,
|
|
1667
|
+
SeatLockPassengerRotationDegrees = 58,
|
|
1668
|
+
SeatRotationOffset = 59,
|
|
1669
|
+
SeatRotationOffsetDegrees = 60,
|
|
1670
|
+
DataRadius = 61,
|
|
1671
|
+
DataWaiting = 62,
|
|
1672
|
+
DataParticle = 63,
|
|
1673
|
+
PeekId = 64,
|
|
1674
|
+
AttachFace = 65,
|
|
1675
|
+
Attached = 66,
|
|
1676
|
+
AttachPos = 67,
|
|
1677
|
+
TradeTarget = 68,
|
|
1678
|
+
Career = 69,
|
|
1679
|
+
HasCommandBlock = 70,
|
|
1680
|
+
CommandName = 71,
|
|
1681
|
+
LastCommandOutput = 72,
|
|
1682
|
+
TrackCommandOutput = 73,
|
|
1683
|
+
Reserved074 = 74,
|
|
1684
|
+
Strength = 75,
|
|
1685
|
+
StrengthMax = 76,
|
|
1686
|
+
DataSpellCastingColor = 77,
|
|
1687
|
+
DataLifetimeTicks = 78,
|
|
1688
|
+
PoseIndex = 79,
|
|
1689
|
+
DataTickOffset = 80,
|
|
1690
|
+
NametagAlwaysShow = 81,
|
|
1691
|
+
Color2Index = 82,
|
|
1692
|
+
NameAuthor = 83,
|
|
1693
|
+
Score = 84,
|
|
1694
|
+
BalloonAnchor = 85,
|
|
1695
|
+
PuffedState = 86,
|
|
1696
|
+
BubbleTime = 87,
|
|
1697
|
+
Agent = 88,
|
|
1698
|
+
SittingAmount = 89,
|
|
1699
|
+
SittingAmountPrevious = 90,
|
|
1700
|
+
EatingCounter = 91,
|
|
1701
|
+
Reserved092 = 92,
|
|
1702
|
+
LayingAmount = 93,
|
|
1703
|
+
LayingAmountPrevious = 94,
|
|
1704
|
+
DataDuration = 95,
|
|
1705
|
+
DataSpawnTimeDeprecated = 96,
|
|
1706
|
+
DataChangeRate = 97,
|
|
1707
|
+
DataChangeOnPickup = 98,
|
|
1708
|
+
DataPickupCount = 99,
|
|
1709
|
+
InteractText = 100,
|
|
1710
|
+
TradeTier = 101,
|
|
1711
|
+
MaxTradeTier = 102,
|
|
1712
|
+
TradeExperience = 103,
|
|
1713
|
+
SkinId = 104,
|
|
1714
|
+
SpawningFrames = 105,
|
|
1715
|
+
CommandBlockTickDelay = 106,
|
|
1716
|
+
CommandBlockExecuteOnFirstTick = 107,
|
|
1717
|
+
AmbientSoundInterval = 108,
|
|
1718
|
+
AmbientSoundIntervalRange = 109,
|
|
1719
|
+
AmbientSoundEventName = 110,
|
|
1720
|
+
FallDamageMultiplier = 111,
|
|
1721
|
+
NameRawText = 112,
|
|
1722
|
+
CanRideTarget = 113,
|
|
1723
|
+
LowTierCuredTradeDiscount = 114,
|
|
1724
|
+
HighTierCuredTradeDiscount = 115,
|
|
1725
|
+
NearbyCuredTradeDiscount = 116,
|
|
1726
|
+
NearbyCuredDiscountTimeStamp = 117,
|
|
1727
|
+
Hitbox = 118,
|
|
1728
|
+
IsBuoyant = 119,
|
|
1729
|
+
FreezingEffectStrength = 120,
|
|
1730
|
+
BuoyancyData = 121,
|
|
1731
|
+
GoatHornCount = 122,
|
|
1732
|
+
BaseRuntimeId = 123,
|
|
1733
|
+
MovementSoundDistanceOffset = 124,
|
|
1734
|
+
HeartbeatIntervalTicks = 125,
|
|
1735
|
+
HeartbeatSoundEvent = 126,
|
|
1736
|
+
PlayerLastDeathPos = 127,
|
|
1737
|
+
PlayerLastDeathDimension = 128,
|
|
1738
|
+
PlayerHasDied = 129,
|
|
1739
|
+
CollisionBox = 130,
|
|
1740
|
+
VisibleMobEffects = 131,
|
|
1741
|
+
Count = 132
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
declare enum ActorFlag {
|
|
1745
|
+
Unknown = -1,
|
|
1746
|
+
OnFire = 0,
|
|
1747
|
+
Sneaking = 1,
|
|
1748
|
+
Riding = 2,
|
|
1749
|
+
Sprinting = 3,
|
|
1750
|
+
UsingItem = 4,
|
|
1751
|
+
Invisible = 5,
|
|
1752
|
+
Tempted = 6,
|
|
1753
|
+
InLove = 7,
|
|
1754
|
+
Saddled = 8,
|
|
1755
|
+
Powered = 9,
|
|
1756
|
+
Ignited = 10,
|
|
1757
|
+
Baby = 11,
|
|
1758
|
+
Converting = 12,
|
|
1759
|
+
Critical = 13,
|
|
1760
|
+
CanShowName = 14,
|
|
1761
|
+
AlwaysShowName = 15,
|
|
1762
|
+
NoAi = 16,
|
|
1763
|
+
Silent = 17,
|
|
1764
|
+
WallClimbing = 18,
|
|
1765
|
+
CanClimb = 19,
|
|
1766
|
+
CanSwim = 20,
|
|
1767
|
+
CanFly = 21,
|
|
1768
|
+
CanWalk = 22,
|
|
1769
|
+
Resting = 23,
|
|
1770
|
+
Sitting = 24,
|
|
1771
|
+
Angry = 25,
|
|
1772
|
+
Interested = 26,
|
|
1773
|
+
Charged = 27,
|
|
1774
|
+
Tamed = 28,
|
|
1775
|
+
Orphaned = 29,
|
|
1776
|
+
Leashed = 30,
|
|
1777
|
+
Sheared = 31,
|
|
1778
|
+
Gliding = 32,
|
|
1779
|
+
Elder = 33,
|
|
1780
|
+
Moving = 34,
|
|
1781
|
+
Breathing = 35,
|
|
1782
|
+
Chested = 36,
|
|
1783
|
+
Stackable = 37,
|
|
1784
|
+
ShowBottom = 38,
|
|
1785
|
+
Standing = 39,
|
|
1786
|
+
Shaking = 40,
|
|
1787
|
+
Idling = 41,
|
|
1788
|
+
Casting = 42,
|
|
1789
|
+
Charging = 43,
|
|
1790
|
+
WasdControlled = 44,
|
|
1791
|
+
CanPowerJump = 45,
|
|
1792
|
+
CanDash = 46,
|
|
1793
|
+
Lingering = 47,
|
|
1794
|
+
HasCollision = 48,
|
|
1795
|
+
HasGravity = 49,
|
|
1796
|
+
FireImmune = 50,
|
|
1797
|
+
Dancing = 51,
|
|
1798
|
+
Enchanted = 52,
|
|
1799
|
+
ReturnTrident = 53,
|
|
1800
|
+
ContainerIsPrivate = 54,
|
|
1801
|
+
IsTransforming = 55,
|
|
1802
|
+
DamageNearbyMobs = 56,
|
|
1803
|
+
Swimming = 57,
|
|
1804
|
+
Bribed = 58,
|
|
1805
|
+
IsPregnant = 59,
|
|
1806
|
+
LayingEgg = 60,
|
|
1807
|
+
PassengerCanPick = 61,
|
|
1808
|
+
TransitionSitting = 62,
|
|
1809
|
+
Eating = 63,
|
|
1810
|
+
LayingDown = 64,
|
|
1811
|
+
Sneezing = 65,
|
|
1812
|
+
Trusting = 66,
|
|
1813
|
+
Rolling = 67,
|
|
1814
|
+
Scared = 68,
|
|
1815
|
+
InScaffolding = 69,
|
|
1816
|
+
OverScaffolding = 70,
|
|
1817
|
+
DescendThroughBlock = 71,
|
|
1818
|
+
Blocking = 72,
|
|
1819
|
+
TransitionBlocking = 73,
|
|
1820
|
+
BlockedUsingShield = 74,
|
|
1821
|
+
BlockedUsingDamagedShield = 75,
|
|
1822
|
+
Sleeping = 76,
|
|
1823
|
+
WantsToWake = 77,
|
|
1824
|
+
TradeInterest = 78,
|
|
1825
|
+
DoorBreaker = 79,
|
|
1826
|
+
BreakingObstruction = 80,
|
|
1827
|
+
DoorOpener = 81,
|
|
1828
|
+
IsIllagerCaptain = 82,
|
|
1829
|
+
Stunned = 83,
|
|
1830
|
+
Roaring = 84,
|
|
1831
|
+
DelayedAttack = 85,
|
|
1832
|
+
IsAvoidingMobs = 86,
|
|
1833
|
+
IsAvoidingBlock = 87,
|
|
1834
|
+
FacingTargetToRangeAttack = 88,
|
|
1835
|
+
HiddenWhenInvisible = 89,
|
|
1836
|
+
IsInUi = 90,
|
|
1837
|
+
Stalking = 91,
|
|
1838
|
+
Emoting = 92,
|
|
1839
|
+
Celebrating = 93,
|
|
1840
|
+
Admiring = 94,
|
|
1841
|
+
CelebratingSpecial = 95,
|
|
1842
|
+
OutOfControl = 96,
|
|
1843
|
+
RamAttack = 97,
|
|
1844
|
+
PlayingDead = 98,
|
|
1845
|
+
InAscendableBlock = 99,
|
|
1846
|
+
OverDescendableBlock = 100,
|
|
1847
|
+
Croaking = 101,
|
|
1848
|
+
EatMob = 102,
|
|
1849
|
+
JumpGoalJump = 103,
|
|
1850
|
+
Emerging = 104,
|
|
1851
|
+
Sniffing = 105,
|
|
1852
|
+
Digging = 106,
|
|
1853
|
+
SonicBoom = 107,
|
|
1854
|
+
HasDashCooldown = 108,
|
|
1855
|
+
PushTowardsClosestSpace = 109,
|
|
1856
|
+
Deprecated1 = 110,
|
|
1857
|
+
Deprecated2 = 111,
|
|
1858
|
+
Deprecated3 = 112,
|
|
1859
|
+
Searching = 113,
|
|
1860
|
+
Crawling = 114,
|
|
1861
|
+
TimerFlag1 = 115,
|
|
1862
|
+
TimerFlag2 = 116,
|
|
1863
|
+
TimerFlag3 = 117,
|
|
1864
|
+
BodyRotationBlocked = 118,
|
|
1865
|
+
Count = 119
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
declare enum ActorDataType {
|
|
1869
|
+
Byte = 0,
|
|
1870
|
+
Short = 1,
|
|
1871
|
+
Int = 2,
|
|
1872
|
+
Float = 3,
|
|
1873
|
+
String = 4,
|
|
1874
|
+
CompoundTag = 5,
|
|
1875
|
+
BlockPos = 6,
|
|
1876
|
+
Long = 7,
|
|
1877
|
+
Vec3 = 8
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1821
1880
|
declare class LoginTokens extends DataType {
|
|
1822
1881
|
client: string;
|
|
1823
1882
|
identity: string;
|
|
@@ -2505,28 +2564,6 @@ declare class ChunkCoords extends DataType {
|
|
|
2505
2564
|
static unhash(hash: bigint): ChunkCoords;
|
|
2506
2565
|
}
|
|
2507
2566
|
|
|
2508
|
-
declare class MetadataDictionary extends DataType {
|
|
2509
|
-
flag?: MetadataFlags;
|
|
2510
|
-
key: MetadataKey;
|
|
2511
|
-
type: MetadataType;
|
|
2512
|
-
value: Vector3f | bigint | boolean | number | string;
|
|
2513
|
-
constructor(key: MetadataKey, type: MetadataType, value: Vector3f | bigint | boolean | number | string, flag?: MetadataFlags);
|
|
2514
|
-
static read(stream: BinaryStream): Array<MetadataDictionary>;
|
|
2515
|
-
static write(stream: BinaryStream, value: Array<MetadataDictionary>): void;
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
interface EntityPropertyData {
|
|
2519
|
-
index: number;
|
|
2520
|
-
value: number;
|
|
2521
|
-
}
|
|
2522
|
-
declare class EntityProperties extends DataType {
|
|
2523
|
-
floats: Array<EntityPropertyData>;
|
|
2524
|
-
ints: Array<EntityPropertyData>;
|
|
2525
|
-
constructor(floats: Array<EntityPropertyData>, ints: Array<EntityPropertyData>);
|
|
2526
|
-
static read(stream: BinaryStream): EntityProperties;
|
|
2527
|
-
static write(stream: BinaryStream, value: EntityProperties): void;
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
2567
|
declare class Links extends DataType {
|
|
2531
2568
|
immediate: boolean;
|
|
2532
2569
|
riddenEntityId: bigint;
|
|
@@ -3365,6 +3402,53 @@ declare class Color extends DataType {
|
|
|
3365
3402
|
static fromInt(color: number): Color;
|
|
3366
3403
|
}
|
|
3367
3404
|
|
|
3405
|
+
declare class DataItem<T = unknown> extends DataType {
|
|
3406
|
+
/**
|
|
3407
|
+
* The identifier of the data item.
|
|
3408
|
+
*/
|
|
3409
|
+
readonly identifier: ActorDataId;
|
|
3410
|
+
/**
|
|
3411
|
+
* The type of the data item.
|
|
3412
|
+
*/
|
|
3413
|
+
readonly type: ActorDataType;
|
|
3414
|
+
/**
|
|
3415
|
+
* The value of the data item.
|
|
3416
|
+
*/
|
|
3417
|
+
readonly value: T;
|
|
3418
|
+
/**
|
|
3419
|
+
* Creates a new data item.
|
|
3420
|
+
* @param identifier The identifier of the data item.
|
|
3421
|
+
* @param type The type of the data item.
|
|
3422
|
+
* @param value The value of the data item.
|
|
3423
|
+
*/
|
|
3424
|
+
constructor(identifier: ActorDataId, type: ActorDataType, value: T);
|
|
3425
|
+
static read(stream: BinaryStream): Array<DataItem>;
|
|
3426
|
+
static write(stream: BinaryStream, data: Array<DataItem>): void;
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
interface Data {
|
|
3430
|
+
index: number;
|
|
3431
|
+
value: number;
|
|
3432
|
+
}
|
|
3433
|
+
declare class PropertySyncData extends DataType {
|
|
3434
|
+
/**
|
|
3435
|
+
* The floats of the property sync data.
|
|
3436
|
+
*/
|
|
3437
|
+
readonly floats: Array<Data>;
|
|
3438
|
+
/**
|
|
3439
|
+
* The ints of the property sync data.
|
|
3440
|
+
*/
|
|
3441
|
+
readonly ints: Array<Data>;
|
|
3442
|
+
/**
|
|
3443
|
+
* Creates a new property sync data.
|
|
3444
|
+
* @param floats The floats of the property sync data.
|
|
3445
|
+
* @param ints The ints of the property sync data.
|
|
3446
|
+
*/
|
|
3447
|
+
constructor(floats: Array<Data>, ints: Array<Data>);
|
|
3448
|
+
static read(stream: BinaryStream): PropertySyncData;
|
|
3449
|
+
static write(stream: BinaryStream, value: PropertySyncData): void;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3368
3452
|
/**
|
|
3369
3453
|
* Represents a Minecraft Bedrock Edition data packet
|
|
3370
3454
|
*/
|
|
@@ -3386,8 +3470,8 @@ declare class AddEntityPacket extends DataPacket {
|
|
|
3386
3470
|
headYaw: number;
|
|
3387
3471
|
bodyYaw: number;
|
|
3388
3472
|
attributes: Array<EntityAttributes>;
|
|
3389
|
-
|
|
3390
|
-
properties:
|
|
3473
|
+
data: Array<DataItem>;
|
|
3474
|
+
properties: PropertySyncData;
|
|
3391
3475
|
links: Array<Links>;
|
|
3392
3476
|
}
|
|
3393
3477
|
|
|
@@ -3397,7 +3481,7 @@ declare class AddItemActorPacket extends DataPacket {
|
|
|
3397
3481
|
item: NetworkItemStackDescriptor;
|
|
3398
3482
|
position: Vector3f;
|
|
3399
3483
|
velocity: Vector3f;
|
|
3400
|
-
|
|
3484
|
+
data: Array<DataItem>;
|
|
3401
3485
|
fromFishing: boolean;
|
|
3402
3486
|
}
|
|
3403
3487
|
|
|
@@ -3413,8 +3497,8 @@ declare class AddPlayerPacket extends DataPacket {
|
|
|
3413
3497
|
headYaw: number;
|
|
3414
3498
|
heldItem: NetworkItemStackDescriptor;
|
|
3415
3499
|
gamemode: Gamemode;
|
|
3416
|
-
|
|
3417
|
-
properties:
|
|
3500
|
+
data: Array<DataItem>;
|
|
3501
|
+
properties: PropertySyncData;
|
|
3418
3502
|
uniqueEntityId: bigint;
|
|
3419
3503
|
premissionLevel: PermissionLevel;
|
|
3420
3504
|
commandPermission: CommandPermissionLevel;
|
|
@@ -3749,11 +3833,31 @@ declare class SetCommandsEnabledPacket extends DataPacket {
|
|
|
3749
3833
|
enabled: boolean;
|
|
3750
3834
|
}
|
|
3751
3835
|
|
|
3752
|
-
declare class
|
|
3836
|
+
declare class SetActorDataPacket extends DataPacket {
|
|
3753
3837
|
runtimeEntityId: bigint;
|
|
3754
|
-
|
|
3755
|
-
properties:
|
|
3838
|
+
data: Array<DataItem>;
|
|
3839
|
+
properties: PropertySyncData;
|
|
3756
3840
|
tick: bigint;
|
|
3841
|
+
/**
|
|
3842
|
+
* The first set of flags of the actor.
|
|
3843
|
+
*/
|
|
3844
|
+
private flagKeyset1;
|
|
3845
|
+
/**
|
|
3846
|
+
* The second set of flags of the actor.
|
|
3847
|
+
*/
|
|
3848
|
+
private flagKeyset2;
|
|
3849
|
+
/**
|
|
3850
|
+
* Sets the flag of the actor.
|
|
3851
|
+
* @param flag The flag to set.
|
|
3852
|
+
* @param enabled Whether the flag should be enabled.
|
|
3853
|
+
*/
|
|
3854
|
+
setFlag(flag: ActorFlag, enabled: boolean): void;
|
|
3855
|
+
/**
|
|
3856
|
+
* Gets the flag of the actor.
|
|
3857
|
+
* @param flag The flag to get.
|
|
3858
|
+
* @returns Whether the flag is enabled.
|
|
3859
|
+
*/
|
|
3860
|
+
getFlag(flag: ActorFlag): boolean;
|
|
3757
3861
|
}
|
|
3758
3862
|
|
|
3759
3863
|
declare class SetLocalPlayerAsInitializedPacket extends DataPacket {
|
|
@@ -4070,7 +4174,7 @@ declare const Packets: {
|
|
|
4070
4174
|
33: typeof InteractPacket;
|
|
4071
4175
|
34: typeof BlockPickRequestPacket;
|
|
4072
4176
|
36: typeof PlayerActionPacket;
|
|
4073
|
-
39: typeof
|
|
4177
|
+
39: typeof SetActorDataPacket;
|
|
4074
4178
|
40: typeof SetActorMotionPacket;
|
|
4075
4179
|
44: typeof AnimatePacket;
|
|
4076
4180
|
45: typeof RespawnPacket;
|
|
@@ -4150,4 +4254,4 @@ declare const PROTOCOL_VERSION = 686;
|
|
|
4150
4254
|
declare const MINECRAFT_VERSION = "1.21.2";
|
|
4151
4255
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
4152
4256
|
|
|
4153
|
-
export { type AbilityFlag, AbilityLayerFlag, AbilityLayerType, AbilityLayers, AbilitySet, ActionIds, ActorEventIds, ActorEventPacket, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockActorDataPacket, BlockCoordinates, BlockFace, BlockPickRequestPacket, BlockProperties, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientboundCloseFormPacket, Color, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerId, ContainerName, ContainerOpenPacket, ContainerType, CreativeContentPacket, CreativeItems, DataPacket, DeathInfoPacket, DeathParameters, DeviceOS, Difficulty, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, type EncodedAbilityFlags, EntityAttributes,
|
|
4257
|
+
export { type AbilityFlag, AbilityLayerFlag, AbilityLayerType, AbilityLayers, AbilitySet, ActionIds, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockActorDataPacket, BlockCoordinates, BlockFace, BlockPickRequestPacket, BlockProperties, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientboundCloseFormPacket, Color, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerId, ContainerName, ContainerOpenPacket, ContainerType, CreativeContentPacket, CreativeItems, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DeviceOS, Difficulty, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, type EncodedAbilityFlags, EntityAttributes, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Framer, GameRuleType, GameRules, Gamemode, HUDElement, HUDElementId, HUDVisibility, InteractActions, InteractPacket, InteractPosition, 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, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MobEffectEvents, MobEffectPacket, 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, PlayerAuthInputData, PlayerAuthInputPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PostFixes, PropertySyncData, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, Rotation, ScoreActionType, ScoreEntry, ScoreEntryType, ScoreboardIdentity, ScoreboardIdentityAction, ScriptMessagePacket, SerializedSkin, ServerToClientHandshakePacket, SetActorDataPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, 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 };
|