docs: a more impressive packet
This commit is contained in:
parent
b3c641678a
commit
5e570eb30f
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ the whole Minecraft protocol from `0.30c` to `1.19.3` is compiled and available
|
||||||
feature flags to only include certain protocol versions are planned
|
feature flags to only include certain protocol versions are planned
|
||||||
all types and packets are instantiable and serializable on all supported protocols:
|
all types and packets are instantiable and serializable on all supported protocols:
|
||||||
```py
|
```py
|
||||||
from aiocraft.proto import PacketArmAnimation
|
from aiocraft.proto.play.serverbound import PacketPosition
|
||||||
|
|
||||||
a_packet = PacketArmAnimation(hand=0)
|
a_packet = PacketPosition(x=-4.0, y=64.0, z=10.5, onGround=True)
|
||||||
await client.dispatcher.write(a_packet)
|
await client.dispatcher.write(a_packet)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue