summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSugarcane.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Handlers: update item and block handlers (#5371)Tiger Wang2022-01-021-140/+0
| | | | | | | + Resend blocks when server rejects placement because in a block * Fix chest handler not invoked, fixes #5367 * Fix comparator handler not invoked * Update some naming
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-1/+1
| | | | | * 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-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>
* Unify block entity pickup conversionTiger Wang2020-09-251-1/+1
| | | | | - 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-18/+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>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-13/+9
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-3/+3
|
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-13/+52
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-7/+18
|
* Sugar cane can be near frosted ice (#4133)Bond-0092018-01-051-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-1/+1
|
* * Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.Samuel Barney2015-08-191-4/+21
| | | | * Blocks now have an effect upon plant growth, just like in vanilla.
* Improved mapsTiger Wang2015-07-141-3/+6
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-6/+0
|
* Code formatting fixes.Howaner2014-08-191-0/+1
|
* Changed Signiture of OnUpdateTycho2014-02-021-1/+1
|
* 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
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-1/+1
|
* Changed cBlockHandler->OnUpdate() to use cChunk directly.madmaxoft2013-11-301-2/+2
|
* Moved source to srcAlexander Harkness2013-11-241-0/+90