summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPiston.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Unify block entity pickup conversionTiger Wang2020-09-251-1/+1
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-152/+135
| | | | | | | | | | | | | * 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>
* Corrected wakeup sequencesTiger Wang2020-08-041-14/+30
| | | | | | | * Pistons/Ice no longer need to FastSetBlock first (#4600), and the former don't drop items when broken in creative - Begin migration away from stationary fluids * Tick the chunk after applying a client's changed * Broadcast pending blocks at the end of a tick
* Using Super.Mattes D2020-04-161-2/+2
|
* Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness2020-04-101-16/+0
| | | | Also add observer block handler.
* New hotfix to prevent calling OnBroken (#4600)Alexander Harkness2020-04-031-3/+4
| | | | | | | | | * Fix stack overflow in breaking ice. Stupid fix, but it does work and is used in other places too... * Replace hotfix for pistons with better one * Fix comments in BlockBed handler
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | 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 push blocks outside world height limits (#4516)Mat2020-03-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * Don't push blocks outside world height limits * Style fix * Apply suggestion Co-Authored-By: peterbell10 <peterbell10@live.co.uk> * Apply suggestion Co-Authored-By: peterbell10 <peterbell10@live.co.uk> * Improvements * Add block type check back * Revert line break changes * Update BlockPiston.cpp Co-authored-by: peterbell10 <peterbell10@live.co.uk>
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-52/+23
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* At long last... Piston animations!Tiger Wang2018-07-251-59/+99
| | | | | * Fixes #3198 * Fixes #57 (again lol)
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-2/+2
|
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-4/+4
| | | | | | | | | | | | | | | | | | * 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
* Bed piston fix (#3956)Lane Kolbly2017-08-251-2/+3
| | | | | | | | | | | | * Threaded world interface into ConvertBlockToPickups * Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call. * Removed unused a_Digger argument. * Removed incorrect comment * This time actually removed a_Digger references.
* Remove double includes part 2 (#3890)peterbell102017-08-031-3/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-4/+4
|
* Allocate redstone component handlers upfrontpeterbell102017-07-171-22/+22
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-2/+2
|
* StyleCheck: Add "else has to be on a separate line" (#3412)mohe20152016-10-201-1/+2
|
* Fixed piston destroying other pistonsAltenius2016-07-061-5/+9
| | | | Fixes #3251
* Refactored code to use vectors in the cPistonHandler classbibo382015-11-071-47/+37
|
* Added some code improvementsbibo382015-11-071-16/+36
|
* Renamed GetDirectionVec into VectorFromMetaData to improve code readability.bibo382015-11-071-5/+5
|
* Fixed the style problems and added some commentsbibo382015-11-071-6/+17
|
* Extracted block moving code into a seperate methodbibo382015-11-071-77/+48
|
* Replaced the usage of pistonMeta with a direction vector to allow better meta value abstractionbibo382015-11-071-72/+60
|
* Fixed pulling/pushing of breakable blocks, which are not required to be movedbibo382015-11-071-3/+20
|
* Implemented the basic slime block pullingbibo382015-11-071-17/+62
|
* Implemented the SlimeBlock into the CanPush method to allow slimeblocks to work correctly when pushedbibo382015-11-071-15/+26
|
* Piston extension now works with the new recursive CanPushBlock method.bibo382015-11-071-36/+41
|
* Added the CanPushBlock method for the piston push check.bibo382015-11-071-22/+34
| | | | This allows the recursive check for blocks to push, which is needed to implement the slime blocks into the piston system.
* Prepared ScheduleTask for threading refactorTiger Wang2015-09-251-20/+5
| | | | | * Llama-ified and condensed Schedule/QueueTask - Removed hackery done with piston animations
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-2/+2
|
* Buttons no longer click on when already on. Buttons now play sound when clicking off.Hax522015-06-241-3/+3
|
* Merge pull request #1822 from mc-server/ResettableLuaCallbackMattes D2015-03-201-3/+3
|\ | | | | Added cPluginLua::cResettable interface, used for scheduled tasks.
| * Added cPluginLua::cResettable interface, used for scheduled tasks.Mattes D2015-03-201-3/+3
| | | | | | | | | | This allows plugins to register objects that can "survive" the plugin unloading - they will simply bail out if the plugin is already unloaded, instead of referencing bad plugin data. Fixes #1556.
* | Removed Metavalue from Piston drops. Bugfix #1765bibo382015-03-201-0/+10
|/
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Removed more unessicary includesTycho2014-09-261-0/+1
|
* Fixed farmland issues.Howaner2014-09-121-1/+1
|
* Basic style fixes.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.
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-2/+2
|
* Implemented trapped chests & othersTiger Wang2014-07-071-1/+1
| | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
* Suggestions twoTiger Wang2014-06-011-3/+3
|
* Changed block send queue to use vectorsTiger Wang2014-05-291-6/+17
| | | | As suggested by @worktycho.
* Hopefully fixed piston duplication issuesTiger Wang2014-05-251-5/+161
| | | | | * Fixes #879 * Fixes #714
* Improved Type safety of eBlockFaceTycho2014-02-041-1/+1
| | | | May Fix #640
* Changed Signiture of OnDestroyedByPlayerTycho2014-02-011-5/+5
|
* Changed pointers to referencesTycho2014-02-011-5/+5
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-5/+5
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-1/+1
|
* Removed obsoleted functionsTiger Wang2014-01-161-1/+1
|
* Merged master into redstonefixesTiger Wang2013-11-271-0/+8
|
* Moved source to srcAlexander Harkness2013-11-241-0/+102