summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCauldron.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Updated protocol functions to Vector3xx12xx12x2022-04-201-2/+3
| | | | also added support in included functions
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-1/+1
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* Add player statistics to API (#5193)nshah252021-05-031-2/+2
| | | | | | * Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.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
* Cauldron: backport "use" behaviour to 1.12 (#4902)Tiger Wang2020-09-201-10/+20
| | | * Cauldron: backport "use" behaviour to 1.12
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-12/+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>
* Added armor and shulker box cleaning (#4875)12xx122020-09-201-2/+57
| | | + Added armor and shulker box cleaning
* Add more statistic tracking (#4837)12xx122020-09-051-0/+2
| | | | | | | | + Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-7/+14
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-7/+31
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Using Super.Mattes D2020-04-161-2/+2
|
* Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness2020-04-021-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | * Replace buckets to the selected hotbar slot, rather than the first available. Replicates vanilla behaviour, as well as being more logical. * Refactor cInventory::AddItem. Behaviour is now documented * Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods * Return empty potion to the same slot after drinking * Replace buckets correctly in other situations, not simply water and lava Uses the new ReplaceOneEquippedItem method * Correct collecting water from source block with bottle * Add cPlayer::ReplaceOneEquippedItemTossRest method * Handle stacked filled buckets (in theory) Use new cPlayer::ReplaceOneEquippedItemTossRest method
* Fix certain item drops (#4536)Mat2020-03-231-2/+7
| | | | | | | | | | | * Fix certain item drops * Revert unwanted changes * Revert unwanted changes * Revert change * Style fixes
* Don't remove items twice (#4524)Mat2020-03-221-4/+2
| | | * Don't remove items twice
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-7/+5
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-1/+1
|
* cBlockHandler: take player by refpeterbell102017-08-011-7/+7
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+2
|
* Improved mapsTiger Wang2015-07-141-0/+6
|
* Cauldrons check the heightmapTiger Wang2014-06-141-1/+5
|
* Added checks for no downfall biomesTiger Wang2014-06-041-1/+1
|
* Cauldrons fillTiger Wang2014-05-291-0/+14
|
* Fixed a few Clang warnings in BlockHandlers.madmaxoft2014-03-301-1/+1
|
* Fix CauldronHowaner2014-02-201-8/+11
|
* Add 'Meta < 3' to CauldronHowaner2014-02-201-5/+8
|
* Refactored cBlockHandler::OnUse and dependentsTycho2014-01-261-4/+4
|
* First attempt at Implementing InterfacesTycho2014-01-251-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+59