summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-09-03Fixed style and alpha-sorting.madmaxoft1-4/+4
2014-09-03Added mutton, which sheep now drop when killedarchshift1-0/+2
2014-08-05Fixed unsigned long comparison to size_tarchshift1-1/+1
2014-07-31Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner1-11/+22
2014-07-31Fixed water from ice and removed packed ice drop.Howaner1-0/+1
2014-07-27Hotfixed compilation problems.madmaxoft1-1/+1
2014-07-26Rename function.Howaner1-3/+3
2014-07-24Fixed block dropsTiger Wang1-4/+43
* Fixes #1242 (the issue addressed within)
2014-07-23Fix item durability.Howaner1-2/+30
Fixes #1181
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-1/+1
2014-07-21Style: Normalized spaces after if, for and while.madmaxoft1-1/+1
2014-07-17Fixed issues relating to saplings and leavesTiger Wang1-6/+3
- Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
2014-07-17Fixed tabs used for alignment.madmaxoft1-7/+7
2014-07-17Basic style fixes.madmaxoft1-3/+3
2014-07-17Normalized comments.madmaxoft1-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.
2014-07-14ItemHandler.cpp: removed redundant food and drink checksarchshift1-33/+0
2014-07-01Only fixes the server crash.Howaner1-1/+1
2014-07-01Fix server-crash with non-existing items.Howaner1-1/+1
2014-06-28Implemented tripwire(s) (hooks)Tiger Wang1-0/+2
* Fixes #944
2014-06-19Nullify deleted pointers.archshift1-0/+1
2014-06-17ItemHandler: changed IsDrinkable() to take a short argumentarchshift1-2/+2
2014-06-17Implemented drinkable potions, noeffect entity effect,archshift1-1/+5
Clears entity effects on death
2014-06-17Implemented milk, added documentation to Pawn.harchshift1-1/+18
2014-06-17Player: Removed food-poisoning-specific code, set duration to 30 secondsarchshift1-1/+1
http://minecraft.gamepedia.com/Hunger#Behavior
2014-05-07Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner1-9/+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/+19
2014-04-24Add armor to switch() in ItemHandler.cppHowaner1-6/+25
2014-04-24Fix armor in survival mode.Howaner1-0/+7
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-1/+0
2014-04-04Fixed Clang warnings in itemhandlers.madmaxoft1-3/+3
2014-03-28Some fixes to lilypadsTiger Wang1-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
2014-03-16Add new leaves to all classes.Howaner1-0/+1
2014-03-16Add cakeHowaner1-0/+3
2014-03-14Add fireball interactHowaner1-0/+1
2014-03-02cBlockInfo now manages the respective cBlockHandlerandrew1-1/+1
2014-02-28Fixed multiple gcc warnings about unused params.madmaxoft1-1/+25
2014-02-23Rename SkullEntity to MobHeadEntityHowaner1-2/+2
2014-02-23Add Skulls/HeadsHowaner1-0/+2
2014-02-19Rename SkullEntity to MobHeadEntityHowaner1-2/+2
2014-02-18Implemented paintings, fixes #689Tiger Wang1-2/+4
+ Implemented paintings
2014-02-18Implemented item frames, a part of #689Tiger Wang1-0/+3
+ Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
2014-02-17Add Skulls/HeadsHowaner1-0/+2
2014-02-17Map item handler; Fixed several bugsandrew1-0/+2
2014-02-14EmptyMap item handlerandrew1-0/+2
2014-02-04Improved Type safety of eBlockFaceTycho1-3/+3
May Fix #640
2014-02-03Fixed #626Tiger Wang1-10/+15
* Fixed consumption of carrots and potatoes
2014-02-02Changed Signiture of OnUpdateTycho1-1/+4
2014-02-01Changed pointers to referencesTycho1-1/+1
2014-01-26Refactored GetPlacementBlockTypeMetaTycho1-1/+2
2013-12-19Implented cItemFishingRodHandler.STRWarrior1-0/+2
2013-12-18Implented Nether Wart.STRWarrior1-0/+2
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-16General fixes [SEE DESC]Tiger Wang1-0/+2
* Fixed faulty block face enumeration and functions + Added fireworks and exp bottle spawning * Fixed arrows again
2013-09-21Fixed pickup spawning with inherited gamemode.madmaxoft1-1/+1
2013-09-18Implemented redstone comparatorsTiger Wang1-0/+2
They can be placed and toggled, but stills needs proper redstone support
2013-09-18Multiple fixes [SEE DESC]Tiger Wang1-14/+0
- Removed two random block handling files in the item handling section that didn't do anything. (One was an attempt at making slabs work, but failed to realise that the coords would have to be the block CLICKED, and another was just a random empty file for handling wooden planks.) * Fixed placing repeater blocks not directioning properly * Fixed wood directions breaking plank metadata
2013-09-14Fixed empty-handed itemhandler.madmaxoft1-6/+6
This should fix FS 430.
2013-09-08Initial boat supportTiger Wang1-0/+6
+ Boats are saved + Boats have physics + Boats spawn
2013-08-30Basic support for thrown items - eggs, snowballs and ender pearls.madmaxoft1-0/+4
They can be thrown, but they don't do anything on impact. Also they don't save to nor load from MCA.
2013-08-30Shooting a bow kinda works.madmaxoft1-7/+15
The arrow is released, but sometimes hits wrong blocks or disappears completely.
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-1/+1
2013-08-16Feature and bugfixes [SEE DESC]Tiger Wang1-0/+2
Added TNT and Hopper minecarts Fixed piston code failing without an extension set Repeaters are now broken Fixed not being able to place a minecart on an activator rail Added much needed comments on piston code Fixed minor formatting issue
2013-08-08Fixed food handler for mushroom soup - proper food level and saturation are applied and the player receives a wooden bowl back after nommingJames Ravenscroft1-0/+1
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-500/+500
2013-07-28Implemented basic eating support.madmaxoft1-6/+9
Food is now properly consumed and it takes 1.5 sec.
2013-06-20Updated the stacking (Patch contributed by Stephen304)madmaxoft@gmail.com1-0/+16
http://forum.mc-server.org/showthread.php?tid=503&pid=8609#pid8609 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1614 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19Inventory code cleanup, players can now see each other's armormadmaxoft@gmail.com1-4/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-05Added carrots and potatoes handling, bonemealing and proper lighting.madmaxoft@gmail.com1-1/+3
FS #166 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1359 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03Added missing item types, fixed placing stone walls.madmaxoft@gmail.com1-16/+33
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1243 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-18Minecarts can now be placed.madmaxoft@gmail.com1-16/+24
No interaction, no physics, though. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1219 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com1-10/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 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-7/+7
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-21Fixed a possible crash on server restart.madmaxoft@gmail.com1-0/+1
May be related to FS #294 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1161 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-31/+19
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-29Cauldrons and Brewing Stands are now placeableluksor111@gmail.com1-0/+4
Cauldrons can be filled with water and used to fill bottles git-svn-id: http://mc-server.googlecode.com/svn/trunk@1116 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-27Added flower potsluksor111@gmail.com1-0/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1107 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15- Added the "wait" music discluksor111@gmail.com1-2/+2
- 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-21Added more item stacking sizes (patch contributed by Hanfer)madmaxoft@gmail.com1-26/+65
git-svn-id: http://mc-server.googlecode.com/svn/trunk@997 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-62/+62
git-svn-id: http://mc-server.googlecode.com/svn/trunk@977 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-18Added basic spawn eggs (patch contributed by Luksor)madmaxoft@gmail.com1-11/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@973 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-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Made beds placeablefaketruth1-0/+4
Android: Updated some stuff and set default view distance lower git-svn-id: http://mc-server.googlecode.com/svn/trunk@900 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-5/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04Fixed FS #243, server crash after restart. The blockhandler table and the itemhandler table weren't properly re-initialized.madmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@830 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-23Fixed Bug #237lapayo94@gmail.com1-0/+4
Sign placement git-svn-id: http://mc-server.googlecode.com/svn/trunk@781 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14Added a few more stackable itemsmadmaxoft@gmail.com1-12/+25
git-svn-id: http://mc-server.googlecode.com/svn/trunk@733 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11Added some stackable items in cItemHandler::GetMaxStackSize()madmaxoft@gmail.com1-0/+15
git-svn-id: http://mc-server.googlecode.com/svn/trunk@728 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11Added cItemHandler::GetMaxStackSize() with a very basic implementationmadmaxoft@gmail.com1-0/+16
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-88/+186
git-svn-id: http://mc-server.googlecode.com/svn/trunk@704 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-17Fixed incompatibility to apples c++ compiler...lapayo94@gmail.com1-1/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@680 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-17Simple health regeneration systemlapayo94@gmail.com1-10/+45
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-2/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 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-16fixed redstone repeater placementlapayo94@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@673 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+224
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