summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx122020-11-231-0/+3
| | | | | | | | | | | * added new monster types to enum added string <-> enum conversion in namespace serializer added loading functions added to saving * renamed zombie pigman to zombified piglins in enum Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Remove unused ServerPort argumentTiger Wang2020-09-181-1/+1
|
* Add State enum to protocolTiger Wang2020-09-181-1/+1
|
* Cleanup Protocol classesTiger Wang2020-09-181-1/+1
| | | | * Visibility, static, ordering changes
* Unused/duplicate function cleanupTiger Wang2020-08-291-4/+0
| | | | | * FaceIntToBlockFace in 1.8/1.9 protocol merged - Removed undefined permissions stuff in Player header
* Remove some unused inclusionsTiger Wang2020-07-201-1/+0
|
* Inherit constructors, remove duplicationTiger Wang2020-07-191-3/+3
|
* Implement "caching" in ChunkDataSerializerTiger Wang2020-07-191-3/+1
| | | | + When sending a chunk to multiple clients, group them by protocol version and send the same data
* Delete duplicated status request handlersTiger Wang2020-07-181-14/+15
| | | | Here we go again...
* cProtocolRecognizer goes on a diet (#4770)Tiger Wang2020-07-171-2/+0
| | | - Removed inheritance from cProtocol
* Improve entity position updates (#4701)Tiger Wang2020-05-041-6/+4
| | | | | | | | | * Make puking pickups fly nicer * Improve entity position updates * Move determination of whether a delta is too big for a packet into the protocol handlers + Less jittery movement + Generalise CollectEntity to take any entity
* Unify entity spawn packet sendingTiger Wang2020-05-011-4/+3
|
* Unify 1.8 and 1.9Tiger Wang2020-04-221-161/+23
| | | | - Deleted ridiculous amount of duplicated code
* Delet SpawnObject paramsTiger Wang2020-04-201-1/+1
| | | | | | * Fix #4679 awkward...
* Using Super.Mattes D2020-04-161-8/+11
|
* Initial resource pack support (#4622)Mat2020-04-071-0/+2
|
* Add protocol mob ID remapping (#4538)Mat2020-03-291-0/+4
|
* Protocol 1.9: Alpha-sort, add useful debugging code.Mattes D2019-09-161-2/+2
|
* Initial support for 1.13 clientsTiger Wang2019-09-161-1/+1
| | | | | + Can look at *shape* of world + Can look at *shape* of inventory
* 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