summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSlab.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-72/+15
* 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>
2021-03-28Do not fake a tool when converting to pickups (#5170)Tiger Wang1-2/+2
* When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it. * Fixes #4795 - Remove unused a_Digger parameter to ConvertToPickups.
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-2/+2
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-25Unify block entity pickup conversionTiger Wang1-2/+2
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-36/+22
* BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-04-21Vector3 in Handlers (#4680)Mattes D1-17/+25
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-4/+4
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-0/+2
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
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-11/+62
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-2/+2
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-08-01cBlockHandler: take player by refpeterbell101-5/+5
2017-08-01cWorld::SendBlockTo take player by refpeterbell101-1/+1
2017-02-14Added some blocks and items (#3503)mathiascode1-1/+12
2016-02-05Bulk clearing of whitespaceLogicParrot1-5/+5
2016-01-03Fixed typoMathias1-1/+1
2015-12-13blockheight mechanismGargaj1-0/+9
2015-07-14Improved mapsTiger Wang1-16/+68
2015-06-22Rebased version of CodeSamuel Barney1-6/+0
2015-05-24Made -Weverything an error.tycho1-2/+2
2014-10-19Added mechanics placeable on halfslabsJulian Laubstein1-0/+1
2014-09-26Removed more unessicary includesTycho1-0/+1
2014-09-10Added stone slab in BlockSlab.hMasy981-1/+3
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-23/+0
2014-08-10Changed comment.Howaner1-3/+1
2014-08-08Added comment.Howaner1-0/+3
2014-08-08Send the old slab to the client when the interact cancelled.Howaner1-0/+11
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-06-23Fixed the slab vertical mirroring.madmaxoft1-9/+6
2014-06-16Fix doubleslab meta.Howaner1-0/+1
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-1/+1
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-1/+1
2014-05-07Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner1-1/+1
2014-04-06Add CanChangeDirtToGrass function to Block Handlers.Howaner1-0/+6
2014-04-01Fixed clang warnings in BlockHandlers.madmaxoft1-0/+1
2014-03-31Simplified and fixed slabs, fixes #835Tiger Wang1-33/+10
2014-03-26Fixed Minor typos.narroo1-1/+1
2014-03-24Added MetaRotate/Mirror Support for a number of classes.narroo1-2/+9
2014-02-28Use switch in GetStepSoundHowaner1-7/+5
2014-02-28Fix Double Slabs, fix Slab Meta and add more things to burnableHowaner1-12/+23
2014-02-04Improved Type safety of eBlockFaceTycho1-1/+1
May Fix #640
2014-02-01Changed pointers to referencesTycho1-2/+2
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-2/+2
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-08-24Added comments and fixed a bugTiger Wang1-39/+37
Bug was placing slabs between slabs not making a double slab.
2013-08-23Double slabs work *choke choke*Tiger Wang1-10/+48
2013-08-21Changed comments to be more accurateTiger Wang1-4/+4
2013-08-21Fixed longstanding issue with slabsTiger Wang1-1/+12
Fixes FS#298
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-70/+70
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-14/+31
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-8/+8
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-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-18/+20
( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 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-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-1/+10
http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-4/+13
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/+33
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