summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemChest.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-6/+3
| | | | | * 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-68/+15
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-4/+2
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* OnBroken/OnPlaced are for entity actionsTiger Wang2020-08-041-2/+0
| | | | | | * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
* Vector3 in Handlers (#4680)Mattes D2020-04-211-30/+32
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+4
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-6/+8
|
* Item durability loss now depends on the item used. (#4123)Alexander Harkness2018-01-051-12/+0
| | | | | | | Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
* cBlockHandler: take player by refpeterbell102017-08-011-1/+1
|
* BigFlower fixes (#3826)peterbell102017-07-071-9/+3
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Fixed double chests (#3741)peterbell102017-06-031-1/+1
| | | | | Normal and trapped chests next to each other don't open a double chest window. Slot changes in the secondary chest are broadcast. Placing a chest in +x of another updates the original chest's metadata.
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-14/+0
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-3/+3
|
* Refactored block placement workflow.Mattes D2015-06-211-26/+49
| | | | Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-0/+167
Fixes #1618.