Improve labeled chest caching interactions
This commit is contained in:
@@ -4,7 +4,9 @@ import time
|
||||
from contextlib import nullcontext
|
||||
|
||||
from minecraft.networking.packets import Packet
|
||||
from minecraft.networking.types import Float, Long, VarInt, VarLong
|
||||
from minecraft.networking.types import (
|
||||
Float, Long, UnsignedByte, VarInt, VarLong,
|
||||
)
|
||||
from minecraft.networking.modern import (
|
||||
ChatCommand, ClientboundPlayerChatPacket, ServerboundChatPacket, SystemChat,
|
||||
)
|
||||
@@ -29,6 +31,13 @@ class UpdateTimePacket(Packet):
|
||||
})
|
||||
|
||||
|
||||
class PlayerInputPacket(Packet):
|
||||
"""Serverbound key state, including sneak for container-safe placement."""
|
||||
id = 0x2B
|
||||
packet_name = 'player input'
|
||||
definition = [{'flags': UnsignedByte}]
|
||||
|
||||
|
||||
class PlayerCommandPacket(Packet):
|
||||
"""Client player-command packet; action 0 stops sleeping (protocol 777)."""
|
||||
id = 0x2A
|
||||
|
||||
Reference in New Issue
Block a user