summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLever.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-46/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com> * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
* 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.
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-1/+1
| | | | | | | | | | | | | | | * 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-23/+14
| | | | | | | | | | | | | * 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>
* Remove the redstone solid block handlerTiger Wang2020-08-081-2/+1
| | | | | | | - Remove cSolidBlockHandler * Functionality now integrated into simulator dispatcher * Fix door double open/close issues, arisen due to the top/bottom halves getting different power + Small migration to block states for redstone wire
* Toggleables: update simulators when changedTiger Wang2020-07-261-1/+2
|
* Vector3 in Handlers (#4680)Mattes D2020-04-211-31/+40
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-4/+4
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-5/+50
|
* Deal with covered switches consistently (#4161)peterbell102018-02-051-4/+1
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-4/+5
|
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-1/+1
| | | | | | | | | | | | | | | | | | * 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
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* cBlockHandler: take player by refpeterbell102017-08-011-2/+2
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-4/+4
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-0/+6
| | | | | | -> 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
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-1/+1
|
* Improved mapsTiger Wang2015-07-141-8/+6
|
* Fixed warnings in MSVC.Mattes D2015-06-021-0/+4
| | | | It complained about undefined return values or using uninitialized variables.
* Fixed compile and a few more warningstycho2015-05-191-7/+7
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* Added mechanics placeable on halfslabsJulian Laubstein2014-10-191-7/+29
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-6/+0
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-1/+1
|
* Redstone simulator is alerted to lever unpoweringTiger Wang2014-07-021-0/+1
| | | | | * Fixed the "fix" that broke the fix for #535, thereby fixing said issue * Fixed #535
* Minor change to buttons and leversTiger Wang2014-06-281-2/+2
| | | | | + They now detect if the block they are on occupies its voxel, instead of just being solid
* Fixed sign and lever rotations.madmaxoft2014-06-231-5/+6
|
* Added MetaRotate/Mirror Support for a number of classes.narroo2014-03-241-3/+34
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-1/+1
|
* Fixed compile and some warnings in MSVSTiger Wang2014-02-091-1/+1
|
* Merge branch 'master' into playerimprovementsTiger Wang2014-02-091-4/+4
|\ | | | | | | | | Conflicts: MCServer/Plugins/APIDump/APIDesc.lua
| * Improved Type safety of eBlockFaceTycho2014-02-041-4/+4
| | | | | | | | May Fix #640
* | Fixed a bunch of MSVS warningsTiger Wang2014-02-051-1/+1
|/ | | | | * Possibly also fixed some bugs with pathfinding and TNT, though unlikely
* Changed pointers to referencesTycho2014-02-011-6/+6
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-6/+6
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Fixed #535Tiger Wang2014-01-161-1/+1
|
* Removed unneeded CPP filesTiger Wang2013-11-291-2/+12
| | | | Also removed unneeded #include in BlockStems
* Merged master into redstonefixesTiger Wang2013-11-271-7/+40
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-2/+17
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+53