Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move item placement into item handlers (#5184) | Tiger Wang | 2021-05-05 | 1 | -72/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Wang | 2021-03-28 | 1 | -2/+2 |
| | | | | | * 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) | peterbell10 | 2020-10-05 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | * 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 conversion | Tiger Wang | 2020-09-25 | 1 | -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 Wang | 2020-09-20 | 1 | -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 D | 2020-04-21 | 1 | -17/+25 |
| | | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3. | ||||
* | Using Super. | Mattes D | 2020-04-16 | 1 | -4/+4 |
| | |||||
* | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) | Mattes D | 2020-04-03 | 1 | -0/+2 |
| | | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values | ||||
* | Refactored block-to-pickup conversion. (#4417) | Mattes D | 2019-10-16 | 1 | -11/+62 |
| | |||||
* | cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) | Bond-009 | 2017-11-20 | 1 | -2/+2 |
| | |||||
* | Removed unneeded includes (#3902) | Lukas Pioch | 2017-08-06 | 1 | -1/+0 |
| | |||||
* | cBlockHandler: take player by ref | peterbell10 | 2017-08-01 | 1 | -5/+5 |
| | |||||
* | cWorld::SendBlockTo take player by ref | peterbell10 | 2017-08-01 | 1 | -1/+1 |
| | |||||
* | Added some blocks and items (#3503) | mathiascode | 2017-02-14 | 1 | -1/+12 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -5/+5 |
| | |||||
* | Fixed typo | Mathias | 2016-01-03 | 1 | -1/+1 |
| | |||||
* | blockheight mechanism | Gargaj | 2015-12-13 | 1 | -0/+9 |
| | |||||
* | Improved maps | Tiger Wang | 2015-07-14 | 1 | -16/+68 |
| | |||||
* | Rebased version of Code | Samuel Barney | 2015-06-22 | 1 | -6/+0 |
| | |||||
* | Made -Weverything an error. | tycho | 2015-05-24 | 1 | -2/+2 |
| | |||||
* | Added mechanics placeable on halfslabs | Julian Laubstein | 2014-10-19 | 1 | -0/+1 |
| | |||||
* | Merge pull request #1415 from Masy98/blocks | Mattes D | 2014-09-26 | 1 | -1/+3 |
|\ | | | | | Added 1.8 Blocks and Items | ||||
| * | Added stone slab in BlockSlab.h | Masy98 | 2014-09-10 | 1 | -1/+3 |
| | | |||||
* | | Removed more unessicary includes | Tycho | 2014-09-26 | 1 | -0/+1 |
|/ | |||||
* | Moved sound-configs into BlockID.h and fixed/ added loads of sounds | Masy98 | 2014-09-09 | 1 | -23/+0 |
| | |||||
* | Changed comment. | Howaner | 2014-08-10 | 1 | -3/+1 |
| | |||||
* | Added comment. | Howaner | 2014-08-08 | 1 | -0/+3 |
| | |||||
* | Send the old slab to the client when the interact cancelled. | Howaner | 2014-08-08 | 1 | -0/+11 |
| | |||||
* | Basic style fixes. | madmaxoft | 2014-07-17 | 1 | -1/+1 |
| | |||||
* | Fixed the slab vertical mirroring. | madmaxoft | 2014-06-23 | 1 | -9/+6 |
| | |||||
* | Fix doubleslab meta. | Howaner | 2014-06-16 | 1 | -0/+1 |
| | |||||
* | Fixed MSVC 64-bit build warnings. | Mattes D | 2014-05-09 | 1 | -1/+1 |
| | |||||
* | Rename CanChangeDirtToGrass to CanDirtGrowGrass | Howaner | 2014-05-07 | 1 | -1/+1 |
| | |||||
* | Add CanChangeDirtToGrass function to Block Handlers. | Howaner | 2014-04-06 | 1 | -0/+6 |
| | |||||
* | Merge pull request #849 from mc-server/minorfixes | Mattes D | 2014-04-02 | 1 | -33/+10 |
|\ | | | | | Minor fixes | ||||
| * | Simplified and fixed slabs, fixes #835 | Tiger Wang | 2014-03-31 | 1 | -33/+10 |
| | | |||||
* | | Fixed clang warnings in BlockHandlers. | madmaxoft | 2014-04-01 | 1 | -0/+1 |
|/ | |||||
* | Fixed Minor typos. | narroo | 2014-03-26 | 1 | -1/+1 |
| | |||||
* | Added MetaRotate/Mirror Support for a number of classes. | narroo | 2014-03-24 | 1 | -2/+9 |
| | |||||
* | Use switch in GetStepSound | Howaner | 2014-02-28 | 1 | -7/+5 |
| | |||||
* | Fix Double Slabs, fix Slab Meta and add more things to burnable | Howaner | 2014-02-28 | 1 | -12/+23 |
| | |||||
* | Improved Type safety of eBlockFace | Tycho | 2014-02-04 | 1 | -1/+1 |
| | | | | May Fix #640 | ||||
* | Changed pointers to references | Tycho | 2014-02-01 | 1 | -2/+2 |
| | |||||
* | Changed signitures of Several BLockHandler Methods | Tycho | 2014-02-01 | 1 | -2/+2 |
| | | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check | ||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+182 |