summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix Block Entity Placement in Generation (#5060)x12xx12x12 days1-4/+5
| | | | | | | | | | | | | | | | * block area in chunk desc now handles block entities some minor changes block entities validate and correct their position when put into the world * fixed checkstyle * Fixed Build * Removed Empty File --------- Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
* Prepare ChunkData for BlockState storage (#5105)Tiger Wang2021-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-2/+0
| | | | | | | | | | | | | * 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>
* Manage block entity lifetime with unique_ptr (#4080)peterbell102020-04-031-11/+2
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-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 D2019-10-161-0/+7
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-0/+9
|
* cBlockArea: Write all present data types by default (#4252)peterbell102018-07-191-2/+18
| | | | | cBlockArea::Write now defaults to use GetDataTypes() instead of assuming all data types are present. Fixes cuberite/WorldEdit#130
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-4/+5
|
* cBlockArea: change MakeIndex to return size_tpeterbell102017-09-111-39/+7
|
* cBlockArea: use unique_ptrpeterbell102017-09-111-11/+54
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-6/+5
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-5/+6
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* BlockArea: Added the GetBounds function.Mattes D2017-07-221-2/+6
|
* cBlockArea supports block entities. (#3795)Mattes D2017-06-241-30/+111
|
* Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D2017-02-051-5/+5
| | | The original bindings accepted nil as the World param, causing a crash.
* Bulk clearing of whitespaceLogicParrot2016-02-051-64/+64
|
* cBlockArea: Added CountSpecificBlocks() API function.Mattes D2015-06-081-0/+9
|
* Made -Weverything an error.tycho2015-05-241-1/+1
|
* Added cBlockArea:CountNonAirBlocks API function.Mattes D2015-04-301-1/+5
|
* Added cBlockArea::msSimpleCompare merge strategy.Mattes D2015-04-291-0/+17
|
* Added cBlockArea:GetNonAirCropRelCoords() API function.Mattes D2015-04-291-0/+5
| | | | Fixes #1915.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-70/+74
|
* convert old style casts to fix warningsSteven Riehl2014-10-121-70/+66
|
* More template keyword fixes.Mattes D2014-08-281-1/+1
|
* Fixed basic whitespace problems.madmaxoft2014-07-171-2/+2
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Renamed cChunkBuffer to cChunkDataTycho2014-05-211-1/+1
|
* Fixed minor style issuesTycho2014-05-211-2/+2
|
* Fixed issue with types not being defined for an unused parameterTycho2014-05-181-0/+1
|
* Merge branch 'master' into chunksparsing/structsTycho2014-05-031-1/+1
|\ | | | | | | | | Conflicts: src/Chunk.cpp
| * Fixed warning in cBlockArea.madmaxoft2014-05-011-1/+1
| |
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-011-1/+4
|\|
| * Template MagicTycho2014-04-281-1/+4
| | | | | | | | | | | | Removed need to allocate a fake meta block by using templates to provide a version of the code that does not use metas. Also changed the function to a template argument to make sure that the compilier is able to inline it.
* | Implemented Chunk Sparsing with segmentsTycho2014-04-261-4/+1
|/
* Merged branch 'msDifference'.madmaxoft2014-04-011-0/+1
|\
| * Added new merge strategy "msDifference"STRWarrior2014-03-311-0/+1
| |
* | cBlockArea: Added the msMask merge strategy.madmaxoft2014-04-011-0/+9
|/
* Implemented the msSpongePrint merge strategy.madmaxoft2014-03-281-2/+11
| | | | Similar to msImprint, but allows prefabs to carve out air pockets, too. The sponge block is used as the NOP block.
* BlockArea: Create() can take the size as Vector3i, too.madmaxoft2014-03-251-2/+8
|
* BlockArea: Switched internal coords to Vector3i.madmaxoft2014-03-251-17/+19
|
* Merge remote-tracking branch 'xdot/master'madmaxoft2014-03-121-1/+1
|\
| * Unified Vector classesandrew2014-03-111-1/+1
| |
* | Renamed cBlockArea Offset to WEOffset.madmaxoft2014-03-121-4/+5
| | | | | | | | Even in getters / setters.
* | Renamed m_Offset to m_WEOffsetSTRWarrior2014-03-111-2/+3
| |
* | Using ```const Vector3i &```STRWarrior2014-03-111-2/+2
| |
* | This allows a blockarea to have an Offset.STRWarrior2014-03-101-0/+5
|/
* Added useful parameter overloads to cBlockArea Lua API.madmaxoft2014-02-241-0/+38
|
* Added cBlockArea::GetVolume, exported to Lua API.madmaxoft2014-02-231-27/+30
|
* Fixed bindings for cBlockArea:Get(Rel)BlockTypeMeta().madmaxoft2014-02-201-0/+6
| | | | They no longer require the ghost output params.
* Moved Schematic file methods to seperate classTycho2014-01-201-17/+1
|
* Seperated BlockArea From WorldTycho2014-01-201-6/+3
| | | | If anyone can come up with a better name for the interface I'll change it, It contians to methods which do compleatly unrelated things
* Moved source to srcAlexander Harkness2013-11-241-0/+310