Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
5 days | Clean up CanBeAt Functions (#5587) | Alexander Harkness | 1 | -1/+1 | |
* Use cChunkDef::IsValidHeight for CanBeAt functions, and related helpers. * Add mixins for SolidSurfaceUnderneat and DirtLikeUnderneath * Minor fixes after change review. | |||||
2021-05-14 | Re-implement up/down placement metadata (#5219) | Tiger Wang | 1 | -2/+6 | |
+ Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour. * Fixes #4651 | |||||
2021-05-05 | Move item placement into item handlers (#5184) | Tiger Wang | 1 | -5/+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> | |||||
2021-04-12 | Improve bed handling robustness | Tiger Wang | 1 | -17/+28 | |
+ Boot the player out if the bed was destroyed | |||||
2021-03-28 | Do not fake a tool when converting to pickups (#5170) | Tiger Wang | 1 | -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. | |||||
2020-10-08 | Merged OnBreak with OnPlayerBreak (#4967) | 12xx12 | 1 | -1/+2 | |
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com> | |||||
2020-10-05 | Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) | peterbell10 | 1 | -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-25 | Unify block entity pickup conversion | Tiger Wang | 1 | -6/+1 | |
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it | |||||
2020-09-20 | BlockHandler initialisation is a constant expression (#4891) | Tiger Wang | 1 | -43/+30 | |
* 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-08-05 | Update bed behavior (#4545) | Mat | 1 | -0/+6 | |
2020-04-21 | Vector3 in Handlers (#4680) | Mattes D | 1 | -4/+24 | |
Refactored all cBlockHandler and cItemHandler descendants to use Vector3. | |||||
2020-04-16 | Using Super. | Mattes D | 1 | -2/+2 | |
2020-04-10 | Replace all single-digit hex constants with two-digit version | Alexander Harkness | 1 | -2/+2 | |
2020-04-10 | Add mixins for blocks that rotate based on player yaw at placement | Alexander Harkness | 1 | -20/+2 | |
Also add observer block handler. | |||||
2019-10-28 | Moved growing from cWorld / cChunk to cBlockHandler descendants. | Mattes D | 1 | -2/+2 | |
2019-10-16 | Refactored block-to-pickup conversion. (#4417) | Mattes D | 1 | -15/+29 | |
2017-11-20 | cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) | Bond-009 | 1 | -1/+1 | |
2017-08-25 | Bed piston fix (#3956) | Lane Kolbly | 1 | -1/+1 | |
* Threaded world interface into ConvertBlockToPickups * Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call. * Removed unused a_Digger argument. * Removed incorrect comment * This time actually removed a_Digger references. | |||||
2017-08-13 | Replaced includes with forward declarations | Lukas Pioch | 1 | -1/+1 | |
2017-08-06 | Removed unneeded includes (#3902) | Lukas Pioch | 1 | -2/+0 | |
2017-08-01 | cBlockHandler: take player by ref | peterbell10 | 1 | -2/+2 | |
2017-07-07 | Added bed entity (#3823) | Lukas Pioch | 1 | -8/+13 | |
* Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds | |||||
2016-02-05 | Bulk clearing of whitespace | LogicParrot | 1 | -2/+2 | |
2015-12-13 | allow use failures to propagate from the entity/block to the player | Gargaj | 1 | -1/+1 | |
2015-07-14 | Improved maps | Tiger Wang | 1 | -1/+6 | |
2015-06-22 | Rebased version of Code | Samuel Barney | 1 | -5/+0 | |
2015-05-24 | Made -Weverything an error. | tycho | 1 | -1/+1 | |
2015-02-08 | Handle client 'leave bed' request | Tiger Wang | 1 | -8/+17 | |
* Fixes #1728 | |||||
2014-12-24 | Refactored all player block placing to go through hooks. | Mattes D | 1 | -1/+0 | |
Fixes #1618. | |||||
2014-12-05 | BasicStyle: Added missing braces to control statements. | Mattes D | 1 | -1/+4 | |
2014-09-26 | Removed more unessicary includes | Tycho | 1 | -3/+5 | |
2014-07-19 | Fixed style: spaces after commas. | madmaxoft | 1 | -1/+1 | |
2014-05-07 | Rename CanChangeDirtToGrass to CanDirtGrowGrass | Howaner | 1 | -1/+1 | |
2014-04-06 | Add CanChangeDirtToGrass function to Block Handlers. | Howaner | 1 | -0/+7 | |
2014-03-25 | Fixed spelling; Rotater to Rotator. | narroo | 1 | -3/+3 | |
2014-03-02 | Reformatted | Tycho | 1 | -2/+2 | |
2014-03-01 | Implemented Rotations | Tycho | 1 | -2/+2 | |
2014-02-27 | Added some Metadate rotaters using templated Mixin | Tycho | 1 | -2/+3 | |
2014-02-04 | Improved Type safety of eBlockFace | Tycho | 1 | -2/+2 | |
May Fix #640 | |||||
2014-02-01 | Changed pointers to references | Tycho | 1 | -3/+3 | |
2014-02-01 | Changed signitures of Several BLockHandler Methods | Tycho | 1 | -1/+1 | |
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check | |||||
2014-01-26 | Refactored cBlockHandler::OnUse and dependents | Tycho | 1 | -1/+1 | |
2014-01-25 | First attempt at Implementing Interfaces | Tycho | 1 | -4/+5 | |
2013-11-24 | Moved source to src | Alexander Harkness | 1 | -0/+0 | |
2013-09-13 | Removed place on top and side preventions | Tiger Wang | 1 | -6/+0 | |
2013-08-19 | Moved entities into the Entities subfolder. | madmaxoft | 1 | -1/+1 | |
2013-07-29 | Changed everyting to Unix line endings. | Alexander Harkness | 1 | -73/+73 | |
2013-06-04 | Removed cLadder, cSign, cStairs, cTorch and cVine classes, moved their functionality into the appropriate BlockHandlers / ItemHandlers | madmaxoft@gmail.com | 1 | -14/+7 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1555 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-03-09 | Pickups are now being saved into Anvil. | madmaxoft@gmail.com | 1 | -4/+4 | |
Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2013-01-12 | Merged branch "branches/hooks" into "trunk". | madmaxoft@gmail.com | 1 | -2/+2 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-10-03 | Moved blockticking into blockhandler classes. | madmaxoft@gmail.com | 1 | -5/+5 | |
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-01 | Slight refactoring of BlockHandlers - dropping unneeded virtual functions | madmaxoft@gmail.com | 1 | -24/+35 | |
( 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-29 | Beds can be slept in now (it doesn't change the time though) | faketruth | 1 | -61/+7 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@911 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-09-29 | Unified folder name-casing | madmaxoft@gmail.com | 1 | -0/+0 | |
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6 | |||||
2012-09-29 | Made beds placeable | faketruth | 1 | -0/+123 | |
Android: Updated some stuff and set default view distance lower git-svn-id: http://mc-server.googlecode.com/svn/trunk@900 0a769ca7-a7f5-676a-18bf-c427514a06d6 |