summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSlab.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-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>
* Do not fake a tool when converting to pickups (#5170)Tiger Wang2021-03-281-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.
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-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>
* Unify block entity pickup conversionTiger Wang2020-09-251-2/+2
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-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>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-17/+25
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-4/+4
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-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
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-11/+62
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-2/+2
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-5/+5
|
* cWorld::SendBlockTo take player by refpeterbell102017-08-011-1/+1
|
* Added some blocks and items (#3503)mathiascode2017-02-141-1/+12
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-5/+5
|
* Fixed typoMathias2016-01-031-1/+1
|
* blockheight mechanismGargaj2015-12-131-0/+9
|
* Improved mapsTiger Wang2015-07-141-16/+68
|
* Rebased version of CodeSamuel Barney2015-06-221-6/+0
|
* Made -Weverything an error.tycho2015-05-241-2/+2
|
* Added mechanics placeable on halfslabsJulian Laubstein2014-10-191-0/+1
|
* Merge pull request #1415 from Masy98/blocksMattes D2014-09-261-1/+3
|\ | | | | Added 1.8 Blocks and Items
| * Added stone slab in BlockSlab.hMasy982014-09-101-1/+3
| |
* | Removed more unessicary includesTycho2014-09-261-0/+1
|/
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-23/+0
|
* Changed comment.Howaner2014-08-101-3/+1
|
* Added comment.Howaner2014-08-081-0/+3
|
* Send the old slab to the client when the interact cancelled.Howaner2014-08-081-0/+11
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Fixed the slab vertical mirroring.madmaxoft2014-06-231-9/+6
|
* Fix doubleslab meta.Howaner2014-06-161-0/+1
|
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-091-1/+1
|
* Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner2014-05-071-1/+1
|
* Add CanChangeDirtToGrass function to Block Handlers.Howaner2014-04-061-0/+6
|
* Merge pull request #849 from mc-server/minorfixesMattes D2014-04-021-33/+10
|\ | | | | Minor fixes
| * Simplified and fixed slabs, fixes #835Tiger Wang2014-03-311-33/+10
| |
* | Fixed clang warnings in BlockHandlers.madmaxoft2014-04-011-0/+1
|/
* Fixed Minor typos.narroo2014-03-261-1/+1
|
* Added MetaRotate/Mirror Support for a number of classes.narroo2014-03-241-2/+9
|
* Use switch in GetStepSoundHowaner2014-02-281-7/+5
|
* Fix Double Slabs, fix Slab Meta and add more things to burnableHowaner2014-02-281-12/+23
|
* Improved Type safety of eBlockFaceTycho2014-02-041-1/+1
| | | | May Fix #640
* Changed pointers to referencesTycho2014-02-011-2/+2
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-2/+2
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Moved source to srcAlexander Harkness2013-11-241-0/+182