summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTrapdoor.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clean up CanBeAt Functions (#5587)Alexander Harkness3 days1-1/+1
| | | | | | | * Use cChunkDef::IsValidHeight for CanBeAt functions, and related helpers. * Add mixins for SolidSurfaceUnderneat and DirtLikeUnderneath * Minor fixes after change review.
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-68/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* 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>
* Trapdoor crash fix (#4890)theophriene2020-09-211-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>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-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>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-11/+46
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+2
|
* Trapdoor can be placed anywhere since 1.9Bond_0092020-04-151-12/+0
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-9/+13
|
* Broadcast refactor (#4264)peterbell102018-07-241-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
* 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-1/+1
|
* cBlockHandler: take player by refpeterbell102017-08-011-5/+5
|
* cWorld::SendBlockTo take player by refpeterbell102017-08-011-1/+1
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-1/+1
|
* removed cast from BlockTrapdoor.h (#3256)gaurav sehgal2016-07-071-3/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-1/+1
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-2/+4
|
* Add enum for Sound and Particle EffectsDave Tucker2015-11-241-1/+2
| | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-1/+1
|
* Improved mapsTiger Wang2015-07-141-3/+15
|
* Fixed warnings in MSVC.Mattes D2015-06-021-0/+7
| | | | It complained about undefined return values or using uninitialized variables.
* Fixed compile and a few more warningstycho2015-05-191-1/+3
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* Code improvementsHowaner2014-09-301-0/+1
|
* Fixed iron trapdoorsHowaner2014-09-301-0/+5
|
* Removed old sound-configuration for TrapdoorsMasy982014-09-091-5/+0
|
* Code formatting fixes.Howaner2014-08-191-4/+5
|
* Added MetaRotate/Mirror Support for a number of classes.narroo2014-03-241-3/+3
|
* Add SendBlockTo to cWorldInterfaceHowaner2014-03-051-1/+2
|
* Add data backsending, when the Client interacts a Block and the Interact is cancelled.Howaner2014-03-051-0/+5
|
* Merge pull request #746 from Howaner/SlabsMattes D2014-03-031-1/+3
|\ | | | | Add Trapdoor Functions to cWorld and fix Trapdoor Redstone Bugs
| * Add Trapdoor Functions to cWorld and fix Trapdoor Redstone BugsHowaner2014-03-021-1/+3
| |
* | 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-2/+2
|/ | | | | * Possibly also fixed some bugs with pathfinding and TNT, though unlikely
* 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
* First attempt at Implementing InterfacesTycho2014-01-251-1/+1
|
* Added trapdoor cursor Y detectionTiger Wang2013-12-061-2/+0
|
* Fixed trapdoors not overriding OnUseTiger Wang2013-12-061-1/+1
|
* Implemented trapdoors, fixes #43 and #105Tiger Wang2013-11-291-0/+108
Also updated redstone simulator to support it