summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTrapdoor.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-21Trapdoor crash fix (#4890)theophriene1-6/+28
* [WIP] Trapdoor crash fix * Fixed code style * Updated commentary in the code * Updated commentary in the code again * Fix copy-past error * Fix another copy-past error! * Fixed orientation & clipping * Remove redundant clause * Some code cleanup * Fixed compilation error * Moved logic into helper function, slightly reorganised the caller * Fixed comments * Fixed comments, what an idiot * Added to CONTRIBUTORS * Fixed bitwise error * Use cYawRotator * Reduce indent Co-authored-by: Elias Thomson <fiv.pids@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-11/+7
* 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>
2020-04-21Vector3 in Handlers (#4680)Mattes D1-11/+46
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-2/+2
2020-04-15Trapdoor can be placed anywhere since 1.9Bond_0091-12/+0
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-9/+13
2018-07-24Broadcast refactor (#4264)peterbell101-1/+1
* Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
2018-02-05Deal with covered switches consistently (#4161)peterbell101-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()
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-1/+1
2017-08-01cBlockHandler: take player by refpeterbell101-5/+5
2017-08-01cWorld::SendBlockTo take player by refpeterbell101-1/+1
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-1/+1
2016-07-07removed cast from BlockTrapdoor.h (#3256)gaurav sehgal1-3/+1
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-12-13allow use failures to propagate from the entity/block to the playerGargaj1-2/+4
2015-11-24Add enum for Sound and Particle EffectsDave Tucker1-1/+2
Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-1/+1
2015-07-14Improved mapsTiger Wang1-3/+15
2015-06-02Fixed warnings in MSVC.Mattes D1-0/+7
It complained about undefined return values or using uninitialized variables.
2015-05-19Fixed compile and a few more warningstycho1-1/+3
2015-05-09More style checking.Mattes D1-1/+1
Spaces around some operators are checked.
2014-09-30Code improvementsHowaner1-0/+1
2014-09-30Fixed iron trapdoorsHowaner1-0/+5
2014-09-09Removed old sound-configuration for TrapdoorsMasy981-5/+0
2014-08-19Code formatting fixes.Howaner1-4/+5
2014-03-24Added MetaRotate/Mirror Support for a number of classes.narroo1-3/+3
2014-03-05Add SendBlockTo to cWorldInterfaceHowaner1-1/+2
2014-03-05Add data backsending, when the Client interacts a Block and the Interact is cancelled.Howaner1-0/+5
2014-03-02Add Trapdoor Functions to cWorld and fix Trapdoor Redstone BugsHowaner1-1/+3
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew1-1/+1
2014-02-09Fixed compile and some warnings in MSVSTiger Wang1-1/+1
2014-02-05Fixed a bunch of MSVS warningsTiger Wang1-2/+2
* Possibly also fixed some bugs with pathfinding and TNT, though unlikely
2014-02-04Improved Type safety of eBlockFaceTycho1-4/+4
May Fix #640
2014-02-01Changed pointers to referencesTycho1-5/+5
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-5/+5
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2014-01-25First attempt at Implementing InterfacesTycho1-1/+1
2013-12-06Added trapdoor cursor Y detectionTiger Wang1-2/+0
2013-12-06Fixed trapdoors not overriding OnUseTiger Wang1-1/+1
2013-11-29Implemented trapdoors, fixes #43 and #105Tiger Wang1-35/+33
Also updated redstone simulator to support it
2013-11-29Removed unneeded CPP filesTiger Wang1-6/+20
Also removed unneeded #include in BlockStems
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-21Multiple enhancements [SEE DESC]Tiger Wang1-2/+5
+ Added lever location checking * Fixed button location checking * Fixed button pressing/unpressing * Fixed repeaters updating * Minor enhancements
2013-11-18Redstone Megacommit [SEE DESC]Tiger Wang1-6/+30
+ Updated BlockID - look for yourself * Improved button, repeater, lever, and comparator code -> simplification and splitting of some stuff from the redstone simulator file * Fixed buttons not breaking when in an invalid game state * Fixed QueueSetBlock -> improved (AGAIN) piston code + Rewrote redstone simulator Fixes: #57, #58, #205, and part of #131. Fixes FS issues: 281, 116, and 102
2013-09-22Added button placement handlerTiger Wang1-7/+22
Also removed an unneeded variable in the stair handler
2013-09-22Removed OnDigging for Redstone devicesTiger Wang1-1/+0
2013-09-13Removed place on top and side preventionsTiger Wang1-6/+0
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-61/+61
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-5/+21
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-16Levers (patch contributed by Keyboard)madmaxoft@gmail.com1-22/+3
http://forum.mc-server.org/showthread.php?tid=649 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1075 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-8/+8
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-18/+30
( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-1/+6
http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19Fixed Bug #236lapayo94@gmail.com1-1/+2
Workbench, Chest and Furnace are usable again git-svn-id: http://mc-server.googlecode.com/svn/trunk@755 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-10/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+46
It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6