summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockAnvil.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-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>
* cWindow: Convert XYZ to Vector3 (#4764)MaxwellScroggs2020-07-041-1/+1
|
* Vector3 in Handlers (#4680)Mattes D2020-04-211-6/+27
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-5/+6
|
* Fix rotation metas on blocksAlexander Harkness2020-04-111-15/+9
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-2/+10
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-5/+5
|
* Fixes problems with windows:Lukas Pioch2017-06-051-1/+1
| | | | | - Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-2/+2
|
* Improved mapsTiger Wang2015-07-141-4/+6
|
* Fixed a lot of warningstycho2015-05-191-4/+4
|
* Own classes for all windows.Howaner2014-12-131-0/+1
|
* Fixed conversion warning.Mattes D2014-08-291-1/+1
|
* Fixed anvil placing.Hownaer2014-08-281-5/+6
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Add clicks, exp subtraction, item check, ...Howaner2014-05-051-1/+1
|
* Add anvil window and slot area.Howaner2014-05-051-0/+7
|
* Simplified the anvil placement code.madmaxoft2014-04-011-11/+9
|
* Fixed a few Clang warnings in BlockHandlers.madmaxoft2014-03-301-5/+5
|
* Fix anvil pickups.Howaner2014-03-161-1/+1
|
* Add anvil direction.Howaner2014-03-161-0/+63