summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockStairs.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow certain blocks to be placed on top of upside-down stairs/slabs (#5468)Michal Havlíček2023-01-251-3/+26
| | | | | | | | | | | * Placing certain blocks on top of upside down slabs and stairs * remove TODO * fix style errors * IsAnyStairType helper function * Block placement on stairs and slabs
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-70/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-1/+1
| | | | | | | | | | | | | | | * 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>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-10/+5
| | | | | | | | | | | | | * 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-16/+34
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+2
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-10/+7
|
* cBlockHandler: take player by refpeterbell102017-08-011-2/+2
|
* Added some blocks and items (#3503)mathiascode2017-02-141-0/+1
|
* blockheight mechanismGargaj2015-12-131-0/+32
|
* Improved mapsTiger Wang2015-07-141-3/+26
|
* Rebased version of CodeSamuel Barney2015-06-221-6/+0
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-18/+0
|
* Code formatting fixes.Howaner2014-08-191-10/+10
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-1/+1
| | | | | 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.
* Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner2014-05-071-1/+1
|
* Add CanChangeDirtToGrass function to Block Handlers.Howaner2014-04-061-0/+5
|
* Fixed clang warnings in BlockHandlers.madmaxoft2014-04-011-2/+2
|
* Fixed spelling; Rotater to Rotator.narroo2014-03-251-3/+3
|
* Merge pull request #775 from worktycho/warningsMattes D2014-03-091-0/+8
|\ | | | | Fixed a few warnings
| * Fixed warningsTycho2014-03-071-0/+8
| |
* | ReformattedTycho2014-03-021-2/+2
| |
* | Implemented RotationsTycho2014-03-011-65/+3
|/
* Improved Type safety of eBlockFaceTycho2014-02-041-1/+1
| | | | May Fix #640
* Changed pointers to referencesTycho2014-02-011-1/+1
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-1/+1
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-1/+1
|
* Removed obsoleted functionsTiger Wang2014-01-161-1/+1
|
* Stairs reset meta when dropped, fixes #269Tiger Wang2013-11-291-2/+22
| | | | Additionally, they now have walking sounds.
* Moved source to srcAlexander Harkness2013-11-241-0/+152