summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Protocol: Use logical outgoing packet types.Mattes D2019-09-101-6/+6
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-15/+2
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Store and pass entity effect duration as an int not a short. (#4293)Alexander Harkness2018-08-261-5/+1
| | | Fixes #4292.
* recover hotbar selected slot after reconnect (#4249)changyong guo2018-07-231-0/+1
| | | | | | | 1. implement protocol message SendHeldItemChange 2. add save / load inventory equipped item slot in JSON 3. send held item slot message after player connect to server Fixes #4189
* Rewrite cClientHandle::HandleRightClick (#4089)9caihezi2018-01-081-0/+4
| | | | | | | | | | | | | * 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.
* Added assert to cProtocolRecognizer::GetPacketId. (#4001)Lane Kolbly2017-09-041-5/+7
|
* GetPacketID for protocol packet IDs (#3977)Lane Kolbly2017-09-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * Added GetPacketId method to protocol, implemented for all protocols. * Moved GetPacketID methods into a single file, alpha-sorted. * Fixed 1.12.1 HandlePacket switch statement. * Added SendLogin to the GetPacketId framework. * Added SpawnObject to GetPacketId framework. * Added missing sendEntityEquipment packet ID update for 1.12.1 * Added LeashEntity packet ID change to 1.12.1 * Alphabetized packet enum, added SpawnGlobalEntity to GetPacketId framework * Fixed clang errors * Indented cases, expanded comment for GetPacketId * Changed dyslexic comment.
* Update mbedtls to 2.5.1 (#3964)peterbell102017-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+2
|
* Removed unused forward declarations (#3888)Lukas Pioch2017-08-031-10/+0
|
* Handle Teleport Confirmation Packet (#3884)Lane Kolbly2017-08-021-0/+4
| | | + Added code to drop incoming client position packets until the most recent teleport was confirmed.
* Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch2017-06-091-1/+1
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-0/+358