summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_12.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx122020-11-231-0/+1
| | | | | | | | | | | * 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>
* Cleanup Protocol classesTiger Wang2020-09-181-2/+0
| | | | * Visibility, static, ordering changes
* 1.14 connection supportTiger Wang2020-07-261-1/+0
|
* Remove GetProtocolVersion unneeded commentsTiger Wang2020-07-201-3/+0
|
* Inherit constructors, remove duplicationTiger Wang2020-07-191-3/+3
|
* Delete duplicated status request handlersTiger Wang2020-07-181-11/+12
| | | | Here we go again...
* Introduce recipe book functionality (#4493)Tobias Wilken2020-07-141-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce recipe book functionality The recipe book helps especially new players. Missing it gives the impression that cuberite is not as advanced as it is. The handling of the recipe book uses the following functions: - Unlock Recipes (https://wiki.vg/index.php?title=Protocol&oldid=14204#Unlock_Recipes) to make recipes available and show the notification for new recipes. Initialization is done on player login for known ones, the update is done when new items are discovered. - Craft Recipe Request (https://wiki.vg/index.php?title=Protocol&oldid=14204#Craft_Recipe_Request) when the user selects a recipe from the recipe book to fill the slots. Known recipes are initialized on player login via `Unlock Recipes` with `Action` 0. As soon as a new recipe is discovered this is added via `Unlock Recipes` with `Action` 1. To be able to know and recognize new recipes the player class is extended with `KnownItems` and `KnownRecipes`. As soon as a player touches an item this is compared to the list of `KnownItems`, if the item is unknown the recipes are checked for this item and the other ingredients are checked with the list of `KnownItems`. If a full match is discovered the recipe is unlocked with the client and stored in the `KnownRecipes`. To unlock recipes the recipe ID is sent to the client. A mapping file (for protocol 1.12.2) translated the minecraft recipe names to ids. The crafting.txt is extended with and minecraft recipe names is possible. Limitations: Only a single recipe is added to the crafting area. Multiple clicks or shift click does not increase the number of builds. Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Address first issues mentioned by @peterbell10 - Some linting - Extract loading of recipe specific protocol mapping into a function - Build `RecipeNameMap` only once - Use `std::optional` - Extract `LoadRecipe` from `Window` * Start to implement new suggestions * Update with suggestions from @peterbell10 * Some minor cleanup * Update protocol packet IDs * Remove unused include * Include header in cmake * Change a vector to integer counter * Change dromedaryCase method names to PascalCase * Address suggestions from @madmaxoft * Read Protocol subdirectories to load recipe books To load all recipebooks iterate over the `Protocol` subdirectories to find mapping files. Co-authored-by: peterbell10 <peterbell10@live.co.uk>
* Using Super.Mattes D2020-04-161-5/+8
|
* Use LastSentPos for mob spawn packet in 1.11+ (#4490)Mat2020-03-051-6/+0
|
* Protocol: Use logical outgoing packet types.Mattes D2019-09-101-4/+4
|
* Add support for release 1.12.2 (#4041)peterbell102017-09-211-0/+23
|
* Added assert to cProtocolRecognizer::GetPacketId. (#4001)Lane Kolbly2017-09-041-3/+5
|
* GetPacketID for protocol packet IDs (#3977)Lane Kolbly2017-09-021-66/+3
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Leashes work in 1.12.1mathiascode2017-08-261-0/+2
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+2
|
* Add support for 1.12.1 (#3908)Bond-0092017-08-171-0/+59
|
* Send player message when clicking on advancements or green book. (#3845)Lukas Pioch2017-07-121-0/+2
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-0/+1
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* Added missing 1.12 packet changesmathiascode2017-06-141-0/+2
|
* Protocol 1.12: Fixed missing override specifierMattes D2017-06-141-3/+3
|
* Added support for protocol 1.12 (#3757)Lukas Pioch2017-06-141-0/+66