summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemChest.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-02ItemHandler initialisation is a constant expression (#5344)x12xx12x1-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
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-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>
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-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>
2020-08-04OnBroken/OnPlaced are for entity actionsTiger Wang1-2/+0
* Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
2020-04-21Vector3 in Handlers (#4680)Mattes D1-30/+32
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-2/+4
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-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
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-6/+8
2018-01-05Item durability loss now depends on the item used. (#4123)Alexander Harkness1-12/+0
Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
2017-08-01cBlockHandler: take player by refpeterbell101-1/+1
2017-07-07BigFlower fixes (#3826)peterbell101-9/+3
* BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
2017-06-03Fixed double chests (#3741)peterbell101-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.
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-14/+0
2016-02-05Bulk clearing of whitespaceLogicParrot1-3/+3
2015-06-21Refactored block placement workflow.Mattes D1-26/+49
Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
2015-05-09CheckBasicStyle: checks spaces around * and &.Mattes D1-1/+1
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-0/+167
Fixes #1618.