summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/DispenserEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-3/+3
| | | | | | | | | 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
* Don't remove items twice (#4524)Mat2020-03-221-1/+1
| | | * Don't remove items twice
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-1/+1
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-54/+46
|
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+2
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Changed some int parameters to vector parameters (#3937)Bond-0092017-09-071-2/+2
|
* BlockEntities: Support cloning self.Mattes D2017-06-161-4/+5
|
* Exported boatLukas Pioch2017-05-241-1/+6
| | | | | | | - NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
* Fireworks can be fired from a dispenserBond-0092017-03-221-1/+4
|
* - Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update.QUSpilPrgm2016-06-151-1/+1
| | | | - Fixes a range check inside cIncrementalRedstoneSimulator::Simulate
* Update Dispensers and let them act more like in VanillaQUSpilPrgm2016-06-031-9/+80
| | | | | | | | - Added code to make bonemeal, potions, minecarts, XP bottles and boats work inside dispensers - Dispensers are now able to place TNT if the block is transparent but not air - Added return value that indicates the success of pumpkin, melon, sugarcane and cactus growing functions - Changed return value of "GrowRipePlant" so that it actually indicates if the block was able to grow - Fixed "GrowSugarcane" and "GrowCactus" in "GrowRipePlant" so that it only grows them a single block
* Spawn baby mobshallucino2015-07-161-1/+1
|
* Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-11/+24
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* convert old style casts to fix warningsSteven Riehl2014-10-121-5/+2
|
* Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-271-5/+2
|\ | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * Removed more unessicary includesTycho2014-09-261-3/+0
| |
| * Merge pull request #1419 from mc-server/redstoneTestsworktycho2014-09-261-1/+1
| |\ | | | | | | Added test mocking to IncrementalRedstoneSimulator
| | * Added first test to show the object can be createdTycho2014-09-171-1/+1
| | |
| * | Fixed dispender direction bugHowaner2014-09-251-1/+1
| |/
* / Implemented Chest MinecartsTiger Wang2014-09-131-1/+0
|/
* DispenserEntity code cleanup after PR merge.madmaxoft2014-06-111-23/+18
|
* - Fixed a lot of alignmentJoannisO2014-06-051-7/+7
|
* - Removed the code that removed fireworks from a dispenser even thoughtJoannisO2014-06-041-3/+0
| | | they weren't launched.
* - Fixed variable names in a function.JoannisO2014-06-041-2/+2
|
* - Fixed a lot of astethicsJoannisO2014-06-041-13/+13
|
* - Fixed an issue where there were 2 "DispChunk"-s in the same function.JoannisO2014-06-031-16/+5
| | | Resused the initial one.
* - Fixed a bug where I didn't return anything in the GetShootVectorJoannisO2014-06-031-0/+2
| | | function. This was however passed as "working" by GCC.
* - Fixed a bug where I used the FireCharge ITEM instead of the ProjectileJoannisO2014-06-031-1/+1
| | | ENUM
* - Cleaned up the code massivelyJoannisO2014-06-031-84/+29
| | | | | | | - Stopped using cChunk in the GetShootVector class. Parameter is now the Metadata of the block - Stopped using cChunk in the SpawnProjectileFromDispenser method now using coordinates and finding the chunk by itself. - Removed the matrix calculations from GetShootVector.
* - Added doxy comments and exported to luaJoannis2014-06-031-16/+58
| | | | - Manipulation of the ShootVector is not to be done by the function that wants to spawn a projectile.
* - Changed the name of the ProjectileLookVector method.JoannisO2014-05-311-2/+2
| | | | Note: I still think the new name is unclear. Any other suggestions are welcome.
* - Prefixed all args with "a_"JoannisO2014-05-291-5/+9
| | | - Added braces around the cases.
* - Removed breaks. I thought it wouldn't compile without them but theJoannisO2014-05-281-2/+0
| | | issue was appearantly solved with an earlier commit.
* - Fixed an issue where dispensers would only shoot arrows (appearantlyJoannisO2014-05-281-33/+24
| | | | some commits didn't come through) - Cleaned up the code according to suggestions.
* - Implemented vertical dispensing for projectiles.Joannis2014-05-281-15/+39
| | | - Fixed some terrible commit issues on my side.
* - Fixed the ampersands and asterisks to fit the format.Joannis2014-05-271-7/+7
| | | - Fixed the method "SpawnProjectileFromDispenser" to use CamelCasing.
* - Added support for more types of projectiles in the DispenserJoannisO2014-05-261-38/+44
| | | | - Improved the method of spawning projectiles in the world - Added another method for spawning the projectiles
* Added Arrow- and FireCharge-Dispensing to DispenserEntity.JoannisO2014-05-261-19/+88
|
* Fixed Flint and Steel, reverted Minecart change, renamed a parameter namejfhumann2014-04-191-5/+5
|
* Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-1/+2
|
* Add fireball interactHowaner2014-03-141-0/+6
|
* Change TNT Fuse to ticksHowaner2014-03-081-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+215