summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockBed.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Re-implement up/down placement metadata (#5219)Tiger Wang2021-05-141-2/+6
| | | | + 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-5/+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>
* Improve bed handling robustnessTiger Wang2021-04-121-17/+28
| | | | + Boot the player out if the bed was destroyed
* 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.
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-1/+2
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* 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-6/+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-43/+30
| | | | | | | | | | | | | * 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>
* Update bed behavior (#4545)Mat2020-08-051-0/+6
|
* Vector3 in Handlers (#4680)Mattes D2020-04-211-4/+24
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+2
|
* Replace all single-digit hex constants with two-digit versionAlexander Harkness2020-04-101-2/+2
|
* Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness2020-04-101-20/+2
| | | | Also add observer block handler.
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-2/+2
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-15/+29
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-1/+1
|
* Bed piston fix (#3956)Lane Kolbly2017-08-251-1/+1
| | | | | | | | | | | | * Threaded world interface into ConvertBlockToPickups * Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call. * Removed unused a_Digger argument. * Removed incorrect comment * This time actually removed a_Digger references.
* Replaced includes with forward declarationsLukas Pioch2017-08-131-1/+1
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-2/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-2/+2
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-8/+13
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+1
|
* Improved mapsTiger Wang2015-07-141-1/+6
|
* Rebased version of CodeSamuel Barney2015-06-221-5/+0
|
* Made -Weverything an error.tycho2015-05-241-1/+1
|
* Handle client 'leave bed' requestTiger Wang2015-02-081-8/+17
| | | | * Fixes #1728
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-1/+0
| | | | Fixes #1618.
* BasicStyle: Added missing braces to control statements.Mattes D2014-12-051-1/+4
|
* Removed more unessicary includesTycho2014-09-261-3/+5
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner2014-05-071-1/+1
|
* Add CanChangeDirtToGrass function to Block Handlers.Howaner2014-04-061-0/+7
|
* Fixed spelling; Rotater to Rotator.narroo2014-03-251-3/+3
|
* ReformattedTycho2014-03-021-2/+2
|
* Implemented RotationsTycho2014-03-011-2/+2
|
* Added some Metadate rotaters using templated MixinTycho2014-02-271-2/+3
|
* Improved Type safety of eBlockFaceTycho2014-02-041-2/+2
| | | | May Fix #640
* Changed pointers to referencesTycho2014-02-011-3/+3
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-1/+1
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Refactored cBlockHandler::OnUse and dependentsTycho2014-01-261-1/+1
|
* First attempt at Implementing InterfacesTycho2014-01-251-4/+5
|
* Moved source to srcAlexander Harkness2013-11-241-0/+67