summaryrefslogtreecommitdiffstats
path: root/src/Blocks/Mixins.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-14Re-implement up/down placement metadata (#5219)Tiger Wang1-15/+21
+ Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour. * Fixes #4651
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-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>
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-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-25Unify block entity pickup conversionTiger Wang1-2/+2
- 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-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>
2020-04-21Vector3 in Handlers (#4680)Mattes D1-9/+15
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-7/+7
2020-04-11Fix rotation metas on blocksAlexander Harkness1-4/+10
2020-04-11fixing rotation - rel. #4625GefaketHD1-14/+8
2020-04-10Replace all single-digit hex constants with two-digit versionAlexander Harkness1-12/+12
2020-04-10Reduce line length on templatesAlexander Harkness1-2/+19
2020-04-10Add additional spacing between template/function definitionsAlexander Harkness1-0/+9
2020-04-10Add doxy-comments to new functionsAlexander Harkness1-2/+4
2020-04-10Fix comment textAlexander Harkness1-8/+4
2020-04-10Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness1-0/+134
Also add observer block handler.
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-0/+166