summaryrefslogtreecommitdiffstats
path: root/src/Blocks/Mixins.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Re-implement up/down placement metadata (#5219)Tiger Wang2021-05-141-15/+21
| | | | + Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour. * Fixes #4651
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-58/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-29/+15
| | | | | | | | | | | | | | | * 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-2/+2
| | | | | - 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-36/+22
| | | | | | | | | | | | | * 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-9/+15
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-7/+7
|
* Fix rotation metas on blocksAlexander Harkness2020-04-111-4/+10
|
* fixing rotation - rel. #4625GefaketHD2020-04-111-14/+8
|
* Replace all single-digit hex constants with two-digit versionAlexander Harkness2020-04-101-12/+12
|
* Reduce line length on templatesAlexander Harkness2020-04-101-2/+19
|
* Add additional spacing between template/function definitionsAlexander Harkness2020-04-101-0/+9
|
* Add doxy-comments to new functionsAlexander Harkness2020-04-101-2/+4
|
* Fix comment textAlexander Harkness2020-04-101-8/+4
|
* Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness2020-04-101-0/+134
| | | | Also add observer block handler.
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-0/+166