summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPlant.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-36/+30
| | | | | | | | | | | | | | | * 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-15/+7
| | | | | | | | | | | | | * 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>
* OnBroken/OnPlaced are for entity actionsTiger Wang2020-08-041-1/+1
| | | | | | * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-6/+11
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Using Super.Mattes D2020-04-161-2/+2
|
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-17/+44
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-32/+48
|
* cBlockInfo static initialisation (#3832)peterbell102017-07-031-1/+1
|
* FastRandom rewrite (#3754)peterbell102017-06-131-2/+1
|
* Added CircleCI for stylechecking.Mattes D2015-09-171-3/+2
| | | | This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks
* * Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.Samuel Barney2015-08-191-0/+132
* Blocks now have an effect upon plant growth, just like in vanilla.