summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemSword.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-02ItemHandler initialisation is a constant expression (#5344)x12xx12x1-10/+6
* 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
2020-04-16Using Super.Mattes D1-4/+6
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-3/+3
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
2018-02-05Deal with covered switches consistently (#4161)peterbell101-0/+1
* Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
2018-01-05Item durability loss now depends on the item used. (#4123)Alexander Harkness1-10/+3
Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-2/+0
2016-11-13Added missing "override" specifier.Mattes D1-1/+1
2016-11-06Anticheat fastbreak (#3411)mohe20151-0/+28
Added block hardness checks when breaking blocks.
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-1/+4
2014-07-27Hotfixed compilation problems.madmaxoft1-1/+1
2014-07-26Rename function.Howaner1-1/+1
2014-07-24Fixed block dropsTiger Wang1-1/+0
* Fixes #1242 (the issue addressed within)
2014-07-23Fix item durability.Howaner1-2/+15
Fixes #1181
2014-05-06Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner1-6/+6
2014-05-05Add anvil window and slot area.Howaner1-0/+13
2014-02-23Use the ItemCategorie::IsSword() Method.Howaner1-19/+0
2014-02-23No Sword Block Destroying in Creative ModeHowaner1-0/+19
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-3/+12
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-20/+20
2013-04-06Cobwebs are now washed away by water and can be broken by swords and shears, giving string.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1363 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-2/+2
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-2/+2
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-3/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 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-15A new Block handling system :olapayo94@gmail.com1-0/+19
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