Implement 26.3 food consumption
This commit is contained in:
@@ -38,6 +38,16 @@ class PlayerCommandPacket(Packet):
|
||||
]
|
||||
|
||||
|
||||
class UseItemPacket(Packet):
|
||||
"""Use the selected hand, including the 26.3 interaction sequence."""
|
||||
id = 0x43
|
||||
packet_name = 'use item'
|
||||
definition = [
|
||||
{'hand': VarInt}, {'sequence': VarInt},
|
||||
{'yaw': Float}, {'pitch': Float},
|
||||
]
|
||||
|
||||
|
||||
def parse_incoming_private_message(message):
|
||||
"""Return (sender_name, body) for common Minecraft incoming-DM forms."""
|
||||
patterns = (
|
||||
|
||||
Reference in New Issue
Block a user