summaryrefslogtreecommitdiffstats
path: root/src/Blocks/ChunkInterface.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-1/+1
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885)KingCol132020-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed BiomeDef.h * Removed ChunkDef.h from Globals.h * Added to CONTRIBUTORS. * Re-added empty last line to Globals.h * Included stddef and StringUtils in BiomeDef.h * Fixed build tools compiling. It compiles, but at what cost? * Added include to src/Generating/Trees.h * Include added in ChunkGeneratorThread.h * Moved rearranged includes in LineBlockTracer.cpp * Re-arrange headers in ChunkInterface.cpp * Included ChunkDef.h in Path.h * Included ChunkDef.h in NBTChunkSerializer.h * Rearranged included and added required includes to headers. * Removed unnecessary included in StringUtils.h.
* Remove unneeded MarkDirty, SendToClients parameters of SetMetaTiger Wang2020-08-281-7/+3
| | | | | | | | Partially reverts #3129, whose addition of these parameters was superseded by #3149 that fixed generated leaves' metas. References: https://github.com/cuberite/cuberite/pull/4417#discussion_r334950513 e0bcd754009f16480437b2c1fa5e7fbedab31496
* OnBroken/OnPlaced are for entity actionsTiger Wang2020-08-041-0/+4
| | | | | | * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+7
| | | | | | | | | 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
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-6/+17
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-4/+15
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-4/+3
|
* Updated cChunk::SetMeta, fixed grass growth, reduced markDirty/setMeta usageLogicParrot2016-04-161-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-8/+8
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-2/+0
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+3
|
* Removed more unessicary includesTycho2014-09-261-1/+2
|
* Merge branch 'master' into redstoneTestsTycho2014-09-171-1/+1
|\ | | | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| * Fixed farmland issues.Howaner2014-09-121-2/+2
| |
* | Added first test to show the object can be createdTycho2014-09-171-50/+13
|/
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-2/+2
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Forgotten changes to cChunkInterface.madmaxoft2014-03-011-2/+2
|
* Removed cBlockHandler forward declaration from cChunkInterface.madmaxoft2014-03-011-9/+22
| | | | Wasn't needed. Also reformatted the code.
* Changed Signiture of OnDestroyedByPlayerTycho2014-02-011-0/+5
|
* Changed pointers to referencesTycho2014-02-011-3/+3
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-0/+4
| | | | | | | | | | | | | 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-7/+51
|
* First attempt at Implementing InterfacesTycho2014-01-251-0/+26