summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pickup.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Explosions: improve performanceMeguminTiger Wang2022-07-191-1/+1
|
* Pickups: improve coalescing implementationPickupsTiger Wang2022-07-191-24/+28
| | | | | + Add ability to coalesce before spawning in to world. * Adapt coalescing for pickup entities already in the world to be more like Vanilla.
* Improved farmer AI & Fixed entity loading functions (#5351)Persson-dev2021-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow villagers to pickup items * Add farmer villager harvesting * Use of auto keyword * Using for loop to check adjacent crops * Show particules when farmer harvest * Fix area comment * Move constants to header file * Removing unnecessary semicolon * Initialization of CropBlockType variable * Apply 12xx12 suggestion * Fixing area constant size * Refactor bounding box calculation, use vectors. * Add Api documentation * Update lua docs * Rework farmer ai * Fixing lua docs notes * Add missing capitalisation * Add villagers inventory save * Fixing loading entities from disk inconsistencies * Add farmer harvest animation * Fix beetroots grow state Co-authored-by: Alexander Harkness <me@bearbin.net>
* Using Super.Mattes D2020-04-161-1/+1
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-4/+5
|
* Exp Orbs and Pickups are destroyed instantly by cacti. (#4136)Alexander Harkness2018-01-161-0/+2
| | | | | | | | | | | | | * Cactus detection code follows pattern set in #3996 * Pickups are now destroyed on cactus contact * Add cactus detection and destruction to Exp Orbs Remove checks for IsExpOrb() in cEntity::Tick() Exp Orbs do not call super::Tick() and so this condition was pointless.
* Check for intersection between placed blocks and entities. (#3850)Lane Kolbly2017-07-281-0/+2
| | | | | | | | | | | | | * Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
* Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843)Lane Kolbly2017-07-121-1/+17
|
* Converted cPickupEntity to std::chronoTycho2015-01-161-3/+3
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Merged branch 'master' of git://github.com/sriehl/MCServerMattes D2014-10-211-7/+3
|\
| * convert old style casts to fix warningsSteven Riehl2014-10-121-7/+3
| |
* | Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-1/+1
|/
* Removed redundant semicolons and re-added warningarchshift2014-07-241-1/+1
|
* Fixed tabs used for alignment.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Entities handle chunks properly againTiger Wang2014-04-121-3/+0
| | | | | * Entities properly handle chunks * Changed EntityStatus enums to be less shouty
* Add health and age load to pickup's.Howaner2014-03-151-10/+13
|
* Pickup constructor no longer exportedTiger Wang2014-02-031-3/+4
| | | | | It didn't do anything without Initialize() exported, anyway, pickups are spawned with cWorld.
* Moved source to srcAlexander Harkness2013-11-241-0/+64