summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntity.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Alpha-sort cChestEntity * Chests: use SendUpdateBlockEntity * Pathfinder: fix out of range Y * 1.13: correct weather packet ID * Chests: fix neighbour scanner + Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest. * Fix typo in cross coords computation. * Simplify hopper logic. * Block entities: ASSERT that type is correct If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type. * Chunk: fix some forgotten PendingSendBE cleanup + Add cleanup in SetAllData, WriteBlockArea - Remove RemoveBlockEntity (used once), HasBlockEntity (not used) * Replace MakeIndex with MakeIndexNoCheck * Remove extraneous MarkDirty in hopper & chests
* Fix potential destruction crashes (#5095)Tiger Wang2021-01-021-45/+34
| | | | | | | | | | * Fix potential destruction crashes * Fix destructors accessing destroyted objects * Fix cPlayer not destroying windows (Destroyed never called) * Tentatively fixes #4608, fixes #3236, fixes #3262 - Remove cEntity::Destroyed() and replace with cEntity::OnRemoveFromWorld() * Add missing call to OnRemoveFromWorld
* Remove BLOCKENTITY_PROTODEFTiger Wang2020-10-241-39/+1
|
* Fixing Mob spawner behaviour (#4930)12xx122020-09-271-1/+1
| | | | | | | | | | | | | | | | | | | * fixed mob spawner failure (whoopsie in the BlockEntity.GetChunkZ()) Style * fixed spawning behaviour * fixed saving entity type saving * checkstyle * removed debug log * removed short saving * Style 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.
* BlockEntity: clarify ConvertToPickups behaviourTiger Wang2020-09-251-1/+1
|
* Unify block entity pickup conversionTiger Wang2020-09-251-0/+5
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* Precompile unordered_map/setTiger Wang2020-07-191-1/+0
| | | | | | + Add inclusions to Globals.h * Sort Globals.h - Remove sys/stat.h from Globals.h
* Using Super.Mattes D2020-04-161-2/+2
|
* Manage block entity lifetime with unique_ptr (#4080)peterbell102020-04-031-2/+7
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-32/+34
|
* cBlockArea supports block entities. (#3795)Mattes D2017-06-241-0/+8
|
* BlockEntities: Support cloning self.Mattes D2017-06-161-3/+19
|
* Added a nullptr check to cEntity::IsA (#3659)Marvin Kopf2017-04-011-1/+1
| | | Fixes #3603
* Bulk clearing of whitespaceLogicParrot2016-02-051-16/+16
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-2/+3
|
* Unified the doxy-comment format.Mattes D2015-07-311-9/+8
|
* Reinstate "Chunk queue collapsing"Tiger Wang2015-06-101-0/+1
| | | | | This reinstates commit f36acb683594daff5af3971dcbe3c3a171628b78 and reverts commit adfbc42c021e1bcfcb355933c0fd784306ce0e18.
* ComparatorsTiger Wang2015-06-061-1/+1
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Finished mob spawner implementation.Howaner2014-11-181-5/+0
|
* Merge branch 'master' into MobSpawnerHowaner2014-11-181-4/+33
|\ | | | | | | | | Conflicts: MCServer/Plugins/Core
| * En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
| |
| * cLuaState: cBlockEntity descendants are pushed with proper class type.Mattes D2014-10-191-0/+31
| |
| * Removed WSSCompactTiger Wang2014-09-301-2/+0
| |
* | Merge branch 'master' into MobSpawnerHowaner2014-09-261-3/+2
|\| | | | | | | | | | | Conflicts: src/MobSpawner.h src/Mobs/Monster.h
| * Removed more unessicary includesTycho2014-09-261-3/+2
| |
* | Created MobSpawnerEntity class.Howaner2014-09-171-1/+1
|/
* Removed redundant semicolons and re-added warningarchshift2014-07-241-2/+2
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Fixed compilation in VC2008.madmaxoft2013-12-301-2/+1
| | | | Also removed an unused inline header file (yuck).
* converted commneted paramater names to the unused macroTycho Bickerstaff2013-12-221-1/+6
|
* ChunkSender is now warnings cleanTycho Bickerstaff2013-12-211-1/+1
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-0/+5
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+101