summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_14.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* adding endermite (#5460)Debucquoy Anthony tonitch2023-09-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First Draft of adding endermite * Update src/Mobs/Endermite.h Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Adding Protocols + SpawnEgg TODO: don't forget to put the endermite in core plugin for the summon command * Adding endermite to monster.ini * Adding 5% change of spawning endermite when throwing enderpearl * Spawn endermite at last position instead of Hit Position + .cache to .gitignore * fixup! Spawn endermite at last position instead of Hit Position + .cache to .gitignore * destroy endermite if 2 min, not if name is set * Syntax * Adding Enderman targeting endermite + fixing syntax * Fixing compile error + return error [but crash on enderman spawn] * Fix crash but enderman doesn't target * Enderman targeting endermite finished * checking style because i'm a noob at git... * fixup! checking style because i'm a noob at git... * Added endermite egg meta to docs * Final touches Removed unnecesary imports fixed callback to run only in sight distance and actually check sigtlines * Fixed error after not pulling branch --------- Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com>
* Replaced hand-escaped JSON (#5508)Seppe Degryse2023-06-081-1/+2
|
* Removed all Printf-family functions from StringUtils.Mattes D2023-05-161-1/+1
| | | | | Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
* Add support for 1.14.x protocolsPersson-dev2022-04-211-0/+48
|
* Protocol sources fixes (#5411)Simon Pribylski2022-04-211-13/+1
| | | | | | | * Move HANDLE_READ to header * Fix compiler warnings * Removed unnecessary default statement
* Improving 1.14 support (#5388)Simon Pribylski2022-04-201-4/+1388
| | | | | | | | | | | | | | | | | | | | | * Fixing login * Add basic 1.14 support * Adding pktHorseWindowOpen to PacketTypeToStr * Fixing build with clang * Fixing inventories * Add entities metadata * Add particles * Fixing style * Fixing build with clang-tidy * fixing build
* Updated protocol functions to Vector3xx12xx12x2022-04-201-5/+5
| | | | also added support in included functions
* Miscellaneous fixes (#5320)Tiger Wang2021-11-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | * Protocol: update Abilities flags + Add Spectator handling * BioGen: move <iostream> include * ClientHandle: rename Respawn packet dimension check flag * Make it clearer what it's doing. * ClientHandle: move ProcessProtocolIn calls to World * Player: remove some redundant initialisation * Player: UpdateCapabilities enables flight for spectators * Produce growth: improve comments * ClientHandle: run unload checks using delta time * Fix forgotten initialisation of time member
* World: change spawnpoint type to int (#5313)Tiger Wang2021-10-031-1/+1
| | | | | * World: change spawnpoint type to int As Vanilla does.
* Add player statistics to API (#5193)nshah252021-05-031-1/+1
| | | | | | * Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* More cProtocol cleanupTiger Wang2021-04-121-14/+14
| | | | | | * Alpha sort functions * Simplify hand handling * Fix left handed mode client-side display
* Unify multiprotocol entity animationsTiger Wang2021-04-121-8/+43
|
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-2/+1
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* ViewDistance: unsigned -> signedTiger Wang2020-12-261-1/+1
|
* Prepare for 1.15+ (#4856)Tiger Wang2020-12-211-2/+2
| | | | | + Add type-safe container for states * Split registry Blocks into BlockTypes, BlockStates so the block types enumeration can be #included without too much penalty * Ensure Registry uses type-safe container
* Warnings improvementsTiger Wang2020-12-181-1/+1
| | | | | | | | | * Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-31/+1
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Add State enum to protocolTiger Wang2020-09-181-3/+3
|
* Cleanup Protocol classesTiger Wang2020-09-181-23/+23
| | | | * Visibility, static, ordering changes
* Made cProtocol::Version, EntityMetadata enums less verboseTiger Wang2020-08-211-1/+1
|
* Remove complex templated SendBlockChangeTiger Wang2020-08-211-33/+10
| | | | If we're sending enough blocks to have virtual calls be an issue, we should resend the chunk instead.
* Add Statistics and Achievements for newer Network standards12xx122020-08-191-0/+9
|
* 1.14 connection supportTiger Wang2020-07-261-0/+305