summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockBigFlower.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-28Do not fake a tool when converting to pickups (#5170)Tiger Wang1-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.
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx121-1/+7
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-28Fortune Drops (#4932)KingCol131-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>
2020-09-25Unify block entity pickup conversionTiger Wang1-1/+1
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-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>
2020-04-21Vector3 in Handlers (#4680)Mattes D1-5/+5
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-2/+2
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-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
2019-10-28Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D1-3/+8
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-88/+40
2018-01-05Item durability loss now depends on the item used. (#4123)Alexander Harkness1-4/+2
Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-12/+17
2017-08-01cBlockHandler: take player by refpeterbell101-5/+5
2017-07-07BigFlower fixes (#3826)peterbell101-3/+28
* BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
2017-06-19Generated tall flowers have flower type meta in both blockspeterbell101-1/+4
2017-06-14Double tall grass drops seeds when broken by water (#3763)dbhicks1-6/+15
2017-06-13FastRandom rewrite (#3754)peterbell101-2/+1
2017-04-06Replace double grass and large fern with placed blockLukas Pioch1-1/+23
2017-01-28Changed big flowers so they don't need air above them.Altenius1-1/+11
2017-01-28Changed big flowers so they can only be placed on dirtAltenius1-1/+4
2016-02-05Bulk clearing of whitespaceLogicParrot1-3/+3
2015-07-14Improved mapsTiger Wang1-5/+6
2015-03-20Correct world height validations.Tommy Santerre1-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
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-12/+0
Fixes #1618.
2014-09-26Removed more unessicary includesTycho1-1/+1
2014-09-13Improved cBlockHandler::DropBlockTiger Wang1-3/+3
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-6/+0
2014-08-19Code formatting fixes.Howaner1-3/+3
2014-07-24Fixed block dropsTiger Wang1-3/+3
* Fixes #1242 (the issue addressed within)
2014-07-17Fixed issues relating to saplings and leavesTiger Wang1-3/+3
- Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
2014-07-17Basic style fixes.madmaxoft1-2/+2
2014-04-03Change CanBeAt() from big flowerHowaner1-5/+1
2014-03-29Add "a_RelY < cChunkDef::Height" to BlockBigFlowerHowaner1-0/+1
2014-03-28Add tallgrass drop to big flowers.Howaner1-3/+40
Add tallgrass drop, when a players break a tallgrass with the shear.
2014-03-28door -> flowerHowaner1-1/+1
2014-03-28Add tall flower handler.Howaner1-0/+97