summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_10.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-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.
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-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.
2017-09-14Fix switch warnings (#4013)peterbell101-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
2017-09-02GetPacketID for protocol packet IDs (#3977)Lane Kolbly1-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.
2017-08-27Implement Forge protocol handshake support (#3869)satoshinm1-0/+2
2017-08-25Add cUUID class (#3871)peterbell101-1/+1
2017-08-24Minor changes (#3909)mathiascode1-1/+1
2017-07-28Tentative fix for player-limit race condition (#3862)Tiger Wang1-2/+2
* Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
2017-06-09Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch1-0/+114
2017-05-24Exported boatLukas Pioch1-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
2017-05-16Use FastWriter instead of StyledWritermathiascode1-1/+1
2017-05-15VarInt metadata written correctly for boats (#3709)peterbell101-3/+3
* Varint metadata written correctly for boats
2017-03-03Add 1.11 entity metadata (#3601)Pokechu221-1/+1
2017-02-21Add 1.11.1/1.11.2 protocol (#3575)mathiascode1-1/+1
2017-01-03Track skin part and main hand preferences (#3498)Pokechu221-0/+8
2017-01-03Track skin part and main hand preferences (#3498)Pokechu221-0/+8
2016-12-16Initial support for the 1.11 protocol.Mattes D1-11/+10
2016-11-18Removed ClientHandle.h dependencies from common headers.Mattes D1-0/+2
2016-09-06Enclosed Clang pragmas with ifdef's (#3373)bibo381-4/+7
Fixes a warning in MSVC
2016-09-02Added support for the Minecraft 1.10 protocol(#210) (#3348)bibo381-0/+879
* Added support for the Minecraft 1.10 protocol(#210) * Fixed the Clang compilation errors * Fixed wrong sound pitch value and fixed SendPlayerSpawn Metadata value. * Prefixed each enum item with the appropriate class name.