1
0
Fork 0
cuberite-2a/src/Protocol
9caihezi 4242431407 Rewrite cClientHandle::HandleRightClick (#4089)
* Add hand parameter to distinguish main hand/off hand.
* Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9
* Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin).
* Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item.
   The CallHookPlayerUsingItem will still be called.
   Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock,
   CallHookPlayerUsingItem and CallHookPlayerEating will be called based on
   the type of action (not including the used version of callbacks).
* Do not count using item as BlockInteractionsRate check (Using item takes time).
* Now we can open chests(etc.) when sneaking as long as the player's hand is empty.
   This is what vanilla server does.
2018-01-08 13:37:10 +00:00
..
Authenticator.cpp Update mbedtls to 2.5.1 (#3964) 2017-08-30 15:00:06 +01:00
Authenticator.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
CMakeLists.txt Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
ChunkDataSerializer.cpp Implement protocol level chunk sparsing (#3864) 2017-08-21 17:56:53 +01:00
ChunkDataSerializer.h Implement protocol level chunk sparsing (#3864) 2017-08-21 17:56:53 +01:00
ForgeHandshake.cpp Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
ForgeHandshake.h Implement Forge protocol handshake support (#3869) 2017-08-27 23:10:20 +02:00
MojangAPI.cpp Removed UTF-8 BOM (#4033) 2017-09-19 10:34:08 +02:00
MojangAPI.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
PacketID.cpp Fixed FreeBSD build (#4061) 2017-10-16 18:39:53 +01:00
Packetizer.cpp Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Packetizer.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Protocol.h Added assert to cProtocolRecognizer::GetPacketId. (#4001) 2017-09-04 16:58:38 +01:00
ProtocolRecognizer.cpp Add support for release 1.12.2 (#4041) 2017-09-21 14:12:43 +01:00
ProtocolRecognizer.h Add support for release 1.12.2 (#4041) 2017-09-21 14:12:43 +01:00
Protocol_1_8.cpp Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Protocol_1_8.h Added assert to cProtocolRecognizer::GetPacketId. (#4001) 2017-09-04 16:58:38 +01:00
Protocol_1_9.cpp Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Protocol_1_9.h Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Protocol_1_10.cpp Fix switch warnings (#4013) 2017-09-14 09:48:57 +01:00
Protocol_1_10.h Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawner 2017-06-09 12:16:44 +02:00
Protocol_1_11.cpp Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Protocol_1_11.h Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawner 2017-06-09 12:16:44 +02:00
Protocol_1_12.cpp Rewrite cClientHandle::HandleRightClick (#4089) 2018-01-08 13:37:10 +00:00
Protocol_1_12.h Add support for release 1.12.2 (#4041) 2017-09-21 14:12:43 +01:00