summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merged trivial item handlers into cSimplePlaceableItemHandler (#4766)Franklin Kong2020-06-261-12/+7
| | | | | | - Remove unused files Co-authored-by: aiugai <aiugai@umich.edu> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-39/+46
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Add additional blocks which are not breakable by handAlexander Harkness2020-04-101-6/+38
|
* Remove switch statements from cItemFoodHandler (#4610)Alexander Harkness2020-04-041-35/+44
| | | | | | | * Remove switch statements from cItemFoodHandler * Alpha-sort and add comment * Relocate golden apple handler
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-24/+4
|
* Create Ender Portal with Eyes of Ender (#4126)Zach DeCook2019-05-111-0/+2
| | | | | | | | | The algorithm was designed so All portals must be facing the center, no matter which block had the eye inserted in last. Note: Still need to create a block entity so that portals don't become invisible when you relog. Addresses part of #3445 Fixes #3695
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-5/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Golden Apple Fixes (#4130)Alexander Harkness2018-01-061-11/+2
| | | | | | | | | * Do not remove food item until player has been fed * Golden apples now ignore hunger when eating * Removed EnchantedGoldenApple recipe, as it was removed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2 * Adjust golden apple effects, as they were changed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2
* Item durability loss now depends on the item used. (#4123)Alexander Harkness2018-01-051-13/+4
| | | | | | | Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
* cItemHandler: Update max stack size of old doors. (#4072)peterbell102017-11-201-0/+2
|
* Fix switch warnings (#4013)peterbell102017-09-141-2/+2
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+1
|
* Removed double includes (#3885)Lukas Pioch2017-08-021-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-2/+2
|
* cWorld::SendBlockTo take player by refpeterbell102017-08-011-2/+2
|
* Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly2017-07-301-27/+4
| | | | | | | | * Consolidated food effects into EatItem, added all fish types. * Changed type of NumFishInfos to satisfy clang. * Removed unused call for a_Item in EatItem
* BigFlower fixes (#3826)peterbell102017-07-071-9/+3
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* FastRandom rewrite (#3754)peterbell102017-06-131-2/+1
|
* Deadbushes drop sticksBond-0092017-03-191-1/+0
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-23/+0
|
* Added some blocks and items (#3503)mathiascode2017-02-141-2/+34
|
* Anticheat fastbreak (#3411)mohe20152016-11-061-0/+20
| | | Added block hardness checks when breaking blocks.
* Bulk clearing of whitespaceLogicParrot2016-02-051-22/+22
|
* add handling of water bottleGargaj2015-12-221-0/+2
|
* Merge mushroom soup into generic food handlerGargaj2015-12-031-2/+1
| | | | ...and fix eating the bowl when eating rabbit stew
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-1/+4
|
* Improved mapsTiger Wang2015-07-141-2/+3
|
* Refactored block placement workflow.Mattes D2015-06-211-18/+53
| | | | Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* Rabbit and cooked rabbit now stackablejammet2015-05-091-1/+3
| | | | And corrected the alphabetical ordering.
* Fixed #1893Tri1252015-05-071-0/+1
| | | | Quartz ore now stack properly
* ItemHandler type fixes.Mattes D2015-04-201-2/+2
|
* ItemHandler: Using automatic array bounds.Mattes D2015-04-201-1/+1
|
* Fixed PolishedGranite et al crafting recipes.Mattes D2015-04-161-2/+2
| | | | Fixes #1774. Ref.: #1859
* Placing a fluid from bucket calls plugin hooks.Mattes D2015-04-141-2/+6
| | | | Ref.: #1857.
* Fixed forgotten big flower handler.Mattes D2014-12-251-1/+2
|
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-43/+156
| | | | Fixes #1618.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Leaves are harvest-able.Howaner2014-10-071-2/+0
|
* Corrected drops from dead bush, tall grass and cobweb.Howaner2014-10-071-0/+4
|
* Fixed sortingMasy982014-10-011-2/+2
|
* Fixed Red Sandstone and Prismarine dropsMasy982014-10-011-0/+1
|
* Merge branch 'master' into blocksMasy982014-09-261-3/+9
|\ | | | | | | | | | | Conflicts: src/Items/ItemHandler.cpp src/Simulator/IncrementalRedstoneSimulator.cpp
| * Improved cBlockHandler::DropBlockTiger Wang2014-09-131-1/+1
| |
| * Merge pull request #1353 from mc-server/EffectsMattes D2014-09-131-1/+6
| |\ | | | | | | Added speed entity effect.
| | * Added extra mushroom handler.Howaner2014-09-121-2/+6
| | |
| | * Merge branch 'master' into EffectsHowaner2014-09-121-2/+4
| | |\
| | * | Fixed potion removing in creative mode.Howaner2014-08-301-0/+1
| | | |
| * | | Disabled mobspawner itemdrop.Howaner2014-09-121-0/+1
| | |/ | |/|
* | | Fixed 1.8 Item stacking and block harvestingMasy982014-09-121-25/+43
| | |
* | | Fixed mutton name in Sheep.cppMasy982014-09-111-2/+10
| | |
* | | Fixed mutton name in ItemHandlerMasy982014-09-111-1/+1
|/ /
* | Fixed style and alpha-sorting.madmaxoft2014-09-031-4/+4
| |
* | Added mutton, which sheep now drop when killedarchshift2014-09-031-0/+2
|/
* Fixed unsigned long comparison to size_tarchshift2014-08-051-1/+1
|
* Merge pull request #1272 from Howaner/FoodMattes D2014-08-011-11/+22
|\ | | | | Fixed hunger bugs, Implemented golden apple, added jump statistic, added...
| * Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner2014-07-311-11/+22
| |
* | Fixed water from ice and removed packed ice drop.Howaner2014-07-311-0/+1
|/
* Hotfixed compilation problems.madmaxoft2014-07-271-1/+1
|
* Rename function.Howaner2014-07-261-3/+3
|
* Merge branch 'master' into Inventory2Howaner2014-07-261-9/+47
|\ | | | | | | | | Conflicts: src/BlockInfo.cpp
| * Fixed block dropsTiger Wang2014-07-241-4/+43
| | | | | | | | * Fixes #1242 (the issue addressed within)
| * Merge remote-tracking branch 'origin/master' into saplingsandleavesTiger Wang2014-07-221-2/+2
| |\ | | | | | | | | | | | | Conflicts: src/Defines.h
| * \ Merge branch 'master' into saplingsandleavesTiger Wang2014-07-201-12/+12
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Bindings/DeprecatedBindings.cpp src/Blocks/BlockSapling.h
| * | | Fixed issues relating to saplings and leavesTiger Wang2014-07-171-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
* | | | Fix item durability.Howaner2014-07-231-2/+30
| |_|/ |/| | | | | Fixes #1181
* | | Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
| | |
* | | Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
| |/ |/|
* | Fixed tabs used for alignment.madmaxoft2014-07-171-7/+7
| |
* | Basic style fixes.madmaxoft2014-07-171-3/+3
| |
* | Normalized comments.madmaxoft2014-07-171-2/+2
|/ | | | | 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.cpp: removed redundant food and drink checksarchshift2014-07-141-33/+0
|
* Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-101-1/+4
|\ | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * Only fixes the server crash.Howaner2014-07-011-1/+1
| |
| * Fix server-crash with non-existing items.Howaner2014-07-011-1/+1
| |
| * Implemented tripwire(s) (hooks)Tiger Wang2014-06-281-0/+2
| | | | | | | | * Fixes #944
| * Nullify deleted pointers.archshift2014-06-191-0/+1
| |
* | ItemHandler: changed IsDrinkable() to take a short argumentarchshift2014-06-171-2/+2
| |
* | Implemented drinkable potions, noeffect entity effect,archshift2014-06-171-1/+5
| | | | | | | | Clears entity effects on death
* | Implemented milk, added documentation to Pawn.harchshift2014-06-171-1/+18
| |
* | Player: Removed food-poisoning-specific code, set duration to 30 secondsarchshift2014-06-171-1/+1
|/ | | | http://minecraft.gamepedia.com/Hunger#Behavior
* Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-071-9/+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/+19
|
* Add armor to switch() in ItemHandler.cppHowaner2014-04-241-6/+25
|
* Fix armor in survival mode.Howaner2014-04-241-0/+7
|
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-1/+0
|
* Fixed Clang warnings in itemhandlers.madmaxoft2014-04-041-3/+3
|
* Some fixes to lilypadsTiger Wang2014-03-281-0/+2
| | | | | | | | * Fixed placement on lava * Fixed placement on side of blocks * Fixed placement through blocks + Added washing-away of pads + Added ice as a block that fully occupies its voxel
* Merge pull request #809 from Howaner/BlockEntitysMattes D2014-03-161-0/+1
|\ | | | | More entity saving.
| * Add fireball interactHowaner2014-03-141-0/+1
| |
* | Add new leaves to all classes.Howaner2014-03-161-0/+1
| |
* | Add cakeHowaner2014-03-161-0/+3
|/
* cBlockInfo now manages the respective cBlockHandlerandrew2014-03-021-1/+1
|
* Fixed multiple gcc warnings about unused params.madmaxoft2014-02-281-1/+25
|
* Manual merge (Fixed conflicts)andrew2014-02-201-2/+9
|\
| * Merge pull request #697 from Howaner/SkullMattes D2014-02-191-0/+2
| |\ | | | | | | Add Skulls/Heads to MCServer
| | * Rename SkullEntity to MobHeadEntityHowaner2014-02-191-2/+2
| | |
| | * Add Skulls/HeadsHowaner2014-02-171-0/+2
| | |
| * | Merge branch 'master' into itemframesTiger Wang2014-02-181-2/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Entities/Entity.h src/WorldStorage/NBTChunkSerializer.cpp
| | * | Implemented paintings, fixes #689Tiger Wang2014-02-181-2/+4
| | |/ | | | | | | | | | + Implemented paintings
| * / Implemented item frames, a part of #689Tiger Wang2014-02-181-0/+3
| |/ | | | | | | | | + Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
* | Map item handler; Fixed several bugsandrew2014-02-171-0/+2
| |
* | EmptyMap item handlerandrew2014-02-141-0/+2
|/
* Merge branch 'master' into playerimprovementsTiger Wang2014-02-091-3/+3
|\ | | | | | | | | Conflicts: MCServer/Plugins/APIDump/APIDesc.lua
| * Improved Type safety of eBlockFaceTycho2014-02-041-3/+3
| | | | | | | | May Fix #640
* | Fixed #626Tiger Wang2014-02-031-10/+15
|/ | | | * Fixed consumption of carrots and potatoes
* Changed Signiture of OnUpdateTycho2014-02-021-1/+4
|
* Changed pointers to referencesTycho2014-02-011-1/+1
|
* Refactored GetPlacementBlockTypeMetaTycho2014-01-261-1/+2
|
* Implented cItemFishingRodHandler.STRWarrior2013-12-191-0/+2
|
* Implented Nether Wart.STRWarrior2013-12-181-0/+2
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-0/+2
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+509