summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockBigFlower.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* styleTiger Wang2022-02-091-12/+11
|
* Correct Indentation IFRodarg2022-02-091-2/+5
|
* Update BlockBigFlower.hRodarg2022-02-091-1/+9
| | | | Made compliant with review
* Update BlockBigFlower.hRodarg2022-02-091-6/+2
| | | | Removed if statement checking if the top part of the block was broken and replaced the dropBlockAsPickups to SetBlock(Air)
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-1/+7
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.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>
* Fortune Drops (#4932)KingCol132020-09-281-2/+10
| | | | | | | + Implemented and standardized all clamped discrete random drops. + Changed cItems Add from push_back to emplace_back. Implement fortune for crops. + Enabled hoes to be enchanted with efficiency, silk touch and fortune. Made leaves, gravel and crops affected by fortune. 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-13/+8
| | | | | | | | | | | | | * 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-5/+5
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+2
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | 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
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-3/+8
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-88/+40
|
* Item durability loss now depends on the item used. (#4123)Alexander Harkness2018-01-051-4/+2
| | | | | | | Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-12/+17
|
* cBlockHandler: take player by refpeterbell102017-08-011-5/+5
|
* BigFlower fixes (#3826)peterbell102017-07-071-3/+28
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Generated tall flowers have flower type meta in both blockspeterbell102017-06-191-1/+4
|
* Double tall grass drops seeds when broken by water (#3763)dbhicks2017-06-141-6/+15
|
* FastRandom rewrite (#3754)peterbell102017-06-131-2/+1
|
* Replace double grass and large fern with placed blockLukas Pioch2017-04-061-1/+23
|
* Changed big flowers so they don't need air above them.Altenius2017-01-281-1/+11
|
* Changed big flowers so they can only be placed on dirtAltenius2017-01-281-1/+4
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-3/+3
|
* Improved mapsTiger Wang2015-07-141-5/+6
|
* Correct world height validations.Tommy Santerre2015-03-201-1/+1
| | | | | Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-12/+0
| | | | Fixes #1618.
* Removed more unessicary includesTycho2014-09-261-1/+1
|
* Improved cBlockHandler::DropBlockTiger Wang2014-09-131-3/+3
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-6/+0
|
* Code formatting fixes.Howaner2014-08-191-3/+3
|
* Fixed block dropsTiger Wang2014-07-241-3/+3
| | | | * Fixes #1242 (the issue addressed within)
* Merge branch 'master' into saplingsandleavesTiger Wang2014-07-201-2/+2
|\ | | | | | | | | | | Conflicts: src/Bindings/DeprecatedBindings.cpp src/Blocks/BlockSapling.h
| * Basic style fixes.madmaxoft2014-07-171-2/+2
| |
* | Fixed issues relating to saplings and leavesTiger Wang2014-07-171-3/+3
|/ | | | | | - Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
* Change CanBeAt() from big flowerHowaner2014-04-031-5/+1
|
* Add "a_RelY < cChunkDef::Height" to BlockBigFlowerHowaner2014-03-291-0/+1
|
* Add tallgrass drop to big flowers.Howaner2014-03-281-3/+40
| | | Add tallgrass drop, when a players break a tallgrass with the shear.
* door -> flowerHowaner2014-03-281-1/+1
|
* Add tall flower handler.Howaner2014-03-281-0/+97