summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_12.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-09-10Protocol: Use logical outgoing packet types.Mattes D1-11/+93
2019-08-11Fix building with clang 8.0 (#4346)Bond-0091-4/+6
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-32/+32
* 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.
2018-01-08Rewrite cClientHandle::HandleRightClick (#4089)9caihezi1-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.
2017-09-21Add support for release 1.12.2 (#4041)peterbell101-0/+76
2017-09-14Fix switch warnings (#4013)peterbell101-33/+65
* 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-1107/+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.
2017-08-27Implement Forge protocol handshake support (#3869)satoshinm1-0/+2
2017-08-26Leashes work in 1.12.1mathiascode1-24/+48
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán1-0/+24
2017-08-17Add support for 1.12.1 (#3908)Bond-0091-3/+756
2017-07-28Tentative fix for player-limit race condition (#3862)Tiger Wang1-3/+3
* Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
2017-07-12Added basic ocelot behavior (#3829)Bond-0091-0/+18
2017-07-12Send player message when clicking on advancements or green book. (#3845)Lukas Pioch1-2/+22
2017-07-07Added bed entity (#3823)Lukas Pioch1-0/+27
* 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
2017-06-14Added missing 1.12 packet changesmathiascode1-0/+28
2017-06-14Added support for protocol 1.12 (#3757)Lukas Pioch1-222/+540
2017-06-09Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch1-0/+115
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-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-2/+838
2017-02-21Add 1.11.1/1.11.2 protocol (#3575)mathiascode1-7/+58
2016-12-16Initial support for the 1.11 protocol.Mattes D1-0/+189