summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/DropSpenserEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed C style arrays from the BlockEntity folderCArraysbibo382020-10-201-3/+3
|
* Limit fortune level, style fixesTiger Wang2020-09-231-3/+2
|
* Implement Dropspenser Hook (#4903)KrystilizeNevaDies2020-09-211-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement Dropspenser Hook Implemented a hook for dropspensing. HOOK_DROPSPENSE When plugin callback returns true then dropspense is cancelled * Update src/Bindings/PluginManager.h Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Create OnDropSpense.lua * Fix indent * Forgot include Forgot to include the plugin manager. Although now im confused why it was working on my end without including the plugin manager * Update plugins.lua with dropspense * fix typos * haha notepad++ go brr Co-authored-by: peterbell10 <peterbell10@live.co.uk>
* Add more statistic tracking (#4837)12xx122020-09-051-0/+9
| | | | | | | | + Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Using Super.Mattes D2020-04-161-2/+2
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-22/+20
|
* cWorld: Manually bind deprecated broadcast functions (#4265)peterbell102018-07-271-1/+1
| | | Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-1/+1
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-2/+2
| | | | | | | | | | | | | | | | | | * Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
* BlockEntities: Support cloning self.Mattes D2017-06-161-2/+14
|
* FastRandom rewrite (#3754)peterbell102017-06-131-1/+1
|
* Fixes problems with windows:Lukas Pioch2017-06-051-1/+1
| | | | | - Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-2/+2
|
* - Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update.QUSpilPrgm2016-06-151-3/+3
| | | | - Fixes a range check inside cIncrementalRedstoneSimulator::Simulate
* Bulk clearing of whitespaceLogicParrot2016-02-051-6/+6
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-15/+1
| | | | | | -> 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/+2
|
* Add enum for Sound and Particle EffectsDave Tucker2015-11-241-7/+8
| | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
* Fixed DropSpenser sound #2333mmdk952015-07-121-2/+2
|
* Merge branch 'master' into InventoryHowaner2015-01-251-1/+1
|\
| * Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* | Own classes for all windows.Howaner2014-12-131-0/+1
|/
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-9/+13
|
* Merged branch 'master' of git://github.com/sriehl/MCServerMattes D2014-10-211-10/+6
|\
| * convert old style casts to fix warningsSteven Riehl2014-10-121-11/+7
|/
* Removed WSSCompactTiger Wang2014-09-301-48/+0
|
* Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-271-1/+0
|\ | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * Removed more unessicary includesTycho2014-09-261-1/+0
| |
* | Implemented Chest MinecartsTiger Wang2014-09-131-1/+0
|/
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-4/+4
| | | | | 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.
* Fixed a DropSpenser AddFace bugTiger Wang2014-07-151-1/+1
|
* BlockEntities is warnings freeTycho2014-02-241-0/+1
|
* Removed some unneeded BroadcastWholeWindow()sTiger Wang2014-02-121-7/+0
|
* Moved json includes to where they are really needed.madmaxoft2013-11-281-0/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+266