summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-36/+29
| | | | | * 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-44/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-21/+39
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-4/+1
|
* Item durability loss now depends on the item used. (#4123)Alexander Harkness2018-01-051-2/+8
| | | | | | | Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
* Replaced includes with forward declarationsLukas Pioch2017-08-131-1/+1
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly2017-07-301-4/+1
| | | | | | | | * Consolidated food effects into EatItem, added all fish types. * Changed type of NumFishInfos to satisfy clang. * Removed unused call for a_Item in EatItem
* Anticheat fastbreak (#3411)mohe20152016-11-061-0/+4
| | | Added block hardness checks when breaking blocks.
* Bulk clearing of whitespaceLogicParrot2016-02-051-11/+11
|
* Improved mapsTiger Wang2015-07-141-1/+1
|
* Refactored block placement workflow.Mattes D2015-06-211-3/+17
| | | | Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
* Placing a fluid from bucket calls plugin hooks.Mattes D2015-04-141-2/+7
| | | | Ref.: #1857.
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-12/+27
| | | | Fixes #1618.
* Removed unused codeTiger Wang2014-08-291-1/+1
|
* Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner2014-07-311-7/+9
|
* Rename function.Howaner2014-07-261-1/+1
|
* Fix item durability.Howaner2014-07-231-2/+15
| | | Fixes #1181
* More trailing whitespace fixes.madmaxoft2014-07-171-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-2/+2
|
* Normalized comments.madmaxoft2014-07-171-4/+4
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* ItemHandler: changed IsDrinkable() to take a short argumentarchshift2014-06-171-2/+2
|
* Implemented drinkable potions, noeffect entity effect,archshift2014-06-171-1/+1
| | | | Clears entity effects on death
* Implemented milk, added documentation to Pawn.harchshift2014-06-171-0/+3
|
* Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-071-3/+0
|
* Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner2014-05-061-1/+1
|
* Add anvil window and slot area.Howaner2014-05-051-0/+6
|
* Fix armor in survival mode.Howaner2014-04-241-15/+15
|
* Fixed clang compilation errors. Apparently gcc and MSVC do not care about the order of initializer lists, but clang does.jfhumann2014-04-181-1/+1
|
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-1/+1
|
* Fixed warningsTycho2014-03-071-0/+3
|
* Map item handler; Fixed several bugsandrew2014-02-171-0/+8
|
* Improved Type safety of eBlockFaceTycho2014-02-041-4/+4
| | | | May Fix #640
* converted commneted paramater names to the unused macroTycho Bickerstaff2013-12-221-1/+7
|
* Root is now warnings cleanTycho Bickerstaff2013-12-211-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+99