summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemMobHead.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-12/+9
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-65/+52
| | | | | | | | | | | | | | | | | | | | | | | | | * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com> * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
* 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>
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Unify DoWithBlockEntity (#5168)Tiger Wang2021-03-281-31/+27
| | | | | | + 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
* Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang2021-03-151-1/+1
| | | * Fixes #5144
* Add Statistics and Achievements for newer Network standards12xx122020-08-191-1/+1
|
* Vector3 in Handlers (#4680)Mattes D2020-04-211-17/+44
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-5/+6
|
* BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038)Bond-0092017-09-251-22/+22
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-51/+24
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-24/+51
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-51/+24
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-3/+3
|
* Spawn baby mobshallucino2015-07-161-1/+1
|
* Refactored block placement workflow.Mattes D2015-06-211-15/+18
| | | | Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
* MobHead: Fixed wither spawning.Mattes D2014-12-251-13/+40
|
* MobHeads: fixed regular head placement.Mattes D2014-12-251-2/+22
|
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-0/+261
| | | | Fixes #1618.
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Rename SkullEntity to MobHeadEntityHowaner2014-02-191-0/+42