summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockVine.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Handlers: update item and block handlers (#5371)Tiger Wang2022-01-021-271/+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-66/+49
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Remove DoesDropOnUnsuitableTiger Wang2021-03-151-13/+0
| | | | This is only overridden false in Vines and Snow. It is called when a CanBeAt check fails, to determine whether DropBlockAsPickups is called. However, Vines and Snow already drop nothing without the right tool, so this function is superfluous.
* cChunk: don't inherit from cChunkDef (#5106)Tiger Wang2021-01-181-1/+1
|
* 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-19/+14
| | | | | | | | | | | | | * 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>
* Corrected wakeup sequencesTiger Wang2020-08-041-10/+9
| | | | | | | * Pistons/Ice no longer need to FastSetBlock first (#4600), and the former don't drop items when broken in creative - Begin migration away from stationary fluids * Tick the chunk after applying a client's changed * Broadcast pending blocks at the end of a tick
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-2/+1
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Vector3 in Handlers (#4680)Mattes D2020-04-211-6/+8
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-5/+13
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Using Super.Mattes D2020-04-161-2/+2
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-23/+90
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-4/+4
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-2/+2
|
* cBlockHandler: take player by refpeterbell102017-08-011-1/+1
|
* BigFlower fixes (#3826)peterbell102017-07-071-1/+1
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Fix shears (and vines)Bond-0092017-06-211-1/+7
| | | | | | | * Shears now lose durability when breaking any block * Leaves don't drop 2 leaves anymore when broken by shears * Removed the chance to drop saplings or apples when leaves are broken by shears * Vines can't be attached to ender chests, pistons and redstone repeaters
* Bulk clearing of whitespaceLogicParrot2016-02-051-4/+4
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-2/+2
|
* Improved mapsTiger Wang2015-07-141-16/+8
|
* Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2015-05-231-1/+1
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Merge branch 'master' into BlockFixesHowaner2014-10-211-2/+10
|\
| * Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-2/+10
| |
* | Corrected IsBlockAttachable() in BlockVine.hHowaner2014-10-071-5/+15
|/
* Removed more unessicary includesTycho2014-09-261-1/+1
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-6/+0
|
* Code formatting fixes.Howaner2014-08-191-3/+3
|
* Fix item durability.Howaner2014-07-231-0/+7
| | | Fixes #1181
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Fixed clang warnings in BlockHandlers.madmaxoft2014-04-011-2/+2
|
* Fixed a few Clang warnings in BlockHandlers.madmaxoft2014-03-301-2/+2
|
* Merge pull request #834 from narroo/issue503Mattes D2014-03-301-1/+1
|\ | | | | Issue503 pull Request
| * Fixed spelling; Rotater to Rotator.narroo2014-03-251-1/+1
| |
* | Change SpreadSource prefix to ssHowaner2014-03-271-1/+1
| |
* | Add SpreadSourceHowaner2014-03-271-1/+4
| |
* | Add new leaves to all classes.Howaner2014-03-161-1/+1
|/
* Merge pull request #775 from worktycho/warningsMattes D2014-03-091-3/+13
|\ | | | | Fixed a few warnings
| * Fixed warningsTycho2014-03-071-3/+13
| |
* | Merge pull request #729 from worktycho/MetaRotateMattes D2014-03-081-4/+4
|\ \ | |/ |/| Alternitive solution to #503
| * Reverted BlockVineworktycho2014-03-021-3/+27
| |
| * Implemented RotationsTycho2014-03-011-27/+3
| |
* | g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-1/+1
|/
* Improved Type safety of eBlockFaceTycho2014-02-041-1/+1
| | | | May Fix #640
* Changed Signiture of OnUpdateTycho2014-02-021-2/+2
|
* Changed pointers to referencesTycho2014-02-011-3/+3
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-3/+3
| | | | | | | | | | | | | 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
|
* Moved source to srcAlexander Harkness2013-11-241-0/+201