summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPiston.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not fake a tool when converting to pickups (#5170)Tiger Wang2021-03-281-1/+1
| | | | | * When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it. * Fixes #4795 - Remove unused a_Digger parameter to ConvertToPickups.
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-2/+4
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-2/+2
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* 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-16/+20
| | | | | | | | | | | | | * 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-6/+1
| | | | | | | * 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
* 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
|
* Fix rotation metas on blocksAlexander Harkness2020-04-111-2/+2
|
* Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness2020-04-101-46/+2
| | | | Also add observer block handler.
* Ender chest is not affected by piston (#4526)Mat2020-03-221-1/+1
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-14/+27
|
* At long last... Piston animations!Tiger Wang2018-07-251-0/+6
| | | | | * Fixes #3198 * Fixes #57 (again lol)
* cBlockHandler: take player by refpeterbell102017-08-011-2/+2
|
* Allocate redstone component handlers upfrontpeterbell102017-07-171-4/+4
|
* Added some blocks and items (#3503)mathiascode2017-02-141-0/+4
|
* Redstone fixes (#3285)Tiger Wang2016-07-311-3/+3
| | | | | | | | * Comparators and pistons no longer update instantly * Fixes #3168. * Consolidated comparator code * As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did)
* Revert "Redstone fixes"Mattes D2016-07-291-3/+3
|
* Comparators and pistons no longer update instantlyTiger Wang2016-07-291-3/+3
| | | | * Fixes #3168.
* Bulk clearing of whitespaceLogicParrot2016-02-051-5/+5
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-1/+1
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* Refactored code to use vectors in the cPistonHandler classbibo382015-11-071-3/+3
|
* Added some code improvementsbibo382015-11-071-6/+6
|
* Renamed GetDirectionVec into VectorFromMetaData to improve code readability.bibo382015-11-071-1/+1
|
* Commented the GetDirectionVec methodbibo382015-11-071-0/+3
|
* Fixed the style problems and added some commentsbibo382015-11-071-0/+1
|
* Removed unused CanPull methodbibo382015-11-071-11/+0
|
* Extracted block moving code into a seperate methodbibo382015-11-071-0/+4
|
* Replaced the usage of pistonMeta with a direction vector to allow better meta value abstractionbibo382015-11-071-1/+3
|
* Added the CanPushBlock method for the piston push check.bibo382015-11-071-2/+7
| | | | This allows the recursive check for blocks to push, which is needed to implement the slime blocks into the piston system.
* Unified the doxy-comment format.Mattes D2015-07-311-5/+5
|
* Improved mapsTiger Wang2015-07-141-0/+6
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* Removed Metavalue from Piston drops. Bugfix #1765bibo382015-03-201-0/+2
|
* Added Daylight Sensors to the "can't push" listMasy982014-10-011-0/+2
|
* Added missing 1.8 blocks, E_METAs and soundsMasy982014-10-011-0/+2
|
* Merge branch 'master' into blocksMasy982014-09-261-1/+1
|\ | | | | | | | | | | Conflicts: src/Items/ItemHandler.cpp src/Simulator/IncrementalRedstoneSimulator.cpp
| * Added first test to show the object can be createdTycho2014-09-171-1/+1
| |
* | Added barrier blockMasy982014-09-111-0/+1
|/
* Added beacon.Howaner2014-07-301-0/+1
|
* Basic style fixes.madmaxoft2014-07-171-2/+2
|
* Normalized comments.madmaxoft2014-07-171-1/+1
| | | | | 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.
* Added various missing blocks in the lists in BlockInfo.cppMasy982014-07-151-1/+0
|
* SuggestionsTiger Wang2014-07-111-1/+1
|
* Implemented trapped chests & othersTiger Wang2014-07-071-15/+3
| | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
* SuggestionsTiger Wang2014-05-291-1/+6
|
* Hopefully fixed piston duplication issuesTiger Wang2014-05-251-1/+128
| | | | | * Fixes #879 * Fixes #714
* Improved Type safety of eBlockFaceTycho2014-02-041-1/+1
| | | | May Fix #640
* Changed Signiture of OnDestroyedByPlayerTycho2014-02-011-1/+1
|
* Changed pointers to referencesTycho2014-02-011-2/+2
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-2/+2
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Fixed some new 1.7 client crash bugsTiger Wang2013-12-071-0/+6
| | | | | Some technical blocks were removed; trying to render them as items caused a crash.
* Moved source to srcAlexander Harkness2013-11-241-0/+43