summaryrefslogtreecommitdiffstats
path: root/src/Blocks/WorldInterface.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-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.
* Experience orb (#4259)changyong guo2018-08-021-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
* improve rain simulation (#4017)Alexander Harkness2017-12-261-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.
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-10/+13
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-13/+10
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-10/+13
|
* Bed piston fix (#3956)Lane Kolbly2017-08-251-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.
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+5
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* Replaced includes with forward declarationsLukas Pioch2017-08-131-3/+5
|
* Removed unused forward declarations (#3888)Lukas Pioch2017-08-031-1/+0
|
* cWorld::SendBlockTo take player by refpeterbell102017-08-011-1/+1
|
* Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843)Lane Kolbly2017-07-121-0/+2
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-7/+7
|
* Spawn baby mobshallucino2015-07-161-1/+1
|
* Added a size check for portals.STRWarrior2015-06-281-0/+12
| | | | | | Made the portal size configurable Alpha-sorted SetXYZNetherPortalXYZ functions
* Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-5/+7
|
* Merge branch 'master' into redstoneTestsTycho2014-09-171-0/+3
|\ | | | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| * Spawn exp if you break a mob spawner.Howaner2014-09-121-0/+3
| |
* | Added first test to show the object can be createdTycho2014-09-171-3/+4
|/
* TimeOfDay does not need to be an Int64Tycho2014-09-081-2/+2
|
* Merge branch 'master' into portalsTiger Wang2014-07-181-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * Basic style fixes.madmaxoft2014-07-171-1/+1
| |
| * Redstone simulator is alerted to lever unpoweringTiger Wang2014-07-021-0/+3
| | | | | | | | | | * Fixed the "fix" that broke the fix for #535, thereby fixing said issue * Fixed #535
* | Merge branch 'master' into portalsTiger Wang2014-06-211-0/+9
|\| | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Entity.h src/Entities/Player.h
| * Add DoWithBlockEntityAt() to WorldInterface.hHowaner2014-06-171-0/+9
| |
* | Cauldrons check the heightmapTiger Wang2014-06-141-4/+4
| |
* | SuggestionsTiger Wang2014-06-051-1/+3
| |
* | Cauldrons fillTiger Wang2014-05-291-0/+3
|/
* Fixed non-virtual destructors warnings.madmaxoft2014-03-281-1/+2
|
* Beds now work properly fixes #707Tiger Wang2014-03-091-1/+7
| | | | | | | | Also fixes FS392 Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp
* Fix commentHowaner2014-03-061-1/+1
|
* Add SendBlockTo to cWorldInterfaceHowaner2014-03-051-0/+3
|
* Changed Signiture of OnDestroyedByPlayerTycho2014-02-011-0/+3
|
* Changed pointers to referencesTycho2014-02-011-1/+1
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-0/+2
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Refactored cBlockHandler::OnUse and dependentsTycho2014-01-261-3/+15
|
* First attempt at Implementing InterfacesTycho2014-01-251-0/+13