Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Vector3 in Handlers (#4680) | Mattes D | 2020-04-21 | 1 | -28/+52 |
| | | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3. | ||||
* | More Vector3 in cBlockHandler (#4644) | Mattes D | 2020-04-17 | 1 | -3/+16 |
| | | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works. | ||||
* | Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) | Mattes D | 2020-04-03 | 1 | -1/+1 |
| | | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values | ||||
* | Moved growing from cWorld / cChunk to cBlockHandler descendants. | Mattes D | 2019-10-28 | 1 | -0/+4 |
| | |||||
* | Refactored block-to-pickup conversion. (#4417) | Mattes D | 2019-10-16 | 1 | -27/+67 |
| | |||||
* | Register vanilla blocks in BlockTypeRegistry. | Mattes D | 2019-08-05 | 1 | -0/+7 |
| | |||||
* | Rewrite cClientHandle::HandleRightClick (#4089) | 9caihezi | 2018-01-08 | 1 | -1/+2 |
| | | | | | | | | | | | | | * Add hand parameter to distinguish main hand/off hand. * Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9 * Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin). * Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item. The CallHookPlayerUsingItem will still be called. Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock, CallHookPlayerUsingItem and CallHookPlayerEating will be called based on the type of action (not including the used version of callbacks). * Do not count using item as BlockInteractionsRate check (Using item takes time). * Now we can open chests(etc.) when sneaking as long as the player's hand is empty. This is what vanilla server does. | ||||
* | cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) | Bond-009 | 2017-11-20 | 1 | -1/+1 |
| | |||||
* | Bed piston fix (#3956) | Lane Kolbly | 2017-08-25 | 1 | -2/+2 |
| | | | | | | | | | | | | * 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. | ||||
* | Minor changes (#3909) | mathiascode | 2017-08-24 | 1 | -1/+1 |
| | |||||
* | cBlockHandler: take player by ref | peterbell10 | 2017-08-01 | 1 | -6/+6 |
| | |||||
* | Check for intersection between placed blocks and entities. (#3850) | Lane Kolbly | 2017-07-28 | 1 | -0/+7 |
| | | | | | | | | | | | | | * Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement. | ||||
* | BigFlower fixes (#3826) | peterbell10 | 2017-07-07 | 1 | -9/+4 |
| | | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision | ||||
* | Added bed entity (#3823) | Lukas Pioch | 2017-07-07 | 1 | -0/+4 |
| | | | | | | | | | | * 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 | ||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -21/+21 |
| | |||||
* | blockheight mechanism | Gargaj | 2015-12-13 | 1 | -1/+5 |
| | |||||
* | allow use failures to propagate from the entity/block to the player | Gargaj | 2015-12-13 | 1 | -2/+3 |
| | |||||
* | * Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it. | Samuel Barney | 2015-08-19 | 1 | -0/+3 |
| | | | | * Blocks now have an effect upon plant growth, just like in vanilla. | ||||
* | Unified the doxy-comment format. | Mattes D | 2015-07-31 | 1 | -19/+18 |
| | |||||
* | Improved maps | Tiger Wang | 2015-07-14 | 1 | -0/+3 |
| | |||||
* | Added neighbor specification in the OnNeighborChanged() block callback. | Mattes D | 2015-07-01 | 1 | -7/+13 |
| | | | | | Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213. | ||||
* | Rebased version of Code | Samuel Barney | 2015-06-22 | 1 | -3/+0 |
| | |||||
* | Refactored all player block placing to go through hooks. | Mattes D | 2014-12-24 | 1 | -11/+10 |
| | | | | Fixes #1618. | ||||
* | En masse NULL -> nullptr replace | Tiger Wang | 2014-10-23 | 1 | -1/+1 |
| | |||||
* | Removed more unessicary includes | Tycho | 2014-09-26 | 1 | -4/+4 |
| | |||||
* | Improved cBlockHandler::DropBlock | Tiger Wang | 2014-09-13 | 1 | -1/+1 |
| | |||||
* | Moved sound-configs into BlockID.h and fixed/ added loads of sounds | Masy98 | 2014-09-09 | 1 | -3/+0 |
| | |||||
* | Merge remote-tracking branch 'origin/master' | Tiger Wang | 2014-07-24 | 1 | -4/+4 |
|\ | |||||
| * | Removed redundant semicolons and re-added warning | archshift | 2014-07-24 | 1 | -4/+4 |
| | | |||||
* | | Fixed block drops | Tiger Wang | 2014-07-24 | 1 | -1/+2 |
|/ | | | | * Fixes #1242 (the issue addressed within) | ||||
* | Merge branch 'master' into saplingsandleaves | Tiger Wang | 2014-07-20 | 1 | -11/+11 |
|\ | | | | | | | | | | | Conflicts: src/Bindings/DeprecatedBindings.cpp src/Blocks/BlockSapling.h | ||||
| * | Basic style fixes. | madmaxoft | 2014-07-17 | 1 | -11/+11 |
| | | |||||
* | | Proper comment for DropBlock() | Tiger Wang | 2014-07-20 | 1 | -2/+5 |
| | | |||||
* | | Fixed issues relating to saplings and leaves | Tiger Wang | 2014-07-17 | 1 | -5/+5 |
|/ | | | | | | - Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201 | ||||
* | Rename CanChangeDirtToGrass to CanDirtGrowGrass | Howaner | 2014-05-07 | 1 | -2/+2 |
| | |||||
* | Remove old import | Howaner | 2014-04-06 | 1 | -1/+1 |
| | |||||
* | Add CanChangeDirtToGrass function to Block Handlers. | Howaner | 2014-04-06 | 1 | -0/+3 |
| | |||||
* | Fixed issues with int vs size_t and a few other warnings | Tycho | 2014-03-08 | 1 | -0/+2 |
| | |||||
* | Add SendBlockTo to cWorldInterface | Howaner | 2014-03-05 | 1 | -1/+1 |
| | |||||
* | Add data backsending, when the Client interacts a Block and the Interact is cancelled. | Howaner | 2014-03-05 | 1 | -1/+4 |
| | |||||
* | cBlockInfo now manages the respective cBlockHandler | andrew | 2014-03-02 | 1 | -19/+3 |
| | |||||
* | Improved Type safety of eBlockFace | Tycho | 2014-02-04 | 1 | -3/+3 |
| | | | | May Fix #640 | ||||
* | Changed Signiture of OnUpdate | Tycho | 2014-02-02 | 1 | -3/+4 |
| | |||||
* | Changed Signiture of OnDigging | Tycho | 2014-02-01 | 1 | -1/+1 |
| | |||||
* | Changed Signiture of OnDestroyedByPlayer | Tycho | 2014-02-01 | 1 | -2/+2 |
| | |||||
* | Changed pointers to references | Tycho | 2014-02-01 | 1 | -9/+9 |
| | |||||
* | Changed signitures of Several BLockHandler Methods | Tycho | 2014-02-01 | 1 | -4/+4 |
| | | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check | ||||
* | Refactored GetPlacementBlockTypeMeta | Tycho | 2014-01-26 | 1 | -1/+1 |
| | |||||
* | Refactored cBlockHandler::OnUse and dependents | Tycho | 2014-01-26 | 1 | -6/+6 |
| | |||||
* | First attempt at Implementing Interfaces | Tycho | 2014-01-25 | 1 | -1/+2 |
| | |||||
* | converted commneted paramater names to the unused macro | Tycho Bickerstaff | 2013-12-22 | 1 | -1/+5 |
| | |||||
* | Piston is now warnings clean | Tycho Bickerstaff | 2013-12-21 | 1 | -1/+1 |
| | |||||
* | Merge pull request #387 from mc-server/trapdoors | Mattes D | 2013-11-30 | 1 | -10/+17 |
|\ | | | | | Trapdoors, redstone fixes, and snow | ||||
| * | Properly fixed snow height, fixes #98 and #264 | Tiger Wang | 2013-11-30 | 1 | -10/+17 |
| | | |||||
* | | Changed cBlockHandler->OnUpdate() to use cChunk directly. | madmaxoft | 2013-11-30 | 1 | -3/+4 |
|/ | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+152 |