summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_11.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* WriteBlockEntity: don't write position multiple times (#5373)Tiger Wang2022-01-021-7/+5
|
* Add skeleton bow pulling animation (#5355)Persson-dev2021-12-291-1/+13
| | | | | * Added basic skeleton bow animation * Fixing style
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Alpha-sort cChestEntity * Chests: use SendUpdateBlockEntity * Pathfinder: fix out of range Y * 1.13: correct weather packet ID * Chests: fix neighbour scanner + Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest. * Fix typo in cross coords computation. * Simplify hopper logic. * Block entities: ASSERT that type is correct If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type. * Chunk: fix some forgotten PendingSendBE cleanup + Add cleanup in SetAllData, WriteBlockArea - Remove RemoveBlockEntity (used once), HasBlockEntity (not used) * Replace MakeIndex with MakeIndexNoCheck * Remove extraneous MarkDirty in hopper & chests
* More cProtocol cleanupTiger Wang2021-04-121-19/+19
| | | | | | * Alpha sort functions * Simplify hand handling * Fix left handed mode client-side display
* Unify multiprotocol entity animationsTiger Wang2021-04-121-0/+53
|
* Unify DoWithBlockEntity (#5168)Tiger Wang2021-03-281-5/+0
| | | | | | + DoWith calls now broadcast the block entity and mark the chunk dirty + Add block entity change queue to synchronise BE updates with block updates * Fixed a few incorrect assertions about BE type - Remove manual overloads
* Deduplicate WriteBlockEntityTiger Wang2021-03-181-126/+66
|
* Adding basic Banner functionality (#4806)12xx122021-03-151-0/+13
| | | | | | + Added item and block for banners Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Mark UNREACHABLE with intrinsicsTiger Wang2021-02-201-5/+2
|
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-1/+1
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx122020-11-231-7/+84
| | | | | | | | | | | * 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>
* Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017)12xx122020-11-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed network fixed explosion fixed ticking added network broadcast to Setter method added nullptr protection using macros in 1.10 Protocol_1_10.cpp revealed functions to LUA API small fixups, typos, less functions used fixed more doc readded info that saving is done only if the beam is displayed made the constructor transfer all needed members fixed wrong commit removed default parameters on SpawnEnderCrystal fixed wrong metadata moved call to destroy in the right place fixed some typos Fixed Ender Crystal * fixed documentation * fixed doc and added proper error message * Parameters, arrows * Parameters Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Add beam target, configurable base visibility to Ender Crystals (#5010)12xx122020-10-291-0/+17
| | | | | * Fixes #4990 Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Made cProtocol::Version, EntityMetadata enums less verboseTiger Wang2020-08-211-2/+2
|
* 1.14 connection supportTiger Wang2020-07-261-1/+1
|
* Remove some unused inclusionsTiger Wang2020-07-201-1/+0
|
* Inherit constructors, remove duplicationTiger Wang2020-07-191-16/+4
|
* Delete duplicated status request handlersTiger Wang2020-07-181-81/+11
| | | | Here we go again...
* cProtocolRecognizer goes on a diet (#4770)Tiger Wang2020-07-171-2/+2
| | | - Removed inheritance from cProtocol
* Made grass spreader prettierTiger Wang2020-07-061-1/+1
|
* 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-4/+3
| | | | | | | | | | | | | 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.
* Fix one definition rule violationsTiger Wang2020-05-041-4/+4
|
* Improve entity position updates (#4701)Tiger Wang2020-05-041-4/+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-1/+1
|
* Fix compilation, for real this time.Alexander Harkness2020-04-101-0/+1
| | | | I should go to sleep now...
* Add Zombie VillagersBond-0092020-04-101-9/+17
|
* Implement wither skeletons (#4563)Mat2020-04-041-11/+1
|
* Add protocol mob ID remapping (#4538)Mat2020-03-291-1/+46
|
* Use LastSentPos for mob spawn packet in 1.11+ (#4490)Mat2020-03-051-3/+4
|
* Protocol: Use logical outgoing packet types.Mattes D2019-09-101-10/+11
|
* Fix building with clang 8.0 (#4346)Bond-0092019-08-111-4/+6
|
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-2/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-38/+38
| | | | | | | * 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.
* Rewrite cClientHandle::HandleRightClick (#4089)9caihezi2018-01-081-1/+1
| | | | | | | | | | | | | * 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.
* 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-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | * 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-4/+4
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Added basic ocelot behavior (#3829)Bond-0092017-07-121-0/+18
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-0/+12
| | | | | | | | | | * 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 WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch2017-06-091-0/+115
|
* 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
* 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-2/+838
|
* Add 1.11.1/1.11.2 protocol (#3575)mathiascode2017-02-211-7/+58
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-0/+189