summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockChest.h (unfollow)
Commit message (Collapse)AuthorFilesLines
48 hoursClean up CanBeAt Functions (#5587)Alexander Harkness1-1/+1
* Use cChunkDef::IsValidHeight for CanBeAt functions, and related helpers. * Add mixins for SolidSurfaceUnderneat and DirtLikeUnderneath * Minor fixes after change review.
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-182/+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>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-25Unify block entity pickup conversionTiger Wang1-3/+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-41/+32
* 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-13/+14
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-3/+3
2020-04-11Fix rotation metas on blocksAlexander Harkness1-2/+2
2020-04-10Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness1-10/+14
Also add observer block handler.
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-9/+31
2017-08-01cBlockHandler: take player by refpeterbell101-2/+2
2017-02-05Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D1-2/+2
The original bindings accepted nil as the World param, causing a crash.
2016-02-05Bulk clearing of whitespaceLogicParrot1-8/+8
2015-07-14Improved mapsTiger Wang1-7/+7
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-52/+13
Fixes #1618.
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-6/+0
2014-07-17Basic style fixes.madmaxoft1-2/+2
2014-07-07Implemented trapped chests & othersTiger Wang1-22/+22
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-0/+1
2014-03-30Fixed chest rotator.madmaxoft1-2/+2
2014-03-25Fixed spelling; Rotater to Rotator.narroo1-3/+3
2014-03-24Added MetaRotate/Mirror Support for a number of classes.narroo1-2/+2
2014-03-02ReformattedTycho1-2/+2
2014-03-01Fixed errorsTycho1-1/+1
2014-03-01Implemented RotationsTycho1-2/+3
2014-02-27Added some Metadate rotaters using templated MixinTycho1-2/+2
2014-02-04Improved Type safety of eBlockFaceTycho1-2/+2
May Fix #640
2014-02-04Fixed chest placement.madmaxoft1-2/+4
Fixes #624.
2014-02-02Fixed #624Tiger Wang1-0/+6
2014-02-01Changed pointers to referencesTycho1-9/+9
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-3/+8
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2014-01-26Refactored GetPlacementBlockTypeMetaTycho1-1/+0
2014-01-26Refactored cBlockHandler::OnUse and dependentsTycho1-13/+13
2014-01-17Removed internal cEntity::GetRot() usage.madmaxoft1-5/+5
2014-01-16Removed obsoleted functionsTiger Wang1-2/+2
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-1/+1
2013-08-05Added the Carpet block.madmaxoft1-0/+1
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-222/+222
2013-03-09Pickups are now being saved into Anvil.madmaxoft@gmail.com1-3/+3
Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-30/+78
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-20Double chests are formed correctly in all situations (meta is adjusted for the neighboring chest)madmaxoft@gmail.com1-2/+70
git-svn-id: http://mc-server.googlecode.com/svn/trunk@991 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-20Chest does check if it can be placed at the coords specified (the client does the check itself, too, but this may be good for scripts)madmaxoft@gmail.com1-0/+68
git-svn-id: http://mc-server.googlecode.com/svn/trunk@989 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-5/+5
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-5/+17
( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-1/+5
http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+22
It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6