summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockRail.h (unfollow)
Commit message (Collapse)AuthorFilesLines
5 daysClean up CanBeAt Functions (#5587)Alexander Harkness1-23/+5
* Use cChunkDef::IsValidHeight for CanBeAt functions, and related helpers. * Add mixins for SolidSurfaceUnderneat and DirtLikeUnderneath * Minor fixes after change review.
2023-01-25Allow certain blocks to be placed on top of upside-down stairs/slabs (#5468)Michal Havlíček1-2/+28
* Placing certain blocks on top of upside down slabs and stairs * remove TODO * fix style errors * IsAnyStairType helper function * Block placement on stairs and slabs
2022-07-16ClientHandle: Fix block interaction regressions (#5431)Tiger Wang1-1/+3
* ClientHandle: Fix block interaction regressions * Fix reach distance being halved. * Fix fire extinguish not working, fixes #5422. * AddFaceDirection: deprecate non-vector version
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-141/+96
* 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>
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx121-2/+3
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
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-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-21/+16
* 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-09-13Rail: avoid invalid game states (#4864)Tiger Wang1-12/+10
+ Check CanBeAt Ref: #4859 Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-04-21Vector3 in Handlers (#4680)Mattes D1-22/+28
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-16Using Super.Mattes D1-4/+4
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-38/+57
2017-11-21cBlockRail: Fix assertion failure (#4075)peterbell101-3/+3
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-49/+50
2017-09-21Only allow rails to be placed where valid.peterbell101-1/+8
Fixes #3507.
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-2/+0
2017-08-01cBlockHandler: take player by refpeterbell101-1/+1
2017-07-18Made cBlockHandler OnPlacedByPlayer call OnPlaced, made BlockRailHandler use NeighborChanged instead of OnNeighborChanged.Lane Kolbly1-16/+16
2016-12-09Fix meta mirror (#3470)Mattes D1-32/+56
2016-02-05Bulk clearing of whitespaceLogicParrot1-15/+15
2015-12-18Reorganised the redstone simulatorTiger Wang1-3/+4
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
2015-07-14Improved mapsTiger Wang1-13/+7
2015-07-01Added neighbor specification in the OnNeighborChanged() block callback.Mattes D1-19/+17
Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213.
2015-05-19Fixed compile and a few more warningstycho1-1/+6
2015-05-09More style checking.Mattes D1-8/+8
Spaces around some operators are checked.
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D1-16/+72
2014-10-25Fixed some block checksTiger Wang1-2/+2
* Fixes #1330
2014-07-17Basic style fixes.madmaxoft1-11/+11
2014-07-17Normalized comments.madmaxoft1-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.
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-1/+1
2014-03-30Fixed a few Clang warnings in BlockHandlers.madmaxoft1-0/+1
2014-03-26Fixed Minor typos.narroo1-6/+6
2014-03-24Added MetaRotate/Mirror Support for a number of classes.narroo1-0/+135
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew1-2/+2
2014-02-04Improved Type safety of eBlockFaceTycho1-2/+2
May Fix #640
2014-02-01Changed pointers to referencesTycho1-18/+18
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-3/+3
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2014-01-26Refactored GetPlacementBlockTypeMetaTycho1-1/+0
2014-01-26Refactored cBlockHandler::OnUse and dependentsTycho1-71/+71
2014-01-19Fixed weird meta with curved railsTiger Wang1-5/+15
2014-01-19Added more rail functionalityTiger Wang1-4/+4
2013-12-25Fixed rails not updating with diagonalsTiger Wang1-0/+34
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-10-31Adhering to project standards.Samuel Barney1-1/+6
2013-10-31Added missing conventions for windows.Samuel Barney1-1/+1
2013-10-30Broken rail blocks now stack.Samuel Barney1-0/+3
2013-09-03Fixed inconsistent meta namingTiger Wang1-51/+51
2013-08-29Implemented xoft's suggestions [SEE DESC]Tiger Wang1-82/+51
Rail metas are now in BlockID and exported to LUA Minecart now does a SetMass, instead of m_Mass Minecarts use SubType instead of TypeType
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-421/+421
2013-03-15Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking.madmaxoft@gmail.com1-67/+145
Also fixed vines' placement. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1278 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-99/+126
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-26Fixed certain blocks crashing clients when minedluksor111@gmail.com1-1/+2
Fixed rail duplication glitch Fixed fall damage calculation Glass no longer drops glass git-svn-id: http://mc-server.googlecode.com/svn/trunk@1068 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-25Implemented rail placement mechanics.luksor111@gmail.com1-0/+315
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1065 0a769ca7-a7f5-676a-18bf-c427514a06d6