summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-4/+1
2018-01-05Item durability loss now depends on the item used. (#4123)Alexander Harkness1-2/+8
Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
2017-08-13Replaced includes with forward declarationsLukas Pioch1-1/+1
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-07-30Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly1-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
2016-11-06Anticheat fastbreak (#3411)mohe20151-0/+4
Added block hardness checks when breaking blocks.
2016-02-05Bulk clearing of whitespaceLogicParrot1-11/+11
2015-07-14Improved mapsTiger Wang1-1/+1
2015-06-21Refactored block placement workflow.Mattes D1-3/+17
Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
2015-04-14Placing a fluid from bucket calls plugin hooks.Mattes D1-2/+7
Ref.: #1857.
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-12/+27
Fixes #1618.
2014-08-29Removed unused codeTiger Wang1-1/+1
2014-07-31Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner1-7/+9
2014-07-26Rename function.Howaner1-1/+1
2014-07-23Fix item durability.Howaner1-2/+15
Fixes #1181
2014-07-17More trailing whitespace fixes.madmaxoft1-1/+1
2014-07-17Basic style fixes.madmaxoft1-2/+2
2014-07-17Normalized comments.madmaxoft1-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.
2014-06-17ItemHandler: changed IsDrinkable() to take a short argumentarchshift1-2/+2
2014-06-17Implemented drinkable potions, noeffect entity effect,archshift1-1/+1
Clears entity effects on death
2014-06-17Implemented milk, added documentation to Pawn.harchshift1-0/+3
2014-05-07Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner1-3/+0
2014-05-06Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner1-1/+1
2014-05-05Add anvil window and slot area.Howaner1-0/+6
2014-04-24Fix armor in survival mode.Howaner1-15/+15
2014-04-18Fixed clang compilation errors. Apparently gcc and MSVC do not care about the order of initializer lists, but clang does.jfhumann1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-1/+1
2014-03-07Fixed warningsTycho1-0/+3
2014-02-17Map item handler; Fixed several bugsandrew1-0/+8
2014-02-04Improved Type safety of eBlockFaceTycho1-4/+4
May Fix #640
2013-12-22merged in warnings changesTycho Bickerstaff1-1/+7
2013-12-22converted commneted paramater names to the unused macroTycho Bickerstaff1-1/+7
2013-12-21Root is now warnings cleanTycho Bickerstaff1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-08-30Shooting a bow kinda works.madmaxoft1-3/+6
The arrow is released, but sometimes hits wrong blocks or disappears completely.
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-96/+96
2013-07-28Implemented basic eating support.madmaxoft1-8/+9
Food is now properly consumed and it takes 1.5 sec.
2013-05-19Inventory code cleanup, players can now see each other's armormadmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-27Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com1-1/+1
Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-22/+34
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15- Added the "wait" music discluksor111@gmail.com1-1/+1
- Vines can now be placed on leaves git-svn-id: http://mc-server.googlecode.com/svn/trunk@1045 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18Fixed a few bugs in fluid placement - fluid into other fluid, fluid into washable blocks.madmaxoft@gmail.com1-7/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@977 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-1/+1
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-22Added a documentation for block and item handlerslapayo94@gmail.com1-1/+12
Probably fixed dependencies on cWebPlugin_Lua Fixed VC2010 Project file git-svn-id: http://mc-server.googlecode.com/svn/trunk@778 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-18Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com1-1/+1
This breaks plugin API! Plugins need to modify their hook functions to match those used in the Core plugin git-svn-id: http://mc-server.googlecode.com/svn/trunk@750 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11Added cItemHandler::GetMaxStackSize() with a very basic implementationmadmaxoft@gmail.com1-0/+12
git-svn-id: http://mc-server.googlecode.com/svn/trunk@726 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29Fixed warnings in item handlers - items' damage value is a short, but block meta is only a NIBBLETYPE. Also slight cleanup.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@704 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-17Simple health regeneration systemlapayo94@gmail.com1-2/+17
Prepared for food git-svn-id: http://mc-server.googlecode.com/svn/trunk@679 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Fixed a copypasta error in previous commitmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@676 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Changed GetBlockMeta to return NIBBLETYPE instead of charmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@675 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+45
It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6