Add PlayerAction (block breaking etc) packet
This commit is contained in:
parent
b370853c2a
commit
150ad7b9ac
|
@ -317,4 +317,10 @@ namespace Feather
|
||||||
for (auto& client : clients)
|
for (auto& client : clients)
|
||||||
client.SendMessage(message);
|
client.SendMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
void DedicatedServer::HandlePacket(MinecraftClient& client, const Play::ServerboundPlayerAction& action)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,6 +196,28 @@
|
||||||
id : int64
|
id : int64
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlayerAction: {
|
||||||
|
id: 0x1A
|
||||||
|
enums: {
|
||||||
|
Action: {
|
||||||
|
.type: varint
|
||||||
|
|
||||||
|
StartBreakBlock: 0
|
||||||
|
AbortBreakBlock: 1
|
||||||
|
FinishedBreakBlock: 2
|
||||||
|
DropItemStack: 3
|
||||||
|
DropItem: 4
|
||||||
|
ReleaseUseItem: 5 # shoot array, finished eating, etc
|
||||||
|
SwapItemHands: 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vars: {
|
||||||
|
action: Action
|
||||||
|
pos: position
|
||||||
|
direction: direction
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clientbound :
|
clientbound :
|
||||||
|
|
Loading…
Reference in New Issue