summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_10.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Update submodules (#4727)peterbell102020-05-091-2/+2
| | | | | | | | | | | | | Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
* Add Zombie VillagersBond-0092020-04-101-2/+19
|
* Initial resource pack support (#4622)Mat2020-04-071-0/+22
|
* Implement wither skeletons (#4563)Mat2020-04-041-9/+8
|
* Protocol: Use logical outgoing packet types.Mattes D2019-09-101-3/+3
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | 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.
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-37/+37
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Fix switch warnings (#4013)peterbell102017-09-141-33/+35
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* GetPacketID for protocol packet IDs (#3977)Lane Kolbly2017-09-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Implement Forge protocol handshake support (#3869)satoshinm2017-08-271-0/+2
|
* Add cUUID class (#3871)peterbell102017-08-251-1/+1
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Tentative fix for player-limit race condition (#3862)Tiger Wang2017-07-281-2/+2
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch2017-06-091-0/+114
|
* Exported boatLukas Pioch2017-05-241-1/+1
| | | | | | | - NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
* Use FastWriter instead of StyledWritermathiascode2017-05-161-1/+1
|
* VarInt metadata written correctly for boats (#3709)peterbell102017-05-151-3/+3
| | | | * Varint metadata written correctly for boats
* Add 1.11 entity metadata (#3601)Pokechu222017-03-031-1/+1
|
* Add 1.11.1/1.11.2 protocol (#3575)mathiascode2017-02-211-1/+1
|
* Track skin part and main hand preferences (#3498)Pokechu222017-01-031-0/+8
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-0/+883