summaryrefslogtreecommitdiffstats
path: root/src/Blocks/WorldInterface.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-04-21Vector3 in Handlers (#4680)Mattes D1-0/+6
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-17More Vector3 in cBlockHandler (#4644)Mattes D1-0/+4
* cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-1/+1
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-1/+2
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
2018-08-02Experience orb (#4259)changyong guo1-0/+4
* Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
2017-12-26improve rain simulation (#4017)Alexander Harkness1-1/+1
* Uses vanilla logic to decide which blocks rain falls through. * Rain falls infinitely above the world, and stops at y=0. * Entities will now be extinguished if they are under rain-blocking blocks, and fire will now be extinguished by rain similarly. * Create IsWeatherWetAtXYZ to identify wetness at a particular location. * Use new code for enderman rain detection. * Fixes issue #916 * Disable warnings for global constructors in the fire simulator.
2017-09-19Removed UTF-8 BOM (#4033)Lukas Pioch1-1/+1
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-10/+13
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot1-13/+10
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell101-10/+13
2017-08-25Bed piston fix (#3956)Lane Kolbly1-0/+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.
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán1-0/+5
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly1-1/+1
2017-08-13Replaced includes with forward declarationsLukas Pioch1-3/+5
2017-08-03Removed unused forward declarations (#3888)Lukas Pioch1-1/+0
2017-08-01cWorld::SendBlockTo take player by refpeterbell101-1/+1
2017-07-12Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843)Lane Kolbly1-0/+2
2016-02-05Bulk clearing of whitespaceLogicParrot1-7/+7
2015-07-16Spawn baby mobshallucino1-1/+1
2015-06-28Added a size check for portals.STRWarrior1-0/+12
Made the portal size configurable Alpha-sorted SetXYZNetherPortalXYZ functions
2015-03-21Changed cEntity::m_UniqueID to UInt32.Mattes D1-5/+7
2015-03-05Reverted non-functional changesTiger Wang1-5/+0
2015-02-08Handle client 'leave bed' requestTiger Wang1-0/+5
* Fixes #1728
2014-09-17Added first test to show the object can be createdTycho1-3/+4
2014-09-12Spawn exp if you break a mob spawner.Howaner1-0/+3
2014-09-08TimeOfDay does not need to be an Int64Tycho1-2/+2
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-07-02Redstone simulator is alerted to lever unpoweringTiger Wang1-0/+3
* Fixed the "fix" that broke the fix for #535, thereby fixing said issue * Fixed #535
2014-06-17Add DoWithBlockEntityAt() to WorldInterface.hHowaner1-0/+9
2014-06-14Cauldrons check the heightmapTiger Wang1-4/+4
2014-06-05SuggestionsTiger Wang1-1/+3
2014-05-29Cauldrons fillTiger Wang1-0/+3
2014-03-28Fixed non-virtual destructors warnings.madmaxoft1-1/+2
2014-03-09Beds now work properly fixes #707Tiger Wang1-1/+7
Also fixes FS392 Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp
2014-03-06Fix commentHowaner1-1/+1
2014-03-05Add SendBlockTo to cWorldInterfaceHowaner1-0/+3
2014-02-01Changed Signiture of OnDestroyedByPlayerTycho1-0/+3
2014-02-01Changed pointers to referencesTycho1-1/+1
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-0/+2
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2014-01-26Refactored cBlockHandler::OnUse and dependentsTycho1-3/+15
2014-01-25First attempt at Implementing InterfacesTycho1-0/+13